chore: point anti-abuse oracle endpoint at anti-abuse-oracle.audius.engineering#14380
Closed
dylanjeffers wants to merge 3 commits into
Closed
chore: point anti-abuse oracle endpoint at anti-abuse-oracle.audius.engineering#14380dylanjeffers wants to merge 3 commits into
dylanjeffers wants to merge 3 commits into
Conversation
The host-contest page passed full absolute URLs (fullContestPage, fullTrackPage) to react-router's navigate(), which treats them as relative path segments — producing blank pages at URLs like /host-contest/https:/audius.co/<handle>/contest/<slug>. Switch to the relative-path helpers so submit, cancel, and delete navigate to a real route. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
useCreateEvent's onMutate awaits sdk.events.generateEventId() before priming the optimistic cache. The previous fire-and-forget mutate() meant handleSubmit kept going and navigated to the contest page while the optimistic write was still pending, so the contest query found nothing in cache and the page stuck on its skeleton until the indexer caught up. Switch to mutateAsync and await it so the optimistic event is in the cache (and the SDK call has landed on the server) before we redirect. On error we now bail out of navigation so the user can retry from the form instead of landing on a half-created contest page. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…ngineering Update the AAO endpoint config across web, mobile, identity service, SDK services config, and the AAO pedalboard plugin to use the new audius.engineering host. Discovery / validator node URLs are unchanged. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
🦋 Changeset detectedLatest commit: a068342 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Contributor
🌐 Web preview readyPreview URL: https://audius-web-preview-pr-14380.audius.workers.dev Unique preview for this PR (deployed from this branch). |
4 tasks
Contributor
Author
Contributor
Author
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.
Summary
https://discoveryprovider.audius.cohost (and the olderhttps://antiabuseoracle.audius.cofallback used by identity / the AAO pedalboard plugin) tohttps://anti-abuse-oracle.audius.engineering.packages/webandpackages/mobileenv.prod,packages/identity-serviceAAO util default, the AAO pedalboard plugin'sgetAAOAttestationURL, the SDK services config (generateServicesConfig.tssource + autogeneratedproduction.ts).Test plan
npm run verifypassesAAO_ENDPOINTaaoEndpointfrom env override in production (default change only affects unconfigured environments)antiAbuseOracleSelectoragainst the registered AAO eth address0x9811BA3eAB1F2Cd9A2dFeDB19e8c2a69729DC8b6🤖 Generated with Claude Code