-
Notifications
You must be signed in to change notification settings - Fork 421
refactor(data_classes): simplify nested data classes #6289
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(data_classes): simplify nested data classes #6289
Conversation
Make each nested data class only know its own properties instead of having to reference from the root of the data. This hopefully simplifies the code and avoids DRY. Also simplify test cases.
No related issues found. Please ensure there is an open issue related to this change to avoid significant delays or closure. |
Hi @ericbn! Thanks for submitting this PR and streamlining the event source code! I see some tests are failing, could you please take a look? In the meantime, I'll open an issue to link to this PR and keep things in order. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to fix tests.
I've pushed a new commit here but the PR is still stuck by GitHub in "processing updates"... |
Please push another small commit and lets see if GH works. |
Done. Seems to be unstuck now! |
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #6289 +/- ##
===========================================
- Coverage 96.32% 96.31% -0.01%
===========================================
Files 241 241
Lines 11633 11625 -8
Branches 864 862 -2
===========================================
- Hits 11205 11197 -8
Misses 336 336
Partials 92 92 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
tests/unit/data_classes/required_dependencies/test_cognito_user_pool_event.py
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
APPROVED! Thanks @ericbn!
Issue number: #6292
Summary
Changes
Make each nested data class only know its own properties instead of having to reference from the root of the data. This hopefully simplifies the code and avoids DRY. Also simplify test cases.
User experience
No user experience change.
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.