Skip to content

Fix displaying hidden related resources#8812

Merged
andreslucena merged 2 commits intodecidim:developfrom
i-need-another-coffee:ale-hide-related-resources
Feb 17, 2022
Merged

Fix displaying hidden related resources#8812
andreslucena merged 2 commits intodecidim:developfrom
i-need-another-coffee:ale-hide-related-resources

Conversation

@alecslupu
Copy link
Copy Markdown
Contributor

@alecslupu alecslupu commented Feb 14, 2022

🎩 What? Why?

The content linked in a resource page (Ex: Related meetings on proposal page) is being displayed even though the linked resource is moderated ( and hidden )

Testing

  1. As an user create a Meeting and a Proposal
  2. Report the meeting or proposal
  3. Go to admin, and hide one of them
  4. The Other resource should not show the moderated linked resource
  • Example: If you hide the Proposal, on the Meeting page you should not be able to see the hidden Proposal

♥️ Thank you!

@alecslupu alecslupu marked this pull request as ready for review February 15, 2022 07:40
@alecslupu alecslupu added module: core type: internal PRs that aren't necessary to add to the CHANGELOG for implementers type: fix PRs that implement a fix for a bug labels Feb 15, 2022
roxanaopr
roxanaopr previously approved these changes Feb 15, 2022
@andreslucena andreslucena removed the type: internal PRs that aren't necessary to add to the CHANGELOG for implementers label Feb 15, 2022
@andreslucena andreslucena changed the title Hidden Resources are displayed in the related Resources section Fix displaying hidden related resources Feb 15, 2022
@alecslupu alecslupu force-pushed the ale-hide-related-resources branch from 2828e0b to 3d3a98f Compare February 16, 2022 06:57
Copy link
Copy Markdown
Member

@andreslucena andreslucena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! I tried the different cases that I could come up with: moderating a related proposed, moderating the related meeting, and searching in the admin with the proposal picker, and I see that everything works as expected. Thanks!

@andreslucena andreslucena merged commit 0120054 into decidim:develop Feb 17, 2022
@andreslucena
Copy link
Copy Markdown
Member

Can you please backport to v0.26-stable 🙏🏽? Thanks

@alecslupu alecslupu deleted the ale-hide-related-resources branch February 17, 2022 09:53
alecslupu added a commit to i-need-another-coffee/decidim that referenced this pull request Feb 17, 2022
entantoencuanto added a commit that referenced this pull request Feb 18, 2022
* develop: (134 commits)
  Remove Rectify::Presenter references (#8758)
  Clarify the locales on the list of admins (#8838)
  Fix activity cell disappearing author images (#8826)
  Fix notifications when there is a note proposal in other spaces than processes (#8822)
  Fix accountability text search (#8831)
  Fix displaying hidden meetings in show process page (#8823)
  Fix docs for install-decidim.sh permissions (#8839)
  Fix report moderation for all the spaces (#8813)
  Clarify the comment at the resource search class (#8829)
  Fix displaying hidden related resources (#8812)
  Replace Decidim mentions in UI with 'the platform' (#8827)
  Add natively a .keep file to empty directory to include on git committing (#8830)
  Fix scope validation on initiative's creation (#8755)
  Replace `searchlight` with `ransack` which is already a core dependency (#8748)
  Fix characters not encoded in highlighted participatory process group title (#8820)
  Test ensuring the moderated comments are not computed in stats (#8816)
  Update rails to 6.0.4.6 and puma to 5.6.2 (#8817)
  Fix displaying hidden meetings in processes group's "upcoming meetings" content block (#8818)
  Fix displaying hidden meetings in homepage's "upcoming meetings" content block (#8809)
  Improve "Release Candidates" release docs (#8804)
  ...
@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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants