chore(zero-trust): cleanup, server-computed site labels, run-targets region-filter fix - #152
Merged
Conversation
…computed site labels 🤖 Built with SMT <smt@agora.build>
…emptied for non-public tokens 🤖 Built with SMT <smt@agora.build>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cleanup pass over the zero-trust/geoip surfaces plus two functional improvements that fell out of it.
What
siteLabelonGET /api/eval-agentsandGET /api/eval-agent-tokens("Santa Clara 01"), reusing the existingregionMetadatahelper — one catalog fetch per request, no per-row queries. The console renders it directly, eliminating the brief raw-siteId flash when a freshly-detected city isn't in the client's cached catalog yet (the server just created the row; it always knows the name).minelist's?region=filter matchedeval_agent_tokens.region— permanently NULL for non-public tokens since zero-trust — so selecting a region emptied the list (hit by run-your-own). The filter now matches the effective (detected) region, with a both-directions test.LOCATION_RECHECK_HOURScomment, the unreadcount(*)field ingetAvailableRegions, and the caller-lessgetPendingEvalJobsByRegion.Verification
npm run checkclean; eslint unchanged.Generated with SMT smt@agora.build