Skip to content

Improve search API robustness with query sanitization and fallback handling to prevent nil values in doc_title, improving API reliability and consistency. - #11874

Open
Sudarshan-Raut wants to merge 1 commit into
publiclab:mainfrom
Sudarshan-Raut:patch-5

Conversation

@Sudarshan-Raut

Copy link
Copy Markdown

…ndling

Added input sanitization to normalize query parameters and implemented fallback handling to prevent nil values in doc_title, improving API reliability and consistency.

Fixes #0000

Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!

  • PR is descriptively titled 📑 and links the original issue above 🔗
  • tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR -- or run tests locally with rake test
  • code is in uniquely-named feature branch and has no merge conflicts 📁
  • screenshots/GIFs are attached 📎 in case of UI updation
  • ask @publiclab/reviewers for help, in a comment below

…ndling

Added input sanitization to normalize query parameters and implemented fallback handling to prevent nil values in doc_title, improving API reliability and consistency.

@pydevsg pydevsg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please add before vs after change screenshot .

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