Skip to content

Publish and unpublish a meeting#7893

Merged
leio10 merged 16 commits intodevelopfrom
feat/publish-unpublish-meetings
May 24, 2021
Merged

Publish and unpublish a meeting#7893
leio10 merged 16 commits intodevelopfrom
feat/publish-unpublish-meetings

Conversation

@ferblape
Copy link
Copy Markdown
Contributor

@ferblape ferblape commented Apr 27, 2021

🎩 What? Why?

This PR changes the default behaviour of meetings created by admins. The new default is that meetings are now unpublished by default (meetings are now Publicable), and a new action has been added to admins meeting management to allow to publish it as described in the issue.

Meetings scopes have also been updated to prevent unpublished meetings to be shown in the API or the search results.

With respect to meetings created by users, the behaviour hasn't changed and they are created as published by default (see clarification comment)

📌 Related Issues

Testing

  • As an admin

    • when I create a meeting it say unpublished
    • I'm able to publish it / unpublish it
  • As an user

    • when I create a meeting it's published
  • Unpublished meetings

    • shouldn't be listed in the public site
    • shouldn't be listed in the api
    • shouldn't be listed in the search results

📋 Checklist

🚨 Please review the guidelines for contributing to this repository.

  • CONSIDER adding a unit test if your PR resolves an issue.
  • ✔️ DO check open PR's to avoid duplicates.
  • ✔️ DO keep pull requests small so they can be easily reviewed.
  • ✔️ DO build locally before pushing.
  • ✔️ DO make sure tests pass.
  • ✔️ DO make sure any new changes are documented in docs/.
  • ✔️ DO add and modify seeds if necessary.
  • ✔️ DO add CHANGELOG upgrade notes if required.
  • ✔️ DO add to GraphQL API if there are new public fields.
  • ✔️ DO add link to MetaDecidim if it's a new feature.
  • AVOID breaking the continuous integration build.
  • AVOID making significant changes to the overall architecture.

📷 Screenshots

Meetings list have a new action to publish/unpublish:

Screenshot from 2021-05-04 07-16-14

Screenshot from 2021-05-04 07-16-31

♥️ Thank you!

@andreslucena andreslucena changed the title Feat/publish unpublish meetings Publish and unpublish a meetings Apr 28, 2021
@andreslucena andreslucena changed the title Publish and unpublish a meetings Publish and unpublish a meeting Apr 28, 2021
@ferblape ferblape force-pushed the feat/publish-unpublish-meetings branch from 85b1ec9 to c2d018b Compare April 29, 2021 13:19
@ferblape ferblape requested a review from mrcasals May 4, 2021 04:51
@mrcasals mrcasals marked this pull request as ready for review May 4, 2021 10:34
Copy link
Copy Markdown
Contributor

@mrcasals mrcasals left a comment

Choose a reason for hiding this comment

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

As I said in the issue, I'd add a way to tell the admins that meetings need to be published manually now. At least, modify the flash message on meeting creation to tell that?

@mrcasals
Copy link
Copy Markdown
Contributor

mrcasals commented May 4, 2021

Apart from that, code looks good!

mrcasals
mrcasals previously approved these changes May 10, 2021
@mrcasals
Copy link
Copy Markdown
Contributor

@ferblape ping me when it's ready to be merged! I see the issue is at the "QA Testing" step...

@ferblape ferblape force-pushed the feat/publish-unpublish-meetings branch from db2ef41 to 7332c3e Compare May 18, 2021 13:21
@ferblape
Copy link
Copy Markdown
Contributor Author

@mrcasals we got the acceptance of product, so this could be reviewed again and merged 😄

Copy link
Copy Markdown
Contributor

@leio10 leio10 left a comment

Choose a reason for hiding this comment

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

Nice job, @ferblape! 👏

It would be nice if you can modify the migration with my suggestion to avoid future problems with the upgrade of the production apps. After that, we can merge this one. 😃

@leio10 leio10 merged commit 5efb6ef into develop May 24, 2021
@leio10 leio10 deleted the feat/publish-unpublish-meetings branch May 24, 2021 15:20
@leio10 leio10 removed the in-review label May 24, 2021
leio10 added a commit that referenced this pull request May 24, 2021
leio10 added a commit that referenced this pull request May 24, 2021
leio10 added a commit that referenced this pull request May 24, 2021
* chore: add dev dependency of meetings in participatory_processes

* fix: repair tests broken by #7893
entantoencuanto added a commit that referenced this pull request May 31, 2021
* develop: (59 commits)
  Update supported versions in docs (#8079)
  Meetings merge minutes and close actions (#7968)
  Meeting calendars providers (#7944)
  Fix broken test on meetings after merging PR without rebase (#8076)
  Show participants list in meetings (#7933)
  Security feature external link warning (#7397)
  Add missing tests for scope types admin page (#8053)
  Use symbols for polymorphic route arguments (#8052)
  Mockup design for Participation statistics tables in Votings (#7879)
  Fix boolean fields for .reported? and .hidden? which is nil if no report exists (#7990)
  Fix redirects broken by Terms and Conditions redirect (#8036)
  Amend CSS overwritting (#8007)
  New Crowdin updates (#8048)
  Fix undetected broken tests because of missing dependencies (#8050)
  Validate results by Monitoring Committee Members (#7899)
  Electoral certificate validation by Monitoring Committee Members (#7871)
  Publish and unpublish a meeting (#7893)
  New Crowdin updates (#8005)
  Polling station closure attach the physical electoral closure certificate (#7929)
  Fix attachment title migration generating possibly invalid values (#8020)
  ...
@leio10 leio10 mentioned this pull request Jun 7, 2021
12 tasks
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.

Publish and unpublish only one meeting

3 participants