Skip to content

Store status change via Rest

Alex requested to merge 798-set-store-team-status into master

Closes #818 (closed), part of #798 (closed)

What does this MR do?

Adds a new Rest endpoint stores/{storeId}/status/{status} that allows changing a store's status and uses it for the dropdown menu on the store page instead of the old XHR requests. Also replaces the dropdown menu with a new vue component. The new menu does not have the default "Bitte auswählen..." option anymore, since a store should always have a team status.

screenshot

How confident are you it won't break things if deployed?

Quite sure, seems to work for me and I added a unit test.

How to test

Steps a reviewer can take to verify that this MR does what it says it does e.g.

  1. Checkout branch locally
  2. Login as a store manager
  3. Go to a store's page
  4. Change the store's status with the dropdown menu below the team list

Checklist

  • added a test, or explain why one is not needed/possible...
  • no unrelated changes
  • asked someone for a code review
  • joined #foodsharing-beta channel at https://slackin.yunity.org
  • added an entry to CHANGELOG.md (description, merge request link, username(s))
  • Once your MR has been merged, you are responsible to update the #foodsharing-beta Slack channel about what has been changed here. They will test your work in different browsers, roles or other settings
Edited by Alex

Merge request reports