Make analyzer REST languages configurable with SUPPORTED_LANGUAGES#2171
Open
rodboev wants to merge 1 commit into
Open
Make analyzer REST languages configurable with SUPPORTED_LANGUAGES#2171rodboev wants to merge 1 commit into
rodboev wants to merge 1 commit into
Conversation
Signed-off-by: Rod Boev <rod.boev@gmail.com>
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.
Change Description
Add a runtime supported-languages override for the analyzer REST service so
/supportedentitiesand/recognizerscan expose non-English recognizers without requiring a custom analyzer YAML mount.Issue reference
Fixes #1058
Verification
cd presidio-analyzer && poetry run pytest tests/test_analyzer_engine_provider.py tests/test_app.py—46 passed, 3 skipped, 21 warnings in 38.67scd presidio-analyzer && poetry run ruff check app.py presidio_analyzer/analyzer_engine_provider.py tests/test_analyzer_engine_provider.py tests/test_app.py—All checks passed!The Poetry environment initially lacked the analyzer test dependencies, and
poetry install --no-interaction --no-roottimed out after 120 seconds. The checks passed after installing the required runtime and test dependencies into the package Poetry environment. The three skipped tests are the existing optional engine cases.Note on CHANGELOG
This change adds a user-visible server configuration input, so
CHANGELOG.mdunderUnreleasedshould be updated.Checklist