Repository navigation
Add card aliases to server-side search - #993
Open
makgit9623 wants to merge 2 commits into
Open
makgit9623 wants to merge 2 commits into
makgit9623 wants to merge 2 commits into
Conversation
Add a shared JSON registry of 157 card editions and community aliases, identified by unique card codes and organized alphabetically for easier maintenance.
Add case-insensitive whole-word alias matching to standard card searches using unique card codes, preserving name, acronym, card code and combined search filters.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This PR adds support for community card aliases in the server-side card search, allowing players to find specific card editions using nicknames and abbreviations.
Alias matching extends the existing search logic without replacing standard name, acronym, or card code searches.
Changes
Expected behavior
danny→ Five specific Daenerys Targaryen editions (currently at this time)kevin→ Bodyguard (Core).kevin costner→ Bodyguard (Core)."kevin costner"→ Bodyguard (Core).fat cat→ Catelyn Stark (WotN).ikea→ The Iron Throne (Core) and Chamber of the Painted Table (Core).ikea-kit→ Same results asikea kit.core→ Cards with aliases containing the word "core".f:stark "fat cat"remain restricted by faction.Scope
Modified files:
public/card_aliases.jsonsrc/Services/CardsData.phpNo database schema, card data, or search syntax changes.
Testing
Full Symfony integration and regression testing have not been performed. Maintainer validation is requested before merging.