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

Fixes #14461 - fix: make sync button get member data is user is in a party #14468

Closed
wants to merge 2 commits into from
Closed

Conversation

ashbork
Copy link
Contributor

@ashbork ashbork commented Jan 29, 2023

Fixes #14461

Changes

A simple fix for the issue; after the fetch, if the user is in a party, member stats are also fetched on sync. This lets stats such as mana and EXP be synced without reloading the whole app.

@ashbork ashbork changed the title fix: make sync button get member data is user is in a party Fixes #14461 - fix: make sync button get member data is user is in a party Jan 29, 2023
@SabreCat
Copy link
Member

Simple and clean! It does mean an extra API call for each manual sync when a user's in a party, but I think that's acceptable to meet user expectations for how the sync button should work.

If you have a Habitica User ID, let us know so we can give you contributor credit on the site! Either way, thank you for the PR!

@ashbork
Copy link
Contributor Author

ashbork commented Feb 13, 2023

Sure! My user ID is 7e52c9c7-f0aa-480d-9471-a167dd872c19. I believe the call is warranted - the sync definitely shouldn't be "hot" so the added cost shouldn't be an issue

@ashbork
Copy link
Contributor Author

ashbork commented Mar 16, 2023

How are we doing with the merge?

@ashbork ashbork closed this by deleting the head repository Aug 5, 2023
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.

Avatar stats don't update after another user uses a buffing abililty
2 participants