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

Fix Users page not updating fields correctly #1105

Conversation

ZedLi
Copy link
Collaborator

@ZedLi ZedLi commented May 11, 2022

🎟️ Jira ticket

Description

You'll have to run a local boundary dev to test this as you won't see the difference with just mirage data

Screenshots (if appropriate):

Taken from the ticket:
https://user-images.githubusercontent.com/6604151/166251178-fea3b1e4-bcbc-4c40-ab90-8a9d5c46da01.mov

After:
user

@ZedLi ZedLi requested review from a user, calcaide, DhariniJeeva and cameronperera May 11, 2022 19:24
@ZedLi ZedLi self-assigned this May 11, 2022
@vercel
Copy link

vercel bot commented May 11, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
boundary-ui ✅ Ready (Inspect) Visit Preview May 12, 2022 at 2:02PM (UTC)
boundary-ui-desktop ✅ Ready (Inspect) Visit Preview May 12, 2022 at 2:02PM (UTC)
boundary-ui-storybook ✅ Ready (Inspect) Visit Preview May 12, 2022 at 2:02PM (UTC)

@@ -40,7 +40,7 @@ export default class UserModel extends GeneratedUserModel {
* There are many options, so we fallback in order of precedence.
* @type {string}
*/
@computed('email,full_name,login_name,displayName')
@computed('email', 'full_name', 'login_name')
Copy link

Choose a reason for hiding this comment

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

This computed decorator may not be required at all in Ember Octane: https://github.com/ember-cli/eslint-plugin-ember/blob/master/docs/rules/no-computed-properties-in-native-classes.md

It should automagically work the same if the decorator is removed thanks to tracked properties (model attributes are automatically tracked).

Copy link
Collaborator

@cameronperera cameronperera left a comment

Choose a reason for hiding this comment

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

LGTM!

…ICU-4189-boundary-ui-iss-1096-admin-ui-users-page-serves-stale-content-after-user-account-association
@ZedLi ZedLi merged commit 9719636 into main May 12, 2022
@ZedLi ZedLi deleted the ICU-4189-boundary-ui-iss-1096-admin-ui-users-page-serves-stale-content-after-user-account-association branch May 12, 2022 14:16
Copy link
Collaborator

@calcaide calcaide left a comment

Choose a reason for hiding this comment

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

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Admin UI users page serves stale content after user -> account association
3 participants