Skip to content

New Admin UI: User attributes UI does not refresh, shows stale values #21719

Closed

Description

@ice09

Before reporting an issue

Area

admin/api

Describe the bug

Related to #21693

I want to change an attribute value on a user:

  1. I click on "Users" in the left main menu
  2. I choose the user I want to change in the "search users" panel
  3. I click on tab "Attributes", change the value of the attribute and click on Save
  4. I click switch to the "Details" tab of the same user and click Save again
  5. If I switch back to the "Attributes" tab, the new values are shown
  6. If I reload the user by clicking on "Users" and choosing the user in the search panel, the old values are shown in the attributes tab (these old values are also stored in the database)

This does not happen if I do not execute step 4 (ie. save of the details tab after save on the attributes tab) - then the new values are stored correctly.

Version

21.1.2

Expected behavior

After saving the values in the attributes tab, the values will not be overwritten with the old values when saving the values again in the details tab.

Actual behavior

Clicking save on the details tab overwrites the new values which have been saved in the attributes tab with the old values before saving.

How to Reproduce?

Follow the steps above, can be reproduced in nightly.

Anything else?

No response

Activity

  1. added
    kind/bug
    on Jul 16, 2023
  2. ghost added
    area/admin/api
    on Jul 16, 2023
  3. rmartinc commented on Jul 17, 2023

    @rmartinc
    Contributor

    I think this is an UI issue as I see the saving of the details sets back the old values in attributes in step 4. In my tests I see the new value in step 5 but, if the user is reloaded again (go back to users and select the same user again) the old value is present in the attributes.

  4. added
    area/admin/ui
    and removed
    area/admin/api
    on Jul 17, 2023
  5. ice09 commented on Jul 17, 2023

    @ice09
    Author

    That's correct, I have the same behaviour as @rmartinc described, I changed the description.

  6. ssilvert commented on Jul 17, 2023

    @ssilvert
    Contributor

    @ice09 Is this not the same as the issue you opened a couple of days ago?
    #21693

  7. ice09 commented on Jul 18, 2023

    @ice09
    Author

    No, it's probably related (as stated in the description), but 21693 is about group attributes and this one is about user attributes. Also, the errors are a little different, but I assume very much UI/caching related.

  8. added a commit that references this issue on Jul 19, 2023
    c17b021
  9. self-assigned this
    on Jul 19, 2023
  10. added a commit that references this issue on Aug 9, 2023
    33aab79
  11. added this to the 22.0.2 milestone on Aug 21, 2023
  12. added 2 commits that reference this issue on Aug 23, 2023
    d2f40d5
    c97aa69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/admin/uikind/bug

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions