Skip to content
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

Merged
merged 8 commits into from
Mar 13, 2021
Merged

Multi wallet & collectibles #1301

merged 8 commits into from
Mar 13, 2021

Conversation

sddioulde
Copy link
Contributor

Description

  • Add multi wallet support
  • add collectibles support in user metadata

Tests

Tested locally

  • associated wallets balance is updated correctly
  • account creation
  • upload
  • adding of multi wallet
  • adding of collectibles
  • fetching wallets and collectibles via ipfs
  • /v1/users/id
  • /v1/users/associated_wallets

❗ 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

jowlee and others added 5 commits March 12, 2021 17:22
* 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
@raymondjacobson raymondjacobson changed the title Feature collectibles Multi wallet & collectibles Mar 12, 2021
Copy link
Contributor

@hareeshnagaraj hareeshnagaraj left a 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

hareeshnagaraj
hareeshnagaraj previously approved these changes Mar 13, 2021
Copy link
Contributor

@hareeshnagaraj hareeshnagaraj left a 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:
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Member

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

@raymondjacobson raymondjacobson merged commit df56278 into master Mar 13, 2021
@raymondjacobson raymondjacobson deleted the feature-collectibles branch March 13, 2021 02:37
hareeshnagaraj pushed a commit that referenced this pull request Mar 15, 2021
* 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>
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.

None yet

4 participants