-
Notifications
You must be signed in to change notification settings - Fork 24
[RMV] remove duplicated override of create method #868
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
Conversation
Summary of ChangesHello @reichie020212, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a bug where Change Request (CR) sequence numbers were incrementing by two due to a redundant Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
This pull request correctly addresses the issue of the change request sequence being incremented twice upon creation. The root cause was a duplicated create method in the spp.change.request model (within the spp_change_request module), which was an exact copy of the parent method in the spp_change_request_base module. By removing this redundant override, the code is simplified, maintainability is improved, and the bug is resolved. The change is clean and effective.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## 17.0 #868 +/- ##
==========================================
- Coverage 79.83% 79.81% -0.02%
==========================================
Files 805 805
Lines 23050 23039 -11
Branches 2727 2726 -1
==========================================
- Hits 18402 18389 -13
- Misses 3979 3981 +2
Partials 669 669 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jeremi
left a comment
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.
Sounds good to me @Markpenalosa can you test in the UI?



Why is this change needed?
How was the change implemented?
createmethodNew unit tests
Unit tests executed by the author
How to test manually
Related links
Note
Removes the duplicate
createoverride inspp_change_request/models/change_request.pythat set defaults and created a pending validation activity.spp_change_request/models/change_request.py): Remove overriddencreatemethod that:assign_to_idto current usernamefromir.sequenceWritten by Cursor Bugbot for commit bac619f. This will update automatically on new commits. Configure here.