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

(PC-31604)[BO] fix: when user is already anonymized button to anonymize should not appear #13933

Conversation

blbpro
Copy link
Contributor

@blbpro blbpro commented Sep 2, 2024

But de la pull request

Ticket Jira (ou description si BSR) : https://passculture.atlassian.net/browse/PC-31604

verification front

A présent lorsque l'on a deja anonymisé un utilisateur de plus de 21 ans, le bouton anonymisé aura disparu pour des raisons évidente de clarté:
Capture d’écran 2024-09-02 à 18 06 10

verification back

  • CI - verte
  • faute d'orthographe - OK
  • commentaire à mettre/retirer/corriger - OK

cas de test détecté:

c'est du front aucun test ( voir image)

Verification ticket

  • nom du ticket conforme -> OK
  • auteur du ticket -> Ok
  • nombre de commit -> Ok
  • nom du commit -> OK
  • mettre le ticket en code-review -> OK

Tache restante si WIP + AUTRE

  • refresh de la page github -> OK
  • Rien de visible
Capture d’écran 2024-09-03 à 10 09 53

@blbpro blbpro force-pushed the PC-31604_button_anonymise_appear_on_beneficiary_already_anonymised branch from 22b3436 to c96a249 Compare September 2, 2024 16:32
@blbpro blbpro marked this pull request as ready for review September 3, 2024 07:27
@blbpro blbpro force-pushed the PC-31604_button_anonymise_appear_on_beneficiary_already_anonymised branch 2 times, most recently from 10e837c to 9d41aa5 Compare September 3, 2024 08:41
Comment on lines +409 to +413
if (
utils.has_current_user_permission(perm_models.Permissions.ANONYMIZE_PUBLIC_ACCOUNT)
and not _has_user_pending_anonymization(user_id)
and users_models.UserRole.ANONYMIZED not in user.roles
):
Copy link
Contributor

Choose a reason for hiding this comment

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

Il manque un petit test :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

A vrai dire, j'ai justement pensé qu'un test n'était pas nécéssaire pour ce cas spécifique étant donné les tests en backend mais très bien, je vais faire le test

Copy link
Contributor

Choose a reason for hiding this comment

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

Ça me semble bien, je laisse Patrick approuver si ça lui convient

@blbpro blbpro force-pushed the PC-31604_button_anonymise_appear_on_beneficiary_already_anonymised branch from 9d41aa5 to 8a2d0bb Compare September 3, 2024 13:53
@blbpro blbpro merged commit e3c74d8 into master Sep 4, 2024
23 checks passed
@blbpro blbpro deleted the PC-31604_button_anonymise_appear_on_beneficiary_already_anonymised branch September 4, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants