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

Simplify settings seeds #3564

Merged
merged 10 commits into from
Jun 3, 2019
Merged

Simplify settings seeds #3564

merged 10 commits into from
Jun 3, 2019

Conversation

javierm
Copy link
Member

@javierm javierm commented May 29, 2019

References

Objectives

  • Remove duplication between seeds.rb and dev_seeds/settings.rb
  • Reduce the number of steps we need to take when we add a new setting

Notes

⚠️ We need to update the documentation regarding what to do when adding a new setting.

javierm added 10 commits May 31, 2019 19:27
Commenting things like "proposal_code_prefix" represents the "Prefix
for the Proposal codes" is unnecessary.
We were using the value which is used in Madrid.
Settings are displayed in the administration in the order they are
created, and reordering them alphabetically in the code caused them to
be displayed in a different order.

Since we don't want to confuse our users by randomly changing the order,
I've grouped the settings by namespaces and ordered each namespace the
way it used to be.

Note dev seeds don't need to be changed, since they are executed after
default settings have been created.
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.

None yet

4 participants