Skip to content

feat: implement entry ID lookup by filename for jurors#550

Open
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:feat/entry-lookup-by-filename
Open

feat: implement entry ID lookup by filename for jurors#550
ayushshukla1807 wants to merge 1 commit into
hatnote:masterfrom
ayushshukla1807:feat/entry-lookup-by-filename

Conversation

@ayushshukla1807
Copy link
Copy Markdown

This PR clears a long-standing TODO in juror_endpoints.py by implementing a filename-based entry lookup for jurors.

Changes:

  • Added get_entry_by_name to UserDAO in rdb.py to support global entry lookups.
  • Implemented GET /juror/entry_lookup endpoint which accepts a filename parameter.
  • Added filename standardisation (removing File: prefix, handling spaces/underscores) to ensure robust lookups.
  • The endpoint returns full entry details including uploader information, width, height, and MediaWiki URLs.

This is a highly useful utility for jurors who need to cross-reference specific files by name rather than internal database IDs.

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.

1 participant