Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a new page to the documentation for customizing model attributes #3360

Merged
merged 1 commit into from
Oct 4, 2019
Merged

Added a new page to the documentation for customizing model attributes #3360

merged 1 commit into from
Oct 4, 2019

Conversation

octoxan
Copy link
Contributor

@octoxan octoxan commented Oct 1, 2019

This new page walks through an example of adding a custom attribute,
and contains the following sections:

  • Adding attribute columns to the database, with a link to official
    Rails migration documentation.
  • Adding attribute fields to the admin panel, by using Deface,
    with a link to and mention of the full Customizing Admin Panel page.
  • Allowing custom attributes to be saved, by editing an initializer
    and rebooting the Rails server.

This was to close issue #3307. I believe there was no easy way for developer new to Solidus to know how to add a custom model attribute without extensive Googling or asking on Slack.

Checklist:

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have updated Guides and README accordingly to this change (if needed)
  • [not needed] I have added tests to cover this change (if needed)

Copy link
Member

@kennyadsl kennyadsl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing the lack of clarity when building things is exactly what Solidus needs. I really hope to see more PRs like this. Thank you! ❤️

I left some comments that could improve the PR, let me know if they make sense.

Copy link
Contributor

@cedum cedum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

@kennyadsl
Copy link
Member

@octoxan Thanks, can you please also squash commits into a single one?

This new page walks through an example of adding a custom attribute,
and contains the following sections:
- Adding attribute columns to the database, with a link to official
Rails migration documentation.
- Adding attribute fields to the admin panel, by using Deface,
with a link to and mention of the full Customizing Admin Panel page.
- Allowing custom attributes to be saved, by editing an initializer
and rebooting the Rails server.
@octoxan
Copy link
Contributor Author

octoxan commented Oct 2, 2019

@octoxan Thanks, can you please also squash commits into a single one?

@kennyadsl Would you prefer it just be the original commit message, or contain both and say that it's squashed?

@kennyadsl
Copy link
Member

The goal is to provide a single block of changes to people that are browsing the repository history. Having two separate commits could only create confusion for them so I think the first one is enough. Thanks again!

@octoxan
Copy link
Contributor Author

octoxan commented Oct 2, 2019

@kennyadsl Sounds good, updated. Thanks!

Copy link
Member

@spaghetticode spaghetticode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@octoxan thank you 👍

@dportalesr
Copy link
Contributor

dportalesr commented Oct 23, 2019

Closes #3307

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants