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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix hardcoded hour in election dashboard #9465

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

andreslucena
Copy link
Member

馃帺 What? Why?

While trying out decidim-elections, I found that we had a hard-coded number in an error. This PR fixes it.

Mind that, when this rule pass, the hour is shown correctly:

time_before: The setup is being done <strong>at least %{hours} hours</strong> before the election starts.

Testing

Describe the best way to test or validate your PR.

  1. Change the elections.setup_minimum_hours_before_start key in development_app/config/secrets.yml to any number that isn't 3.
  2. Go to the dashboard of a new election in a participatory process
  3. See that the you have the number 3

鈾ワ笍 Thank you!

@andreslucena andreslucena added type: bug Issues that describe a bug module: elections labels Jun 23, 2022
@ahukkanen ahukkanen merged commit 3261bd7 into develop Jun 23, 2022
@ahukkanen ahukkanen deleted the fix/elections-hardcoded-hour branch June 23, 2022 08:58
@ahukkanen ahukkanen added type: fix PRs that implement a fix for a bug and removed type: bug Issues that describe a bug labels Jun 23, 2022
eliegaboriau pushed a commit to eliegaboriau/decidim that referenced this pull request Oct 25, 2022
@alecslupu alecslupu added this to the 0.27.0 milestone Jul 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module: elections type: fix PRs that implement a fix for a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants