-
Notifications
You must be signed in to change notification settings - Fork 88
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 <[email protected]>
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
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) Signed-off-by: Amardeepsingh Siglani <[email protected]> (cherry picked from commit 274d9bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#827) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#828) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#829) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#832) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#830) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#824) (#831) (cherry picked from commit 274d9bc) Signed-off-by: Amardeepsingh Siglani <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.