Skip to content

Single transaction sign up#5456

Merged
isaacsolo merged 8 commits intomainfrom
is-single-tx-signup
Jun 21, 2023
Merged

Single transaction sign up#5456
isaacsolo merged 8 commits intomainfrom
is-single-tx-signup

Conversation

@isaacsolo
Copy link

Description

Currently sign up can take up to 3 transactions: create user record, update handle, update images. This change makes it a single relay.

Also fixing the indexing side so the metadata is saved to the user record.

How Has This Been Tested?

Linked SDK and tested against stage. Confirmed single tx signup works. Confirmed multi tx signup works.

Please describe the tests that you ran to verify your changes. Provide repro instructions & any configuration.

@isaacsolo isaacsolo requested a review from theoilie June 21, 2023 19:17
Copy link
Contributor

@theoilie theoilie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

cid_type[metadata_cid] = metadata_type
cid_metadata[metadata_cid] = params.metadata
user_record.metadata_multihash = metadata_cid
user_record = update_legacy_user_images(user_record)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: this flow will only happen for storage v2 users right? maybe it's better to remove this line and stop using update_legacy_user_images going forward, since all the v2 user stuff only sets the correct _sizes fields and not the legacy ones

@isaacsolo isaacsolo merged commit 1b19b60 into main Jun 21, 2023
@isaacsolo isaacsolo deleted the is-single-tx-signup branch June 21, 2023 23:21
audius-infra pushed a commit that referenced this pull request Jun 21, 2023
[skip ci]
## Changelog

- 2023-06-21 [1b19b60] Single transaction sign up (#5456) [Isaac Solo]
- 2023-06-20 [2399c1d] @audius/sdk: v2.0.3-beta.52 [audius-infra]
audius-infra pushed a commit that referenced this pull request Jun 21, 2023
[skip ci]
## Changelog

- 2023-06-21 [1b19b60] Single transaction sign up (#5456) [Isaac Solo]
- 2023-06-20 [2399c1d] @audius/sdk: v2.0.3-beta.52 [audius-infra]
isaacsolo pushed a commit that referenced this pull request Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants