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

Delete apartment #111

Open
nicolebudiman opened this issue Mar 13, 2020 · 0 comments
Open

Delete apartment #111

nicolebudiman opened this issue Mar 13, 2020 · 0 comments

Comments

@nicolebudiman
Copy link
Contributor

nicolebudiman commented Mar 13, 2020

As an admin or a manager,
I should be able to delete an apartment
so that I do not assign any occupant to a non-existent apartment.

Acceptance Criteria
Given that I view the list of apartments in Homepage,
When I click on Delete Apartment,
Then, I will be able to remove the apartment after confirming.

Given that there is an existing current/future stay,
When I try to delete the apartment,
Then I will be able to see a warning message that the apartment has been assigned to occupant(s).

As a guest,
I should not be able to remove any apartment,
so that the data is not removed without the right authorisation

Acceptance Criteria
Given that I am on the Homepage,
When I view the list of apartments in Homepage
Then, I should not be able to see any link to delete the apartment.

To confirm:

  1. Should delete apartment be allowed if there is an existing past stays?
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

No branches or pull requests

1 participant