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

Frontend not updated properly when adding a user to a group #6703

Closed
SamuelHassine opened this issue Apr 16, 2024 · 2 comments · Fixed by #6721
Closed

Frontend not updated properly when adding a user to a group #6703

SamuelHassine opened this issue Apr 16, 2024 · 2 comments · Fixed by #6721
Assignees
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)

Comments

@SamuelHassine
Copy link
Member

Description

  1. Go to a group
  2. Open edition
  3. Go in members
  4. Check a box

=> The box is never checked, you have to full refresh

@SamuelHassine SamuelHassine added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Apr 16, 2024
@Kedae Kedae removed the needs triage use to identify issue needing triage from Filigran Product team label Apr 16, 2024
@Archidoit Archidoit self-assigned this Apr 16, 2024
@SamuelHassine SamuelHassine added this to the Release 6.1.0 milestone Apr 17, 2024
@labo-flg
Copy link
Member

I stumbled upon this bug recently, here's some insights:

  • The query is sucessful
  • frontend has issues with duplicated keys in the user list in GroupEditionUsers, which could explain the UI
  • if you refresh, all is ok.
  • if you DONT refresh and go to the page groups, you'll get an error. In fact you'll get an error everywhere in the app: relay is basically crashed because of interlaced updater calls (the error logs points to the updater in GroupEditionUsers, on the add user mutation

Archidoit added a commit that referenced this issue Apr 17, 2024
@Archidoit
Copy link
Member

Yes, the problem comes from the updater that throws an error (because incorrect pagination options are given).

Archidoit added a commit that referenced this issue Apr 17, 2024
Archidoit added a commit that referenced this issue Apr 17, 2024
Archidoit added a commit that referenced this issue Apr 17, 2024
Archidoit added a commit that referenced this issue Apr 17, 2024
Archidoit added a commit that referenced this issue Apr 17, 2024
Archidoit added a commit that referenced this issue Apr 17, 2024
@SamuelHassine SamuelHassine added the solved use to identify issue that has been solved (must be linked to the solving PR) label Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected solved use to identify issue that has been solved (must be linked to the solving PR)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants