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

Change GET routes with side effects to POST #6023

Merged
merged 4 commits into from
Feb 7, 2022
Merged

Conversation

fm3
Copy link
Member

@fm3 fm3 commented Feb 7, 2022

Changing wk routes from GET to POST that have side effects, as described in #5988

Also removed unused route checkInbox (without the Blocking)

Note for reviewer: On the wk backend side I renamed the method postWithJsonResponse to postJsonWithJsonResponse to indicate that is indeed also sending data in the body. The new method postWithJsonResponse does not send data in the body.

Steps to test:

  • Create organization, directory should exist
  • trigger a job,s hould be in the list
  • reload datasets list in dashboard
  • reload layer data, (“clear dataset cache”) should be refreshed

Issues:


@fm3 fm3 self-assigned this Feb 7, 2022
@fm3 fm3 requested a review from jstriebel February 7, 2022 09:16
Copy link
Contributor

@jstriebel jstriebel left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@@ -22,6 +22,7 @@ For upgrade instructions, please check the [migration guide](MIGRATIONS.released
- When changing which layers are visible in an annotation, this setting is persisted in the annotation, so when you share it, viewers will see the same visibility configuration. [#5967](https://github.com/scalableminds/webknossos/pull/5967)
- Downloading public annotations is now also allowed without being authenticated. [#6001](https://github.com/scalableminds/webknossos/pull/6001)
- Downloaded volume annotation layers no longer produce zero-byte zipfiles but rather a valid header-only zip file with no contents. [#6022](https://github.com/scalableminds/webknossos/pull/6022)
- Changed a number of API routes from GET to POST to avoid unwanted side effects. [#6023](https://github.com/scalableminds/webknossos/pull/6023)
Copy link
Contributor

Choose a reason for hiding this comment

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

Please also note that triggerInboxCheck was removed

@fm3 fm3 enabled auto-merge (squash) February 7, 2022 09:56
@fm3 fm3 merged commit d1f1ee2 into master Feb 7, 2022
@fm3 fm3 deleted the avoid-get-with-side-effects branch February 7, 2022 10:27
hotzenklotz added a commit that referenced this pull request Feb 8, 2022
* 'master' of github.com:scalableminds/webknossos:
  Log legacy route usages (#6024)
  Change GET routes with side effects to POST (#6023)
  More api swagger annotations (#5989)
  add shorthand for deleting trees (#6013)
  Added shorthand to mark branch points from context menu (#6012)
  Map node group context menu to right-click (#6021)
  For empty volume tracings, serve header-only zip (#6022)
  use allDataBlocking and temporary files for explorative download (#6009)
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.

Some GET routes have side effects, should be POST
2 participants