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

improve dictionary validation #520

Merged
merged 8 commits into from
Jan 20, 2024

Conversation

Casheeew
Copy link
Collaborator

Solves #507 (dev dictionary validation now validates files with skipped indexes).
Also changed the QueryDetails in dictionary-import.js _getArchiveFiles to be a simple 2d array as opposed to a Map because it is more performant when looped over.

@Casheeew Casheeew requested a review from a team as a code owner January 14, 2024 04:40
@Casheeew Casheeew marked this pull request as draft January 14, 2024 04:44
Copy link

github-actions bot commented Jan 14, 2024

✔️ No visual differences introduced by this PR.

View Playwright Report (note: open the "playwright-report" artifact)

@Casheeew Casheeew marked this pull request as ready for review January 14, 2024 04:52
ext/js/dictionary/dictionary-importer.js Show resolved Hide resolved
ext/js/dictionary/dictionary-importer.js Outdated Show resolved Hide resolved
types/ext/dictionary-importer.d.ts Outdated Show resolved Hide resolved
types/dev/dictionary-validate.d.ts Outdated Show resolved Hide resolved
djahandarie
djahandarie previously approved these changes Jan 20, 2024
Copy link
Collaborator

@djahandarie djahandarie left a comment

Choose a reason for hiding this comment

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

LGTM, but merge conflict

@djahandarie djahandarie added this pull request to the merge queue Jan 20, 2024
Merged via the queue into themoeway:master with commit 0011afe Jan 20, 2024
5 checks passed
@djahandarie djahandarie added the kind/meta The issue or PR is meta label Jan 20, 2024
@djahandarie
Copy link
Collaborator

@Scrub1492 @stephenmk I noticed that the latest version of Jitendex https://github.com/stephenmk/Jitendex/releases/tag/v4.1-1 is now failing to validate. Do we know why?

Error: Dictionary has invalid data in 'term_bank_68.json'

@stephenmk
Copy link

I can't reproduce that error. I just built the extension locally using the code from commit 39265a4 and installed it in firefox and chromium. Neither one had a problem verifying and importing the jitendex zip file from that release page.

@djahandarie
Copy link
Collaborator

You're right, sorry for the false alarm -- I had an old schema locally and had to ./build.sh again.

@Casheeew Casheeew deleted the fix-dictionary-validate branch January 21, 2024 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/meta The issue or PR is meta
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants