Skip to content

Make developer app address lookups case-insensitive#762

Open
rickyrombo wants to merge 2 commits intomainfrom
mjp-case-insensitive-developer-app-lookup
Open

Make developer app address lookups case-insensitive#762
rickyrombo wants to merge 2 commits intomainfrom
mjp-case-insensitive-developer-app-lookup

Conversation

@rickyrombo
Copy link
Copy Markdown
Contributor

Summary

  • Use lower() on both sides of the address comparison in GetDeveloperApps and GetDeveloperAppsWithGrants SQL queries
  • Previously, lookups were case-sensitive which could cause failures when API keys were passed with mixed casing (e.g. 0x-prefixed vs bare hex)

Test plan

  • Verify developer app lookup works with uppercase, lowercase, and mixed-case addresses
  • Verify existing developer app lookups continue to work

🤖 Generated with Claude Code

Use lower() on both sides of the address comparison in
GetDeveloperApps and GetDeveloperAppsWithGrants queries.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the developer app retrieval queries to treat app addresses as case-insensitive, preventing lookup failures when callers provide mixed-case addresses.

Changes:

  • Made GetDeveloperApps address matching case-insensitive by applying lower() to both sides of the comparison.
  • Made GetDeveloperAppsWithGrants address matching case-insensitive by applying lower() to both sides of the comparison.
  • Regenerated the sqlc Go output to reflect the updated SQL.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
api/dbv1/queries/get_developer_apps.sql Updates address predicates to be case-insensitive for both developer app listing and grants-based listing queries.
api/dbv1/get_developer_apps.sql.go sqlc-generated Go update reflecting the modified SQL query text.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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