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

refactor(minor-voting-verifier): integrate the voting-verifier with the into-event macro #743

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fish-sammy
Copy link
Collaborator

Description

Todos

  • Unit tests
  • Manual tests
  • Documentation
  • Connect epics/issues

Steps to Test

Expected Behaviour

Other Notes

@fish-sammy fish-sammy requested a review from a team as a code owner January 10, 2025 22:15
Copy link

codecov bot commented Jan 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.36%. Comparing base (1a8a4cc) to head (0cb2a20).

Additional details and impacted files
@@           Coverage Diff            @@
##             main     #743    +/-   ##
========================================
  Coverage   93.36%   93.36%            
========================================
  Files         225      225            
  Lines       36359    36253   -106     
========================================
- Hits        33947    33849    -98     
+ Misses       2412     2404     -8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@fish-sammy fish-sammy force-pushed the refactor/integrate-into-event-with-voting-verifier branch from ee375c1 to b1a9069 Compare January 10, 2025 22:23
@fish-sammy fish-sammy changed the title refactor(voting-verifier-minor): integrate the voting-verifier with the into-event macro refactor(minor-voting-verifier): integrate the voting-verifier with the into-event macro Jan 13, 2025
Copy link
Contributor

@cgorenflo cgorenflo left a comment

Choose a reason for hiding this comment

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

Discussion: Should this be a major change? We are breaking compatibility with older ampd versions

@@ -635,6 +494,7 @@ mod test {
None,
],
}
.non_generic()
.into();

goldie::assert_json!(json!({
Copy link
Contributor

Choose a reason for hiding this comment

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

can you make sure that we're exhaustively testing all events? So the test should break if we add a new event variant without adding it here

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Not sure how you can do that, but it's not necessary since this test is there to make sure the differences in the JSON before and after using the macro are OK. With new events, do we need them to be added here?

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.

2 participants