InseeFr / InseeFr/sugoi-ui

[BUG] :bug: Patch modification doesn't update current user object

Open
#360 0 comments 2 reactions 1 assignee Claimed by @fjr3o6 View on GitHub
bug P1
Dominant language
TypeScript
Stars
5
Forks
7
Avg merge
2d 11h
Merged PRs (30d)
28

Description

Modification that uses patch (addAttributes method) such as habilitations and simpleAppManagedAttributes updates the user via sugoi api and the updated user is retrieved by sugoi-ui.
However the updated user is not used to update the user that will be posted to the api leading to losing the patch modification after a post modification.

Step to reproduce :
- add two habilitations on a user (because only one will trigger an api bug that will hide this bug)
- return to the Main tab
- click on "Enregistrer les modifications"
- the added habilitations have been erased

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.