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

CLDR-10384 Use display names for Organization menus #2477

Merged
merged 1 commit into from
Oct 22, 2022

Conversation

btangmu
Copy link
Member

@btangmu btangmu commented Oct 21, 2022

-New cldrOrganizations.js encapsulates org names on front end

-Sort org display names alphabetically on front end with localeCompare

-List Users and Add User menus are alphabetically sorted by org display name

-List Users sections are alphabetically sorted by org display name

-Fix form-validation problems in AddUser.vue, wait until levels and orgs are loaded

-Fix AddUser.vue, clear errors and warnings when Add Another User

-In cldrAccount.js always get orgs; even for a single org, need short/display mapping

-In cldrAccount.js new setMockLevels, setMockOrgs for unit testing without json from server

-In AddUser.java, use Auth.SESSION_HEADER not query param s

-In OrgList.java, respond with both short and display org names

-In OrgList.java, do not share Organization.special (High Coverage and Generated) with the front end

-In UserList.java, do not include org list in json, no longer needed

-Comments

CLDR-10384

  • This PR completes the ticket.

-New cldrOrganizations.js encapsulates org names on front end

-Sort org display names alphabetically on front end with localeCompare

-List Users and Add User menus are alphabetically sorted by org display name

-List Users sections are alphabetically sorted by org display name

-Fix form-validation problems in AddUser.vue, wait until levels and orgs are loaded

-Fix AddUser.vue, clear errors and warnings when Add Another User

-In cldrAccount.js always get orgs; even for a single org, need short/display mapping

-In cldrAccount.js new setMockLevels, setMockOrgs for unit testing without json from server

-In AddUser.java, use Auth.SESSION_HEADER not query param s

-In OrgList.java, respond with both short and display org names

-In OrgList.java, do not share Organization.special (High Coverage and Generated) with the front end

-In UserList.java, do not include org list in json, no longer needed

-Comments
@btangmu btangmu self-assigned this Oct 21, 2022
@btangmu btangmu marked this pull request as ready for review October 21, 2022 17:33
@btangmu btangmu requested a review from srl295 October 21, 2022 17:33
// Note: this assignment to levelList is redundant except for the unit test;
// a future revision of the unit test could supply a mock levelList separately
levelList = json.userPerms.levels;
shownUsers = json.shownUsers; // redundant except for unit test
Copy link
Member

Choose a reason for hiding this comment

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

gotta love those unit tests :)

@@ -143,4 +143,8 @@ public LocaleSet getCoveredLocales() {
}
return localeSet;
}

public boolean visibleOnFrontEnd() {
Copy link
Member

Choose a reason for hiding this comment

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

good

@btangmu btangmu merged commit e697ef2 into unicode-org:main Oct 22, 2022
@btangmu btangmu deleted the t10384_d branch October 22, 2022 00:58
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.

2 participants