ILAB date picker updates when no ILAB jobs found #153
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Type of change
Description
The
fetchILabJobs
action wasn't updating the date picker values from the API response unless a non-empty list of jobs is returned. This means that on the initial load, if the default API date range (1 month) doesn't find any jobs, the displayed list is empty and the date range isn't updated to tell the user what we've done.I've seen no ill effects in local testing from simply removing the length check, and now the date picker is updated correctly.
This is chained from #122 (crucible) -> #123 (ilab API) -> #124 (ilab UI) -> #153 (this)
Related Tickets & Documents
PANDA-710
Checklist before requesting a review
Testing
Tested with standard
ocpperf.toml
on a local server deployment. This change only affects the new ILAB component tab.