Skip to content
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

Making reference to image IDs not contained in a pack negative in Figures #84

Merged
merged 2 commits into from
May 13, 2024

Conversation

erickmartins
Copy link
Collaborator

This addresses #82 - in short, currently we have an undefined behavior regarding image IDs in Figures. for Images contained in a pack, references to their IDs are updated in transferred figures to point to the destination ID; for all other images in those figures, their IDs are untouched.

In practice, this can mean that Figures will have empty panels (in case the source ID for non-pack images do not exist/are outside permissions in the destination side) or have "wrong" images (in case the source ID is accessible destination-side).

This PR changes all non-pack image IDs to -1 - that ensures that 1) the inconsistent behavior described is eliminated, panels will always be empty; 2) clearly signals to users that this is a deliberate choice; 3) indicates that those images were not part of the pack.

@erickmartins erickmartins merged commit dd6d61c into ome:main May 13, 2024
1 check passed
@erickmartins erickmartins deleted the figure-image-ids-negative branch May 13, 2024 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant