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

[Backport] Simplify legislation proposals customization #2946

Merged
merged 5 commits into from
Oct 4, 2018

Conversation

javierm
Copy link
Member

@javierm javierm commented Oct 3, 2018

References

Objectives

  • Ease the backport of Allow select winner legislation proposals AyuntamientoMadrid/consul#1640, since it's related to the actions in legislation proposals.
  • Make it easier to change the code related to legislations proposals, so we don't have to edit two views or two controllers each time we want to change something.
  • Reduce the differences between CONSUL's repository and Decide Madrid's repository.

Using `t(.empty_proposals)` IMHO is a bit dangerous because we'd need to
change the locale files if we move the code to a partial or rename the
file.
This way different processes will be in different phases and it will be
easier to test the application locally.
Just like it's done everywhere else in the application. Not doing so
means users who aren't logged in receive a "you aren't authorized"
message when they try to create a new legislation proposal instead of
being redirected to the login page.
This way we can use the same code in custom views which won't use the
same text.
@javierm javierm merged commit c7a21e5 into master Oct 4, 2018
@javierm javierm deleted the backport-customize_proposals_view branch October 4, 2018 11:01
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.

3 participants