-
Notifications
You must be signed in to change notification settings - Fork 6
Feat: improve frontend #195
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
Merged
Merged
Changes from 15 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d703733
Fix graph updates with unfolded nodes part 1
philipp-seitz 7022225
Add improvements in visualization
philipp-seitz 4fbe34c
Make eval collapsible
philipp-seitz ad5b11e
Add collapse to map nodes too
philipp-seitz 8adac75
Add clear local storage button
philipp-seitz 1dea7d1
Add error page
philipp-seitz 3fef841
Move error logo
philipp-seitz 8e96073
Add fallback to read errors
philipp-seitz e2550ba
Update favicon
philipp-seitz ad50f3b
Add error when no workflows found
philipp-seitz c24d636
Add show tooltip button
philipp-seitz 90ddbe4
Improve visualization docs
philipp-seitz d79a467
Add start/finish times to storage
philipp-seitz 7312c0a
Display time information in nodes
philipp-seitz 82ac3b2
Add time information to loop and map
philipp-seitz 8544b12
Add suggestions
philipp-seitz b234109
Remove timestamps for now
philipp-seitz ff8cd52
Fix docs
philipp-seitz 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,9 +169,18 @@ def read_output(self, node_location: Loc, output_name: PortID) -> bytes: | |
|
|
||
| def read_errors(self, node_location: Loc) -> str: | ||
| if not self._error_logs_path(node_location).exists(): | ||
| if self._error_path(node_location).exists(): | ||
| print(self._error_path(node_location)) | ||
| with open(self._error_path(node_location), "r") as fh: | ||
| return fh.read() | ||
| return "" | ||
| with open(self._error_logs_path(node_location), "r") as fh: | ||
| return fh.read() | ||
| errors = fh.read() | ||
| if errors == "": | ||
| if self._error_path(node_location).exists(): | ||
| with open(self._error_path(node_location), "r") as fh: | ||
| return fh.read() | ||
| return errors | ||
|
|
||
| def write_node_errors(self, node_location: Loc, error_logs: str) -> None: | ||
| with open(self._error_logs_path(node_location), "w+") as fh: | ||
|
|
@@ -208,3 +217,17 @@ def write_metadata(self, node_location: Loc) -> None: | |
| def read_metadata(self, node_location: Loc) -> dict[str, Any]: | ||
| with open(self._metadata_path(node_location)) as fh: | ||
| return json.load(fh) | ||
|
|
||
| def read_started_time(self, node_location: Loc) -> str | None: | ||
| node_def = Path(self._nodedef_path(node_location)) | ||
| if not node_def.exists(): | ||
| return None | ||
| since_epoch = node_def.stat().st_mtime | ||
| return datetime.fromtimestamp(since_epoch).strftime("%Y-%m-%d %H:%M:%S") | ||
|
Collaborator
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. Slight preference for isoformat() here but not a big thing. |
||
|
|
||
| def read_finished_time(self, node_location: Loc) -> str | None: | ||
| done = Path(self._done_path(node_location)) | ||
| if not done.exists(): | ||
| return None | ||
| since_epoch = done.stat().st_mtime | ||
| return datetime.fromtimestamp(since_epoch).strftime("%Y-%m-%d %H:%M:%S") | ||
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
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.
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.
Okay with this in the short-term, although I'd prefer in future that
_error_pathbe the indicator of whether an error has occurred (and never have contents). In this direction, we should probably change to something like the following in future:-(Also there is an extra print on the line above...)
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.
Adgreed, I just noticed that some nodes didn't have their correct error message attached. I opened #201 to keep track of this