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

Fix motions using old motion events #3071

Merged
merged 7 commits into from
Dec 22, 2021

Conversation

ArmandoGraterol
Copy link
Contributor

Fixed the motions using events from previous instances of the voting reputation extension. The queries would use old events if the current motion id corresponds to any old motion id, so now we need to filter by the current extension's address.

In order to test, you will need to install the voting reputation extension, do some motions, and then uninstall and install the extension and do more motions and see if there are any events that don't correspond with the motions.

To see the bug in action, aside from following the instructions I wrote above in master, you can check the Roadrunner colony on QA: https://qaxdai.colony.io/colony/roadrunner

Resolves #2845 and #2846

@ArmandoGraterol ArmandoGraterol requested a review from a team December 21, 2021 20:55
@ArmandoGraterol ArmandoGraterol self-assigned this Dec 21, 2021
Copy link
Member

@arrenv arrenv left a comment

Choose a reason for hiding this comment

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

Seems to be only showing the correct events now, having tested a few cycles of the steps as described with and without your updates.

Good stuff!

Before

Should show only the annotation and the creation event.

before-motion-events

After

Correctly shows only the annotation and the creation event.

after-motion-events

Copy link
Contributor

@chinins chinins left a comment

Choose a reason for hiding this comment

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

Working well! Nice job!

@ArmandoGraterol ArmandoGraterol force-pushed the fix/issue-2845-wrong-motion-events branch from 54cba57 to 9457df7 Compare December 22, 2021 22:13
@ArmandoGraterol ArmandoGraterol merged commit 5038508 into master Dec 22, 2021
@ArmandoGraterol ArmandoGraterol deleted the fix/issue-2845-wrong-motion-events branch December 22, 2021 22:21
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.

Smite action "attached" to a bunch of other transactions
3 participants