Skip to content

Avoid duplicate languages in edition metadata - #3699

Closed
prajakta128 wants to merge 1 commit into
OWASP:masterfrom
prajakta128:fix/duplicate-deck-languages
Closed

prajakta128 wants to merge 1 commit into
OWASP:masterfrom
prajakta128:fix/duplicate-deck-languages

Conversation

@prajakta128

Copy link
Copy Markdown
Contributor

DeckService.getLanguages() was collecting languages from every version of an
edition, so languages shared by multiple versions appeared more than once.
For example, the webapp metadata listed 21 entries for only 12 languages.

This change removes the duplicates while keeping the first occurrence of each
language. I also added a regression test for the webapp edition.

Resolved or fixed issue: none

Testing:

  • pnpm exec vitest run --reporter=dot: 24 files, 255 tests passed
  • ESLint on the changed files: passed
  • pnpm run check still fails on existing unrelated Svelte errors in the repo

@sydseter

Copy link
Copy Markdown
Collaborator

This is by design. Not all bersions has the same number of languages

@sydseter sydseter closed this Oct 28, 2026
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.

2 participants