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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #3382576 by nkoporec: Disable revisions for groups #3486

Closed
wants to merge 124 commits into from

Conversation

nkoporec
Copy link
Contributor

@nkoporec nkoporec commented Aug 22, 2023

Problem

When doing a clean install of the latest Open Social (from branch dev-main), revisions are enabled for groups and show up as a tab in the group itself.

Solution

Disable revisions as this was not enabled before.

Issue tracker

https://www.drupal.org/project/social/issues/3382576

Theme issue tracker

[Required if applicable] Paste a link to the drupal.org theme issue queue item, either from socialbase or socialblue. If any other issue trackers were used, include links to those too.

How to test

  1. Install clean OS
  2. Go to admin/group/types/manage/closed_group
  3. See that Create a new revision when a group is modified checkbox is disabled.

Definition of done

Before merge

  • Code/peer review is completed
  • All commit messages are clear and clean. If applicable a rebase was performed
  • All automated tests are green
  • Functional/manual tests of the acceptance criteria are approved
  • All acceptance criteria were met
  • New features or changes to existing features are covered by tests, either unit (preferably) or behat
  • Update path is tested. New hook_updates should respect update order, right naming convention and consider hook_post_update code
  • Module can be safely uninstalled. Update/implement hook_uninstall and make sure that removed configuration or dependencies are removed/uninstalled
  • This pull request has all required labels (team/type/priority)
  • This pull request has a milestone
  • This pull request has an assignee (if applicable)
  • Any front end changes are tested on all major browsers
  • New UI elements, or changes on UI elements are approved by the design team
  • New features, or feature changes are approved by the product owner

After merge

  • Code is tested on all branches that it has been cherry-picked
  • Update hook number might need adjustment, make sure they have the correct order
  • The Drupal.org ticket(s) are updated according to this pull request status

Screenshots

Before:
image

After:
image

Release notes

Disabled revisions for groups.

Change Record

Translations

@nkoporec nkoporec added status: needs review This pull request is waiting for a requested review prio: medium team: guardians labels Aug 22, 2023
@nkoporec nkoporec added this to the 11.10.0 milestone Aug 22, 2023
@mergeable
Copy link

mergeable bot commented Aug 22, 2023

Thanks for contributing towards Open Social! A maintainer from the @goalgorilla/maintainers group might not review all changes from all teams/contributors. Please don't be discouraged if it takes a while. In the meantime, we have some automated checks running and it might be that you will see our comments with some tips or requests to speed up the review process. 😊

@nkoporec nkoporec added type: bug Fixes a bug in Open Social needs: behat review labels Aug 22, 2023
@mergeable mergeable bot removed type: bug Fixes a bug in Open Social needs: behat review labels Aug 22, 2023
@nkoporec nkoporec added the type: bug Fixes a bug in Open Social label Aug 22, 2023
@BiaInacio
Copy link
Contributor

Hi @nkoporec, I follow the HTT and sadly the "Create a new revision when a group is modified" option is disabled:
image

@tbsiqueira tbsiqueira modified the milestones: 11.10.0, 11.10.1 Aug 31, 2023
@nkoporec
Copy link
Contributor Author

nkoporec commented Sep 6, 2023

@BiaInacio This is correct as per screenshot, the option should be disabled and the "Revisions" tab should not be visible when viewing the group stream pages.

@BiaInacio
Copy link
Contributor

Hi @nkoporec,
Thank you for the explanation, test ok! 😄

nechai and others added 12 commits September 11, 2023 19:04
…al_group_flexible_group\Plugin\views\filter\FlexibleGroupNodeAccess
…ode_access" table for nodes with "public" visibility
Currently translated at 98.4% (3361 of 3415 strings)

Co-authored-by: Greenwire Team CH <greenwire@greenpeace.ch>
Translate-URL: https://translate.getopensocial.com/projects/gpch/distribution/de_CH/
Translation: Greenpeace Switzerland/Distribution
Currently translated at 49.5% (1670 of 3372 strings)

Translated using Weblate (German)

Currently translated at 56.1% (1916 of 3415 strings)

Co-authored-by: Henrique Ciolfi <henrique.ciolfi@greenpeace.org>
Co-authored-by: Owusu-Debrah Boateng <oboateng@greenpeace.org>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.getopensocial.com/projects/gpbr/distribution/pt_BR/
Translate-URL: https://translate.getopensocial.com/projects/gpde/distribution/de/
Translation: Greenpeace Brazil/Distribution
Translation: Greenpeace Germany/Distribution
Currently translated at 50.0% (1686 of 3372 strings)

