Closed syphax-bouazzouni closed 3 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 73.28%. Comparing base (
f439e21
) to head (88973e9
).:exclamation: Current head 88973e9 differs from pull request most recent head 2a675bb. Consider uploading reports for the commit 2a675bb to get more accurate results
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
I understand why the Solr schema was added to the ontologies_api project in this PR; it eliminates the need to keep the ontoportal/solr-ut image synchronized when schema changes occur. A more elegant solution could be implemented to maintain schema synchronization between ontologies_api and ontologies_linked_data, but this requirement will disappear after the schemaless Solr feature is implemented. At that point, the Solr configuration could be removed from ontologies_api.
Require
Context
This PR adds a middleware request_lang that will save for each request the parameter
lang
orlanguage
if set, as a global variable that will filter the values by it.In addition, it updates the search helper, to add the selected language as a suffix of the SOLR requests, to search by the selected language only.
Changes