-
Notifications
You must be signed in to change notification settings - Fork 2
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
Tkakar/cat 673 add epics support #3586
Conversation
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.
Great! A few comments.
context/app/utils.py
Outdated
max_modified_date = None | ||
max_date_descendant = None | ||
for descendant in descendants: | ||
dec_entity = client.get_entity(descendant) |
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.
We should consolidate this into a single request using get_entities
.
context/app/utils.py
Outdated
dec_entity = client.get_entity(descendant) | ||
# TODO: Until we have better entity qualifier | ||
if dec_entity.get('creation_action').lower() == 'central process' and len( | ||
dec_entity.get('files')) > 0 and dec_entity.get('status').lower() != 'error': |
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.
Historically we've lifted entities that are in QA
or Published
, should we continue that logic here?
context/app/utils.py
Outdated
mapped_last_modified_timestamp = datetime.strptime( | ||
dec_entity.get('mapped_last_modified_timestamp'), "%Y-%m-%d %H:%M:%S") | ||
if max_modified_date is None or mapped_last_modified_timestamp > max_modified_date: |
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.
I likely prompted using mapped_last_modified_timestamp
in standup, but we can use last_modified_timestamp
which is an int.
context/app/routes_browse.py
Outdated
if parent is None: | ||
ancestors = entity.get('immediate_ancestors') | ||
if len(ancestors) > 0 and ancestors[0]['entity_type'] == 'Dataset': |
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.
It would be preferable to use immediate_ancestors_ids
and make a request to get the ancestor entities. immediate_ancestors
is somewhat deprecated as it greatly increases the ES document size. We could have the query only return datasets.
@john-conroy thanks for the suggestions. Will work on implementing them. |
"merged main".
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.
Fantastic work! Only noticed one minor issue, i.e. a 401 warning popping up for those same zarr stores.
const handleWarning = useCallback( | ||
(message: string) => { | ||
// Suppress the "Node not found" message that appears when no zarr file was found | ||
if (message.includes('Node not found')) { |
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.
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.
Nicely done!
Summary
This PR adds support to visualize EPIC segmentation masks in the unified views.
Design Documentation/Original Tickets
CAT-673
Testing
Manually tested for test datasets on Dev with visualizations
Screenshots/Video
Checklist
CHANGELOG-your-feature-name-here.md
is present in the root directory, describing the change(s) in full sentences.Additional Notes
Please specify any additional information or context relevant to this PR.