-
Notifications
You must be signed in to change notification settings - Fork 372
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-15161 progress: back end for locale completion(3) #1638
Conversation
Not quite working yet, but some progress
Grabacion.de.pantalla.2021-12-01.a.la.s.9.45.13.a.m.mov |
8d13dfe
to
fa0cb7a
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
c68ad65
to
4bd76b0
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
// ** Step two. | ||
// Make some changes, and we should have a couple of errors. | ||
// "Expected <100%" | ||
// Mutate | ||
localeFile.add("//ldml/characters/exemplarCharacters", "[]"); | ||
localeFile.add("//ldml/numbers/symbols[@numberSystem=\"latn\"]/group", | ||
",,,"); // err; expected 1, not 3 | ||
// rootFile.add("//ldml/localeDisplayNames/languages/language[@type=\""+TEST_LOCALE+"\"]", | ||
// TEST_LOCALE); // for fallback | ||
localeFile.remove("//ldml/localeDisplayNames/languages/language[@type=\"" + TEST_LOCALE + "\"]"); | ||
localeFile.add("//ldml/dates/timeZoneNames/zone[@type=\"Pacific/Kanton\"]/exemplarCity[@draft=\"provisional\"]", "cabaca"); | ||
localeFile.add("//ldml/dates/timeZoneNames/zone[@type=\"Asia/Qyzylorda\"]/exemplarCity[@draft=\"unconfirmed\"]", "bacaba"); | ||
tc.invalidateAllCached(); | ||
final int EXPECT_ERROR = 2; | ||
final int EXPECT_MISSING = 1; | ||
final int EXPECT_PROVISIONAL = 2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above results in 2 errors, 1 missing, 2 provisional.
The front end doesn't need the M/E/P split out, but it's useful for debugging.
random failing tests notwithstanding, I am still not getting the right behavior from this. It shows more work to do when nothing shows up in the dashboard. Leaving this in draft. |
4bd76b0
to
773b09e
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
773b09e
to
f2a938a
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
f2a938a
to
142f5f0
Compare
Hooray! The files in the branch are the same across the force-push. 😃 ~ Your Friendly Jira-GitHub PR Checker Bot |
ae1bf50
to
aa88512
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
Think this is ready. |
localeFile.add("//ldml/numbers/currencies/currency[@type=\"XTS\"]/displayName[@draft=\"provisional\"]", | ||
"Test Currency (comprehensive level, should not have an effect on completion)"); | ||
localeFile.add("//ldml/numbers/currencies/currency[@type=\"XUA\"]/displayName[@draft=\"unconfirmed\"]", | ||
"Other Test Currency (comprehensive level, should not have an effect on completion)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignored due to limited submission, but tested to work otherwise.
private static final String TEST_LOCALE = "es"; | ||
|
||
@Test | ||
void testLocaleCompletion() throws SQLException, IOException { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this function is too long, even for a unit test
@srl295 one concern is that I haven't yet done what Mark proposed last week: make the 2nd meter visible but grayed out when the dash data hasn't been fetched. Without that, the 3rd meter will sometimes be the 2nd visible meter. That might be confusing. I'll work on the grayed-out 2nd meter today. In the meantime, I wonder if we should merge this except keep CAN_GET_LOCALE_PROGRESS = false? Then I'd be able to test locally with all 3 meters. If there's no push to production today or tomorrow, then CAN_GET_LOCALE_PROGRESS = true is fine and will enable testing on smoketest; maybe it's fine anyway; what do you think? |
I filed CLDR-15239 to get these switches out of source. Sure, i will change it to false… |
- back end API for LocaleCompletion - test case for LocaleCompletion, including minor changes to enable testability of STFactory-related code. - update launch.json to improve attaching to OpenLiberty - return 503 error if the SurveyTool is not yet started - Ignore some paths per Phase and SubmissionLocales
aa88512
to
0348714
Compare
Notice: the branch changed across the force-push!
~ Your Friendly Jira-GitHub PR Checker Bot |
uh-oh: "cldrTable.cldrChecksum |
@srl295 let's go ahead and merge this, ok? |
CLDR-15161 progress: back end for locale completion (third meter)
testability of STFactory-related code.