Co-authored-by: Henrique Ciolfi <henrique.ciolfi@greenpeace.org>
Translate-URL: https://translate.getopensocial.com/projects/gpbr/distribution/pt_BR/
Translation: Greenpeace Brazil/Distribution
These fields have a different field type and value structure than the
`datetime` fields that we already tackled in a previous commit, so we
need to add them separately.
We sometimes use PHPStan outside of update hooks but this is prone to
hard to debug errors which is why we shouldn't do it.

This adds a PHPStan hook (with test coverage) to allow `executeUpdate`
calls from a `hook_update_N` but not in other functions.
This allows us to use the same structure but it ensures that we can
clean up our update path or change our installation independently of the
other.
This allows them to be more easily ignored and allows someone to just
start writing in the template rather than having to replace or remove
text.
volodymyr-sydor and others added 26 commits September 11, 2023 19:04
The id() method of EntityInterface can return: string|int|null. So, is_int() check will be always false and we will have empty result in exported CSV
Currently translated at 98.2% (3342 of 3400 strings)

Co-authored-by: Greenwire Team CH <greenwire@greenpeace.ch>
Translate-URL: https://translate.getopensocial.com/projects/gpch/distribution/de_CH/
Translation: Greenpeace Switzerland/Distribution
Currently translated at 98.2% (3342 of 3400 strings)

Co-authored-by: Greenwire Team CH <greenwire@greenpeace.ch>
Translate-URL: https://translate.getopensocial.com/projects/gpch/distribution/de_CH/
Translation: Greenpeace Switzerland/Distribution
Currently translated at 50.0% (1703 of 3400 strings)

Translated using Weblate (Dutch)

Currently translated at 99.1% (3403 of 3432 strings)

Co-authored-by: Bram ten Hove <bram.ten.hove@goalgorilla.com>
Co-authored-by: Henrique Ciolfi <henrique.ciolfi@greenpeace.org>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.getopensocial.com/projects/gpbr/distribution/pt_BR/
Translate-URL: https://translate.getopensocial.com/projects/open-social/distribution/nl/
Translation: Greenpeace Brazil/Distribution
Translation: Open Social/Distribution
Currently translated at 56.3% (1917 of 3400 strings)

Co-authored-by: Clara Corpus <clara.corpus@greenpeace.org>
Translate-URL: https://translate.getopensocial.com/projects/gpde/distribution/de/
Translation: Greenpeace Germany/Distribution
Currently translated at 50.1% (1706 of 3400 strings)

Co-authored-by: Henrique Ciolfi <henrique.ciolfi@greenpeace.org>
Translate-URL: https://translate.getopensocial.com/projects/gpbr/distribution/pt_BR/
Translation: Greenpeace Brazil/Distribution
Currently translated at 0.1% (1 of 3400 strings)

Translated using Weblate (German (de_CH) (de_CH@gpi))

Currently translated at 0.1% (1 of 3400 strings)

Translated using Weblate (Dutch)

Currently translated at 52.5% (1786 of 3400 strings)

Co-authored-by: ST Tabarelli <stefanotabarelli@goalgorilla.com>
Co-authored-by: Weblate <noreply@weblate.org>
Translate-URL: https://translate.getopensocial.com/projects/gpch/distribution/de_CH@gpi/
Translate-URL: https://translate.getopensocial.com/projects/gpch/distribution/fr_CH@gpi/
Translate-URL: https://translate.getopensocial.com/projects/gpnl/distribution/nl/
Translation: Greenpeace Netherlands/Distribution
Translation: Greenpeace Switzerland/Distribution
Currently translated at 50.2% (1708 of 3400 strings)

Co-authored-by: Henrique Ciolfi <henrique.ciolfi@greenpeace.org>
Translate-URL: https://translate.getopensocial.com/projects/gpbr/distribution/pt_BR/
Translation: Greenpeace Brazil/Distribution
…king duplication of enrollees and organisers

Issue #3377397 by Kovalskiy266: Change name of user in behat test and fix message in MinkContext exception
…moves the flexibility to change it in a different format. In an earlier feature we introduced the option to remove this hardcoded header but we did not provide any default. In this code we set a default for the Open Social product to remove it for specific emails.
@nkoporec
Copy link
Contributor Author

New PR: #3517

@nkoporec nkoporec closed this Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
prio: medium status: needs review This pull request is waiting for a requested review team: guardians type: bug Fixes a bug in Open Social
Development

Successfully merging this pull request may close these issues.