Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🎩 What? Why?
Please describe your pull request.
ParticipatoryProcesses finishing on the current day (today) are not being listed in the public view.
This is a tricky bug because in some cases it seems the bug does not exist:
ParticipatoryProcesses#active?
method. This is why the seeded processes in the development_app are still visible although the bug.In fact there are two bugs affecting two places of the
ParticipatoryProcess
class:ParticipatoryProcesses#active
scope. Only theend_date
constraint is wrong.ParticipatoryProcesses#active?
method. Both thestart_date
and theend_date
ought also to consider the current date.The counters in top of the listed cards are not affected by this bug.
The list of Highlighted processes is not affected by this bug.
📌 Related Issues
Link your PR to an issue
Testing
Describe the best way to test or validate your PR.
If a participatory process finishes today I expect it to be listed as an active process.
Create a participatory process finishing today, and make sure there is at least another process not starting neither finishing today.
📋 Checklist
🚨 Please review the guidelines for contributing to this repository.
docs/
.📷 Screenshots
The process finishing today (12/03/2021) is being rendered