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

Avoid manual optimistic updates for now #1220

Merged
merged 2 commits into from
Jun 4, 2024

Conversation

ekzyis
Copy link
Member

@ekzyis ekzyis commented Jun 4, 2024

Description

Related to #1218

Manual optimistic updates break cache updates for comments (probably updates for all following mutations). This PR comments out the code that breaks them for now.

TODO:

  • also comment out delete manual optimistic update code for bounty and poll votes

Checklist

Are your changes backwards compatible? Please answer below:

Yes

Did you QA this? Could we deploy this straight to production? Please answer below:

Yes, tested zaps and custom zap with commenting afterwards, bounty payments, polls

For frontend changes: Tested on mobile? Please answer below:

Did you introduce any new environment variables? If so, call them out explicitly here:

@ekzyis ekzyis added the bug label Jun 4, 2024
@ekzyis ekzyis changed the title Avoid manual optimistic zap updates for now Avoid manual optimistic updates for now Jun 4, 2024
@ekzyis ekzyis marked this pull request as draft June 4, 2024 07:38
@ekzyis
Copy link
Member Author

ekzyis commented Jun 4, 2024

I kept the broken optimistic code for zaps as comments so I can easier study it. But it's probably better to completely focus on #1195 instead of trying to fix code that #1195 will make obsolete anyway.

@ekzyis ekzyis marked this pull request as ready for review June 4, 2024 07:55
@huumn huumn merged commit ea97fbf into master Jun 4, 2024
6 checks passed
@huumn huumn deleted the 1218-avoid-manual-optimistic-updates-for-now branch June 4, 2024 08:02
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