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

fix: handle obsolete where filter fields mapping to current schema #1521

Merged

Conversation

Junjiequan
Copy link
Member

@Junjiequan Junjiequan commented Nov 25, 2024

Description

This PR adds a new function, convertObsoleteWhereFilterToCurrentSchema, to handle mapping obsolete filter fields (e.g., proposalId → proposalIds, sampleId → sampleIds) to their current schema equivalents.

Motivation

Fixes

  • Bug fixed (#X)

Changes:

  • changes made

Tests included

  • Included for each change/fix?
  • Passing?

Documentation

  • swagger documentation updated (required for API changes)
  • official documentation updated

official documentation info

@Junjiequan Junjiequan requested a review from nitrosx November 25, 2024 19:49
@@ -64,7 +64,6 @@ OIDC_USERQUERY_OPERATOR=<"or"|"and">
OIDC_USERQUERY_FILTER="username:username, email:email"

ELASTICSEARCH_ENABLED=<"yes"|"no">
APP_PORT=3003
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: unrelated?

Copy link
Member Author

Choose a reason for hiding this comment

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

This ENV variable is not used anywhere and I felt the change was too small to open a PR.. As it's an unused variable in an example file

@Junjiequan Junjiequan force-pushed the SWAP-4303-scicat-be-debug-and-fix-dataset-proposal-update-n branch 2 times, most recently from 2197d80 to d3b6eab Compare November 27, 2024 17:28
@Junjiequan Junjiequan force-pushed the SWAP-4303-scicat-be-debug-and-fix-dataset-proposal-update-n branch from d3b6eab to 5f75362 Compare November 27, 2024 17:34
@Junjiequan Junjiequan merged commit 071d759 into master Nov 28, 2024
8 checks passed
@Junjiequan Junjiequan deleted the SWAP-4303-scicat-be-debug-and-fix-dataset-proposal-update-n branch November 28, 2024 06:56
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.

3 participants