Skip to content

Feat: Allow non-legacy access to all get AVS routes#439

Merged
gowthamsundaresan merged 1 commit intodevfrom
feat/legacy-flag-avs-routes
Jul 22, 2025
Merged

Feat: Allow non-legacy access to all get AVS routes#439
gowthamsundaresan merged 1 commit intodevfrom
feat/legacy-flag-avs-routes

Conversation

@gowthamsundaresan
Copy link
Copy Markdown
Collaborator

@gowthamsundaresan gowthamsundaresan commented Jul 18, 2025

The flag legacy = 'true' | 'false' has been added to the following routes

GET /avs
GET /avs/:address
GET /avs/:address/stakers
GET /avs/:address/operators

Calling any of these routes with the flag set to false (eg: GET /avs?legacy=false) will filter AVSs using the the settings made via area-internal-dashboard looking for isVisible === true && isVerified === true from the AdditionalInfo table. Fallback to the CuratedMetadata table remains in case these fields were never created.

Consider using ?legacy=false for area-app immediately, and then once we are happy with the usage of area-internal-dashboard, updating the AvsFilterQuery to use AdditionalInfo and deprecating CuratedMetadata altogether -- this would allow ee-ui to be in sync with area-app

Note: No breaking changes

@gowthamsundaresan gowthamsundaresan merged commit 9d2f4ad into dev Jul 22, 2025
1 check passed
@gowthamsundaresan gowthamsundaresan deleted the feat/legacy-flag-avs-routes branch July 22, 2025 22:39
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