-
Notifications
You must be signed in to change notification settings - Fork 301
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
Fix/reset vote selection #4480
Merged
Merged
Fix/reset vote selection #4480
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
garethfuller
approved these changes
Oct 31, 2023
garethfuller
added a commit
that referenced
this pull request
Nov 3, 2023
* chore: Add RDNT-WETH pool to ethereum allowlist * fix: temporary hide optimism * 1.130.1 * 1.130.2 * fix: optimism deprecated pools list * 1.130.3 * update weekly gauges (#4477) * update weekly gauges * add zkevm pool * 1.130.4 * feat: add pool composable stable factory address on zkevm * 1.130.5 * new gauges * 1.130.6 * chore: Add 50WETH-50DAI pool to base allowlist (#4486) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.7 * chore: Add 50USDbC-50axlUSDC pool to base allowlist (#4483) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance> * chore: Add 50wstETH-50MaticX pool to polygon allowlist (#4482) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.8 * chore: Add 50WETH-50USDbC pool to base allowlist (#4484) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance> * 1.130.9 * feat: Enable OP (#4479) * chore: Enable OP in UI * chore: Add CSP warning * 1.130.10 * Fix: reload multivoting request on account change (#4480) * 1.130.11 * chore: Add 50WETH-50USDbC pool to base allowlist (#4500) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.12 * adding zkevm pools to whitelist * 1.130.13 * chore: Add 80WBTC-20USDC pool to arbitrum allowlist (#4505) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.14 * chore: Remove tally from wallet options * chore: Fix WC aspect ratio --------- Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Anastasios <anastas3993@gmail.com> Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: Tritium <11885129+Tritium-VLK@users.noreply.github.com> Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance>
garethfuller
added a commit
that referenced
this pull request
Nov 6, 2023
* chore: Add RDNT-WETH pool to ethereum allowlist * fix: temporary hide optimism * 1.130.1 * 1.130.2 * fix: optimism deprecated pools list * 1.130.3 * update weekly gauges (#4477) * update weekly gauges * add zkevm pool * 1.130.4 * feat: add pool composable stable factory address on zkevm * 1.130.5 * new gauges * 1.130.6 * chore: Add 50WETH-50DAI pool to base allowlist (#4486) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.7 * chore: Add 50USDbC-50axlUSDC pool to base allowlist (#4483) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance> * chore: Add 50wstETH-50MaticX pool to polygon allowlist (#4482) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.8 * chore: Add 50WETH-50USDbC pool to base allowlist (#4484) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance> * 1.130.9 * feat: Enable OP (#4479) * chore: Enable OP in UI * chore: Add CSP warning * 1.130.10 * Fix: reload multivoting request on account change (#4480) * 1.130.11 * chore: Add 50WETH-50USDbC pool to base allowlist (#4500) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.12 * adding zkevm pools to whitelist * 1.130.13 * chore: Add 80WBTC-20USDC pool to arbitrum allowlist (#4505) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.14 * chore: Update wallet connect modal (#4507) * chore: Remove tally from wallet options * chore: Fix WC aspect ratio * 1.130.15 * chore: Add 33BAL-33USDC-33USDbC pool to base allowlist (#4509) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.16 * chore: Add 50WBTC-50LINK pool to arbitrum allowlist (#4506) Co-authored-by: balopco <balopco@users.noreply.github.com> * 1.130.17 * chore: Add 50WETH-50USDbC pool to base allowlist (#4490) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Gareth Fuller <gareth.a.f@gmail.com> * 1.130.18 * chore: Add 50USDbC-50STG pool to base allowlist (#4504) Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Gareth Fuller <gareth.a.f@gmail.com> * 1.130.19 * chore: Fix Gyro pools on zkevm --------- Co-authored-by: balopco <balopco@users.noreply.github.com> Co-authored-by: Anastasios <anastas3993@gmail.com> Co-authored-by: Automated Version Bump <gh-action-bump-version@users.noreply.github.com> Co-authored-by: Tritium <11885129+Tritium-VLK@users.noreply.github.com> Co-authored-by: ZeKraken <79888567+zekraken-bot@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alberto Gualis <alberto@balancer.finance>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The multivoting request was not being recreated when the on user account change.
The underlying code is probably too complex.
The main idea is that the first time we load the voting list decorated with votes, we also load an in memory votingRequest that is shared across the voting pages (list and forms) to store the current selection (pools + votes) of the user.
The issue was that, once the user account was changed the vue-queries were being reloaded but the votingRequest didn’t. We need watchers to know how to reset/update that votingRequest and that’s the complex part but I made them work in all scenarios.
If I had more time I would try to simplify the logic around this watchers but I think it is ok like it is now.
The key is that when we detect that the user account changed, we reset the voting list query and the votingRequest to trigger a complete reload.
Type of change
How should this be tested?
Please provide instructions so we can test. Please also list any relevant details for your test configuration.
Visual context
updateAccount.mp4
Checklist:
master
if hotfix,develop
if not