-
Notifications
You must be signed in to change notification settings - Fork 86
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
Fixed repo name in snapshot flyout; Use schedule from policy during edit #824
Conversation
Signed-off-by: Amardeepsingh Siglani <amardeep7194@gmail.com>
Can we get some unit test for this? |
Codecov Report
@@ Coverage Diff @@
## main #824 +/- ##
==========================================
- Coverage 63.38% 63.36% -0.02%
==========================================
Files 341 341
Lines 11545 11553 +8
Branches 2108 2112 +4
==========================================
+ Hits 7318 7321 +3
- Misses 3654 3658 +4
- Partials 573 574 +1 |
@@ -55,6 +55,25 @@ const CronSchedule = ({ | |||
const [dayOfWeek, setWeek] = useState(initWeek); | |||
const [dayOfMonth, setMonth] = useState(initMonth); | |||
|
|||
// When edit policy is clicked, during the initial render DEFAULT values get passed |
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.
The miss here is thought useState will re-create those values every time
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.
Yeah
Description
This PR fixes below issues:
Issues Resolved
#823 , #822
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.