Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

c-456 Fix pending tx every session load#1293

Merged
nicoback2 merged 2 commits into
mainfrom
nkang--fix-confirmer-init
May 9, 2022
Merged

c-456 Fix pending tx every session load#1293
nicoback2 merged 2 commits into
mainfrom
nkang--fix-confirmer-init

Conversation

@nicoback2

Copy link
Copy Markdown
Contributor

Description

Before:
There was a pending USER transaction on every app session load if the user had any playlist folders. This was because we compute playlists that are in the user's account but missing in their library - and if there are any, we update the playlist library. If the user had a folder with at least one playlist, the missing playlists were computed incorrectly - which caused the update profile operation to be called on every load.

Dragons

Is there anything the reviewer should be on the lookout for? Are there any dangerous changes?

How Has This Been Tested?

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

How will this change be monitored?

For features that are critical or could fail silently please describe the monitoring/alerting being added.

@nicoback2 nicoback2 requested a review from sliptype May 6, 2022 23:06
@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/nkang--fix-confirmer-init

@sliptype sliptype left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice work!

@@ -71,8 +72,10 @@ function* watchUpdatePlaylistLibrary() {
yield takeEvery(update.type, function* updatePlaylistLibrary(
action: ReturnType<typeof update>
) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we keep these logs?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

oh def not! my b

@audius-infra

Copy link
Copy Markdown
Collaborator

Preview this change https://demo.audius.co/nkang--fix-confirmer-init

@nicoback2 nicoback2 merged commit c27ceae into main May 9, 2022
@nicoback2 nicoback2 deleted the nkang--fix-confirmer-init branch May 9, 2022 15:15
@sliptype sliptype mentioned this pull request May 13, 2022
@AudiusProject AudiusProject deleted a comment from linear Bot Sep 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants