-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi wallet & collectibles #1301
Conversation
* Validate CN for associated_wallest in user metadata * Add associated wallets to Discovery DB * Add assocaited wallet to discovery schema * Update discovery indexing for user associated wallets * Add discovery endpoints for wallet - id * Add wallets schema to libs user validation
* Update associated_wallet schema and update disc. user balance on wallet update * Update schema in libs for associated wallets * Update validate metadata in creator for assciated wallet * Fix CN test * Add another check to CN metadata upload * Lint discovery * Update user schema validator in discovery and libs
* Support collectibles in libs * Support metadata multihash for collectibles in discovery * Add has_collectibles indexed field to user object * Fix wallet object check * Clean up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple comments, happy to chat offline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!! Can discusss any potential issues after we soak on stage, from what I understand thiis looks great
user_record.name = metadata_overrides["name"] | ||
if metadata_overrides["location"]: | ||
user_record.location = metadata_overrides["location"] | ||
if 'associated_wallets' in ipfs_metadata: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very minor question, should an empty dict be passed in if for some reason there previouslly was associated_wallets and now there are not? not 100 if that is even posssiible (idt so) with happy pathclient
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in the metadata object i mean
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the json schema should nullify it, so we should always have something here
* Multi Wallet Support (#1296) * Validate CN for associated_wallest in user metadata * Add associated wallets to Discovery DB * Add assocaited wallet to discovery schema * Update discovery indexing for user associated wallets * Add discovery endpoints for wallet - id * Add wallets schema to libs user validation * Update schema and user balance for associated wallet (#1299) * Update associated_wallet schema and update disc. user balance on wallet update * Update schema in libs for associated wallets * Update validate metadata in creator for assciated wallet * Fix CN test * Add another check to CN metadata upload * Lint discovery * Update user schema validator in discovery and libs * Feature collectibles metadata multihash (#1292) * Support collectibles in libs * Support metadata multihash for collectibles in discovery * Add has_collectibles indexed field to user object * Fix wallet object check * Clean up * Do not check metadata from ipfs every time * Fix alembic collisions * Handle the null cases in user metadata indexing * Forgo image size changes * Fix clean metadata for new fields Co-authored-by: Joseph Lee <joeylee0925@gmail.com> Co-authored-by: Raymond Jacobson <ray@audius.co> Co-authored-by: Saliou Diallo <saliou@audius.co>
Description
Tests
Tested locally
❗ Reminder 💡❗:
If this PR touches a critical flow (such as Indexing, Uploads, Gateway or the Filesystem), make sure to add the
requires-special-attention
label. Add relevant labels as necessary.Touches indexing