Skip to content

fix: default to all scopes in dataset search#76

Open
nusje2000 wants to merge 1 commit into4TUResearchData:mainfrom
riotbyte-com:fix/default-search-scopes
Open

fix: default to all scopes in dataset search#76
nusje2000 wants to merge 1 commit into4TUResearchData:mainfrom
riotbyte-com:fix/default-search-scopes

Conversation

@nusje2000
Copy link
Copy Markdown

@nusje2000 nusje2000 commented Apr 20, 2026

Summary

Fix dataset search failing when no scopes are provided. When scope is an empty list, the search throws a 500 error. This defaults to all available scopes (title, description, tag, author) when none are specified.

Changes

  • src/djehuty/web/database.py: Default to all scopes when search_query["scope"] is empty.

Approval Checklist

  • I agree to follow Djehuty's code of conduct.
  • I have read and I have follow the code contribution workflow.
  • Code style and conventions were respected.
  • Documentation has been updated where needed (README, docs, or examples).
  • Review approved by at least one maintainer.
  • Merge readiness (PR is squashed into a single commit and follows the commit template).

Issue Reference (optional - PRs may not be associated with an issue)

Extracted from #56 as requested in #56 (comment).

nusje2000 added a commit to riotbyte-com/djehuty that referenced this pull request Apr 20, 2026
Copy link
Copy Markdown
Collaborator

@gabrielakuhn gabrielakuhn left a comment

Choose a reason for hiding this comment

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

Thank you very much @nusje2000! Please check the commit message template to create your squashed commit so it can be merged.

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