Use the portal's time zone for raw data query dates instead of UTC.#1779
Merged
aaronweeden merged 1 commit intoubccr:xdmod11.0from Dec 5, 2023
Merged
Use the portal's time zone for raw data query dates instead of UTC.#1779aaronweeden merged 1 commit intoubccr:xdmod11.0from
aaronweeden merged 1 commit intoubccr:xdmod11.0from
Conversation
3 tasks
ec5090e to
6b7f0e5
Compare
3 tasks
3 tasks
6b7f0e5 to
3aeb1d8
Compare
6 tasks
3aeb1d8 to
caf3279
Compare
caf3279 to
a6f6ff4
Compare
a6f6ff4 to
48dc954
Compare
48dc954 to
25f7f3b
Compare
eiffel777
approved these changes
Dec 5, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR makes it so the warehouse raw data queries involving start and end dates use the portal's local time zone instead of UTC.
There are corresponding PRs for ubccr/xdmod-supremm#356 and https://github.com/ubccr/xdmod-xsede/pull/439.
Motivation and Context
The rest of the XDMoD portal uses the portal's local time zone when dealing with date ranges. For consistency, this PR makes the raw data queries also use the portal's local time zone.
For the Jobs realm, this will have the added benefit of enabling #1780.
Tests performed
In addition to ensuring the regression tests still pass:
Cloudrealm:awk -F "', '" '{print $1}' oldto get the instance ID, and for a sample of the IDs, run the MySQL query below:Jobsrealm:awk -F "', '" '{print $1 ", " $18}' oldto get the job ID and resource name pairs, and for a sample of the pairs, run the MySQL query below:To test the documentation changes, on my laptop:
docsdirectory.new.mht.docs/xdmod-rest-schema.jsonand let the site regenerate.old.mht.old.mhtandnew.mhtand confirm the only difference besides random IDs is the updates that were made in this PR.Checklist: