-
Notifications
You must be signed in to change notification settings - Fork 178
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 end date issue and issues scheduling pipelines in Firefox #2866
Conversation
Need guidance on whether more testing is necessary or what I have is adequate. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2866 +/- ##
==========================================
+ Coverage 77.50% 78.67% +1.17%
==========================================
Files 1110 1120 +10
Lines 23482 23767 +285
Branches 5917 5982 +65
==========================================
+ Hits 18199 18698 +499
+ Misses 5283 5069 -214
... and 154 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
After creating a scheduled run, from the table choose to Perhaps patternfly has some insight for working with their dates: https://github.com/patternfly/patternfly-react/blob/main/packages/react-core/src/components/TimePicker/TimePickerUtils.tsx |
frontend/src/concepts/pipelines/content/createRun/contentSections/RunTypeSectionScheduled.tsx
Outdated
Show resolved
Hide resolved
^ Code is ready for review |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: christianvogt The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Closes: RHOAIENG-1197
Description
The issue at hand was that in Firefox, when trying to schedule a pipeline run, returned incoherent values for the end date. This was because of the usage of the Date() constructor, which is inconsistent at runtime if the parameter isn't an
ISO 8601 formatted
string. Here is the documentation if you are interested.Unfortunately, it seemed that I could not schedule any pipelines in Firefox, due to this runtime issue, which is a larger issue. Although this is now fixed, I need guidance on whether or not the testing I have done is adequate, or if it needs more.
Reproducible for Firefox on Mac
How Has This Been Tested?
Run
npm run test
.Test Impact
I added a test for my newly created function in
frontend/src/utilities/__tests__/time.spec.ts
Request review criteria:
Self checklist (all need to be checked):
After the PR is posted & before it merges:
main