Conversation
ea636f8 to
43bb631
Compare
| Decidim::CheckBoxesTreeHelper::TreePoint.new("accepted", t("decidim.proposals.application_helper.filter_state_values.accepted")), | ||
| Decidim::CheckBoxesTreeHelper::TreePoint.new("evaluating", t("decidim.proposals.application_helper.filter_state_values.evaluating")), | ||
| Decidim::CheckBoxesTreeHelper::TreePoint.new("not_answered", t("decidim.proposals.application_helper.filter_state_values.not_answered")), | ||
| Decidim::CheckBoxesTreeHelper::TreePoint.new("state_not_published", t("decidim.proposals.application_helper.filter_state_values.not_answered")), |
There was a problem hiding this comment.
This was renamed to match the scope at the model.
| where.not(coauthorships_count: 0) | ||
| .joins(:coauthorships) | ||
| .where.not(decidim_coauthorships: { decidim_author_type: "Decidim::Organization" }) | ||
| .where(decidim_coauthorships: { decidim_user_group_id: nil }) |
There was a problem hiding this comment.
Otherwise, it also includes proposals created by user groups.
5d38e93 to
52d4ef0
Compare
2975fb0 to
3c07ca9
Compare
|
@oriolgual there are some conflicts to be solved.. |
1d6cc83 to
f4bd2e4
Compare
bfcc59f to
3ce5356
Compare
|
Finally everything green! Could you please review it @tramuntanal? |
|
I've resolved a trivial conflict in |
|
@tramuntanal I actually deleted that part of the code from projects_controller because I moved it to |
ed0211b to
3e43348
Compare
|
Fixed! |
tramuntanal
left a comment
There was a problem hiding this comment.
Hi @oriolgual great refactor and performance improvements via counter caches!
I've left a few minor comments to be clarified and that's all 😄
3e43348 to
cfcb6b4
Compare
|
@tramuntanal everything addressed, thanks for the review! |
cfcb6b4 to
67feffc
Compare
|
@tramuntanal could you review this please? |
|
ok @oriolgual I'm accepting the PR to not block the PAM project but how did you manage to make tests succeed, simply by re-runnig failing workflows? |
Yup, since the errors where from seg faults. |
🎩 What? Why?
Adds more filters to debate search. Also, refactored and extracted common search logic and created shared examples for tests.
📌 Related Issues
📋 Subtasks
CHANGELOGupgrade notes, if required📷 Screenshots