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-17560 UI for entire locale checks #3644

Merged

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Apr 18, 2024

(PR depends on #3648 )

  • add a nonPathError status to CheckStatus
  • make CheckStatus comparable
  • set the nonPathError for all possibleErrors and deferred (handleCheck)
  • update ConsoleCheckCLDR
  • add a new 'supplemental' report that simply lists the overall errors
  • update Chart api to take testbundle

CLDR-17560

  • This PR completes the ticket.

ALLOW_MANY_COMMITS=true

@srl295 srl295 self-assigned this Apr 18, 2024
@srl295
Copy link
Member Author

srl295 commented Apr 18, 2024

With this change, there are no longer thousands of errors (compare to https://cldr-staging.unicode.org/cldr-apps/v#/vmw/Languages_A_D/7d1d3cbd260601a4 )

image

@macchiati
Copy link
Member

Looks really useful. Can you add a copy of the resulting report, for comparison.

@srl295
Copy link
Member Author

srl295 commented Apr 18, 2024

Also, I would probably split the web portion of this out separately

@macchiati
Copy link
Member

macchiati commented Apr 18, 2024 via email

@srl295
Copy link
Member Author

srl295 commented Apr 18, 2024

Looks really useful. Can you add a copy of the resulting report, for comparison.

Thanks… There is a screenshot included above

@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from ffff603 to 277e98c Compare April 19, 2024 16:32
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/js/src/esm/cldrText.mjs is no longer changed in the branch
  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/api/ReportAPI.java is no longer changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCLDR.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/ConsoleCheckCLDR.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/tool/Chart.java is no longer changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/tool/ChartSupplemental.java is no longer changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/util/VettingViewer.java is no longer changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/util/VoterReportStatus.java is no longer changed in the branch

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295 srl295 changed the title CLDR-17560 CheckCLDR separate out non-path checks CLDR-17560 UI for non-path checks Apr 19, 2024
@srl295
Copy link
Member Author

srl295 commented Apr 19, 2024

I'm going to keep this PR for the UI and make a separate one for underpinnings

@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 5db570b to be946ad Compare April 19, 2024 16:40
@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 changed the title CLDR-17560 UI for non-path checks CLDR-16979 UI for Supplemental (entire locale) checks Apr 19, 2024
@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from be946ad to dde975c Compare April 19, 2024 18:25
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/api/ReportAPI.java is different
  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/SubtypeToURLMap.java is now changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCLDR.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/tool/Chart.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/tool/ChartSupplemental.java is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295
Copy link
Member Author

srl295 commented Apr 22, 2024

  • in demoing this i realized that it's still showing the entireLocale checks in the info panel. to fix.
  • also needs rebase now that the parent PR is merged

@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 269db13 to 4368d82 Compare April 23, 2024 00:21
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/SubtypeToURLMap.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/ConsoleCheckCLDR.java is no longer changed in the branch

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 4368d82 to 3925491 Compare April 23, 2024 00:21
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/SubtypeToURLMap.java is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295 srl295 changed the title CLDR-16979 UI for Supplemental (entire locale) checks CLDR-17560 UI for Supplemental (entire locale) checks Apr 26, 2024
@srl295 srl295 changed the title CLDR-17560 UI for Supplemental (entire locale) checks CLDR-17560 UI for entire locale checks Apr 26, 2024
@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 3925491 to 7eedaac Compare April 26, 2024 18:41
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/js/src/esm/cldrSurvey.mjs is now changed in the branch
  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/api/VoteAPI.java is now changed in the branch
  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/SurveyJSONWrapper.java is now changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCLDR.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/ConsoleCheckCLDR.java is now changed in the branch
  • tools/cldr-code/src/main/java/org/unicode/cldr/tool/ChartSupplemental.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/util/VettingViewer.java is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295
Copy link
Member Author

srl295 commented Apr 26, 2024

More UI:

info panel shows a single 'see also' link directing to the Supplemental report

image

@srl295 srl295 marked this pull request as ready for review April 26, 2024 18:43
@macchiati
Copy link
Member

Still has conflicts. Otherwise ok

@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 7eedaac to 7774140 Compare April 30, 2024 13:44
@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

- add a new 'supplemental' report that simply lists the overall errors
- update Chart API to take testbundle and subtype mapper
- rollup non-path checks into a single warning in the info panel
- fix Voting API to expose this data
@srl295 srl295 force-pushed the cldr-17560/supplemental-nonpath-errs branch from 7774140 to 466bdcb Compare April 30, 2024 13:50
@jira-pull-request-webhook
Copy link

Notice: the branch changed across the force-push!

  • tools/cldr-apps/src/main/java/org/unicode/cldr/web/SubtypeToURLMap.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/CheckCLDR.java is different
  • tools/cldr-code/src/main/java/org/unicode/cldr/test/ConsoleCheckCLDR.java is different

View Diff Across Force-Push

~ Your Friendly Jira-GitHub PR Checker Bot

@srl295
Copy link
Member Author

srl295 commented Apr 30, 2024

@macchiati take a look.

@@ -752,8 +752,15 @@ function testsToHtml(tests) {
if (!tests) {
return newHtml;
}
var hadEntireLocale = false;
Copy link
Member

Choose a reason for hiding this comment

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

I never use "var" anymore. I don't know of any good reason to use it in new code. Not that it generally causes any problem, but it has an "old code" smell and raises questions like "is this variable referenced before it's declared?" and "is it declared more than once?"

Copy link
Member Author

Choose a reason for hiding this comment

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

Will fix in follow on

@srl295 srl295 merged commit 1f9e557 into unicode-org:main May 2, 2024
11 checks passed
@srl295 srl295 deleted the cldr-17560/supplemental-nonpath-errs branch May 2, 2024 14:10
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.

3 participants