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

Combine both download modals into one #7068

Merged
merged 10 commits into from
May 25, 2023

Conversation

MichaelBuessemeyer
Copy link
Contributor

@MichaelBuessemeyer MichaelBuessemeyer commented May 10, 2023

This pr combines the two download modals by merging the python modal that was used in the dataset view mode. The only python modal was deleted afterward.
The download modal now supports tiff export in view mode but not wkw download because there is no annotation to download from view mode.

For the review, I suggest turning off showing changes in whitespace. This will drastically decrease the number of changed lines.

URL of deployed dev instance (used for testing):

Steps to test:

  • run yarn enable-jobs and start a local wk worker. ( <-- needed to test whether the tiff export works)
  • choose a data and open it in view mode
  • open the download modal. The modal should contain the tiff and the python download tab.
  • The tiff export should work for the whole layer (as long as it is not too large). As a result, a (ome) tiff file should be downloaded after some time
  • The python tab should display the python code that downloads the dataset and not the code that tries downloading an annotation
  • Check what happens when the layer is too large: Go to download_modal_view.tsx and decrease the max limit 112 to something small by e.g. replacing the value that is compared to the variable volume with 1000. Reloading and reopening the dataset should show the tiff export modal tab but the download should be disabled, as the layer is too large.
  • Undo the changes from the previous step and create an annotation for that dataset
  • Open the download modal and try out the wkw download and the tiff export. Both should work.
  • Last check that the python tab includes the code that downloads the annotation and not tries to download the dataset (compared to the modal in view mode)

Issues:


(Please delete unneeded items, merge only when none are left open)

@MichaelBuessemeyer MichaelBuessemeyer self-assigned this May 10, 2023
Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well done! Code LGTM, I'll report back tomorrow after testing :)

Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The general functionality worked very well, I also successfully tested the export 👍

  • I noticed some issues where "annotation" appears in the "Download Dataset" modal that should be fixed:
    annotation_mentions_1
    annotation_mentions_2
    annotation_mentions_3
  • In the annotation download code, the indentation depth seems wrong for some lines
    wrong_indentation

Copy link
Member

@daniel-wer daniel-wer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, only one small suggestion :)

@MichaelBuessemeyer MichaelBuessemeyer merged commit 3c63794 into master May 25, 2023
@MichaelBuessemeyer MichaelBuessemeyer deleted the combine-download-modals branch May 25, 2023 09:24
hotzenklotz added a commit that referenced this pull request May 31, 2023
…ty-list-drawings

* 'master' of github.com:scalableminds/webknossos:
  [Docs] Update embedded YouTube URLs (#7102)
  Show organization in dataset info tab (#7087)
  Added Tutorials to Docs (#7095)
  Combine both download modals into one (#7068)
  Add "merge" blend mode (#6936)
  Changed the spacing/width of VX reports runs selection (#7094)
  Allow dataset managers to see all workflow reports of their orga (#7081)
  Fix rectangle at 0,0,0 (#7088)
  Allow to disable automatic reloading of meshes during proofreading (#7076)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow (OME-)Tiff Export in View Mode
2 participants