-
Notifications
You must be signed in to change notification settings - Fork 385
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 Overall Errors #3743
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
279ce0f
CLDR-17560 Overall Errors
srl295 85b04a3
CLDR-17560 fix for Chrome oddity in URL
srl295 22fab83
CLDR-17560 Overall Locales: front end code updates
srl295 f082976
CLDR-17560 Overall Locales: revert swagger version
srl295 ab125cd
CLDR-17560 Overall Locales: suppress how to fix, for now
srl295 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
<template> | ||
<div style="background: #ffffff; padding: 30px"> | ||
<a-card hoverable :title="subtypeString"> | ||
<!-- TODO: Error details are commented out temporarily, see discussion at CLDR-17664 --> | ||
<template #extra | ||
><a-tag | ||
:title="status.subtype" | ||
:color="'error' || status.type.toLowerCase()" | ||
>{{ "error" || status.type }}</a-tag | ||
></template | ||
> | ||
<!-- <p> | ||
{{ status.message }} | ||
</p> --> | ||
<p>Information on how to fix this is forthcoming.</p> | ||
<!-- | ||
<template v-if="status.subtypeUrl" #actions> | ||
<a class="warningReference" :href="status.subtypeUrl">How to Fix…</a> | ||
</template> | ||
--> | ||
</a-card> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
computed: { | ||
myClass() { | ||
return `cldrError tr_${this.status.type} `; | ||
}, | ||
subtypeString() { | ||
return this.status.subtype.split(/(?=[A-Z])/).join(" "); | ||
}, | ||
}, | ||
props: { | ||
/** | ||
* 'status' is a VoteAPI.CheckStatusSummary with these properties: | ||
* | ||
* public String message; | ||
* public Type type; | ||
* public Subtype subtype; | ||
* public String subtypeUrl; | ||
* public Phase phase; | ||
* public String cause; | ||
* public boolean entireLocale; | ||
* | ||
* */ | ||
status: Object, | ||
}, | ||
}; | ||
</script> | ||
|
||
<style scoped> | ||
.subtype { | ||
font-size: larger; | ||
font-weight: bold; | ||
color: black; | ||
} | ||
|
||
.cldrError { | ||
border: 1px solid gray; | ||
padding: 1em; | ||
margin-bottom: 2em; | ||
margin-right: 1em; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,8 @@ | |
> | ||
Open Dashboard | ||
</button> | ||
|
||
<cldr-overall-errors /> | ||
</div> | ||
</template> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
<template> | ||
<a-spin v-if="!loaded" /> | ||
<div v-if="loaded && errors"> | ||
<h2>Overall Errors</h2> | ||
<p> | ||
Check the following errors carefully. These issues often require a ticket | ||
to be filed with CLDR to fix. | ||
</p> | ||
|
||
<cldr-error v-for="test of errors" :key="test.subtype" :status="test" /> | ||
</div> | ||
</template> | ||
|
||
<script setup> | ||
import { ref } from "vue"; | ||
import { getLocaleErrors } from "../esm/cldrDash.mjs"; | ||
import { getCurrentLocale } from "../esm/cldrStatus.mjs"; | ||
import * as cldrNotify from "../esm/cldrNotify.mjs"; | ||
|
||
const loaded = ref(false); | ||
const errors = ref(null); | ||
const locale = ref(getCurrentLocale()); | ||
|
||
async function loadData() { | ||
const resp = await getLocaleErrors(locale.value); | ||
if (!resp || !resp.body) { | ||
errors.value = null; | ||
} else { | ||
const { body } = resp; | ||
const { tests } = body; | ||
errors.value = tests; | ||
} | ||
loaded.value = true; | ||
} | ||
|
||
loadData().then( | ||
() => {}, | ||
(err) => { | ||
console.error(err); | ||
cldrNotify.exception( | ||
err, | ||
"Loading overall errors for " + getCurrentLocale() | ||
); | ||
} | ||
); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 makes
hadEntireLocale
unused (dead code), so it should be removed aboveThere 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.
true.