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-17758 DDL: expand VettingViewerSummary for unaffiliated TC to all non-TC locales #3822

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Jun 24, 2024

CLDR-17758

  • as an Unaffiliated TC, TC can request a Priority Items Summary that includes ONLY non-TC locales.

  • also split out Time Calc to improve the remaining time calculation for priority items

  • This PR completes the ticket.

Re-do of #3133

ALLOW_MANY_COMMITS=true

@srl295 srl295 added the ddl DDL-SC specific work label Jun 24, 2024
@srl295 srl295 requested a review from macchiati June 24, 2024 19:27
@srl295 srl295 self-assigned this Jun 24, 2024
@srl295 srl295 requested a review from btangmu June 24, 2024 19:27
btangmu
btangmu previously approved these changes Jun 24, 2024
Copy link
Member

@btangmu btangmu left a comment

Choose a reason for hiding this comment

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

"TODO" comments should be addressed/removed before finishing the ticket

LocalesWithExplicitLevel cldrLocale =
new LocalesWithExplicitLevel(Organization.cldr, desiredLevel);

// TODO: another hack, unaffiliated gets everything
Copy link
Member

Choose a reason for hiding this comment

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

"TODO" should have a ticket number and clarify what needs to be done, otherwise just a comment not a "TODO"

Copy link
Member Author

Choose a reason for hiding this comment

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

The todo is not needed here. I'll remove it.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed

@srl295 srl295 changed the title CLDR-16087 DDL: expand VettingViewerSummary for unaffiliated TC to all non-TC locales CLDR-16807 DDL: expand VettingViewerSummary for unaffiliated TC to all non-TC locales Jun 24, 2024
@srl295 srl295 changed the title CLDR-16807 DDL: expand VettingViewerSummary for unaffiliated TC to all non-TC locales CLDR-17758 DDL: expand VettingViewerSummary for unaffiliated TC to all non-TC locales Jun 24, 2024
…l non-TC locales

- also move TimeDiff routines out to a new class
@srl295 srl295 force-pushed the cldr-16087/expand-vvs-to-all-locales-for-unaffiliated branch from 6d4489a to 9707cdf Compare June 24, 2024 21:04
@jira-pull-request-webhook
Copy link

Hooray! The files in the branch are the same across the force-push. 😃

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295 srl295 requested a review from btangmu June 24, 2024 21:04
@srl295
Copy link
Member Author

srl295 commented Jun 24, 2024

@btangmu didn't realize i had already closed that PR

@@ -1084,6 +1084,27 @@ private void writeSummaryTable(

private Map<String, String> getSortedNames(Organization org, Level desiredLevel) {
Map<String, String> sortedNames = new TreeMap<>(CLDRConfig.getInstance().getCollator());
LocalesWithExplicitLevel cldrLocale =
new LocalesWithExplicitLevel(Organization.cldr, desiredLevel);
Copy link
Member

Choose a reason for hiding this comment

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

This is a TC user in the unaffiliated locales, right?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a user already allowed to access priority items summary.

Copy link
Member

Choose a reason for hiding this comment

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

I don't understand this code. The local variable cldrLocale seems to be assigned a value that is never used?

Copy link
Member Author

Choose a reason for hiding this comment

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

@btangmu Thanks! Actually this looks like a copy and paste error from my previous PR, i'll remove it.

if (org == Organization.unaffiliated && desiredLevel == Level.BASIC) {
for (String localeID : cldrFactory.getAvailable()) {
final CLDRLocale loc = CLDRLocale.getInstance(localeID);
if (SubmissionLocales.isTcLocale(loc)) continue; // skip TC locales
Copy link
Member

Choose a reason for hiding this comment

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

Once this is in place,

  1. the Priority Items should have all and only those locales that are in Organization.cldr - Organization.special.
  2. This list should include all and only those locales that are not in the Priority items.

Copy link
Member

Choose a reason for hiding this comment

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

In particular, if a locale has any errors (that are not duplicates of a parent locales errors), they should be listed in one of the two lists.

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't modify the non DDL list. Is it already correct?

Copy link
Member Author

Choose a reason for hiding this comment

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

The "normal" code is here

LocalesWithExplicitLevel includeLocale = new LocalesWithExplicitLevel(org, desiredLevel);

Copy link
Member Author

@srl295 srl295 Jun 24, 2024

Choose a reason for hiding this comment

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

In particular, if a locale has any errors (that are not duplicates of a parent locales errors), they should be listed in one of the two lists.

Could we include this under the separate ticket about deduplicating errors https://unicode-org.atlassian.net/browse/CLDR-17743 ? This particular PR has a more limited scope, that simply having a way to get DDL reports at all.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, the deduping can be separate.

@srl295 srl295 merged commit 7d65bac into unicode-org:main Jun 25, 2024
10 checks passed
@srl295 srl295 deleted the cldr-16087/expand-vvs-to-all-locales-for-unaffiliated branch June 25, 2024 01:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ddl DDL-SC specific work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants