-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Convert ISO to UTC for Date/Time in workflow reports #16758
Merged
Merged
Changes from 5 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
55bdf14
converting ISO date time to UTC string
assuntad23 62c084f
converting date on PDF generated report to a more readable string tim…
assuntad23 05e1775
run make format
assuntad23 308df0b
update tests to use string UTC format instead of iso
assuntad23 78b4546
fixing formatting
assuntad23 09dcba7
Update client/src/components/Markdown/Elements/InvocationTime.vue
assuntad23 8384c31
Update lib/galaxy/managers/markdown_util.py
assuntad23 cdc34a1
Update test/unit/app/managers/test_markdown_export.py
assuntad23 a7c111b
fixing tests to use iso-like string format
assuntad23 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -280,7 +280,8 @@ def test_generate_invocation_time(self): | |
invocation = self._new_invocation() | ||
self.app.workflow_manager.get_invocation.side_effect = [invocation] # type: ignore[attr-defined,union-attr] | ||
result = self._to_basic(example) | ||
assert f"\n {invocation.create_time.isoformat()}" in result | ||
expectedtime = invocation.create_time.strftime("%m/%d/%Y, %H:%M:%S") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we use the iso date format ( [YYYY]-[MM]-[DD]) ?
assuntad23 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
assert f"\n {expectedtime}" in result | ||
|
||
def test_job_parameters(self): | ||
job = model.Job() | ||
|
@@ -412,7 +413,9 @@ def test_get_invocation_time(self): | |
result, extra_data = self._ready_export(example) | ||
assert "invocations" in extra_data | ||
assert "create_time" in extra_data["invocations"]["be8be0fd2ce547f6"] | ||
assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.isoformat() | ||
assert extra_data["invocations"]["be8be0fd2ce547f6"]["create_time"] == invocation.create_time.strftime( | ||
"%m/%d/%Y, %H:%M:%S" | ||
) | ||
|
||
def _ready_export(self, example): | ||
return ready_galaxy_markdown_for_export(self.trans, example) |
Oops, something went wrong.
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.
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.
This looks good, but does that need to be fixed in the PDF as well ?