-
Notifications
You must be signed in to change notification settings - Fork 156
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 an Entity from the Entity detail page #591
Comments
@getodk/testers, this issue is now ready to be verified on staging. |
I'm not sure what is the expected result in this case: When I go from entity lists page to Entity detail page, the entity detail page is opened in a new tab. Then, I delete the entity (in entity detail page) and I'm moved to the entity lists page. After that I see 2 tabs:
|
I was also noticing that. I think that's the expected behavior at the moment, but one day, it'd be great if we could keep the table in sync with changes made on the entity detail page in another tab. There's an issue #646 to track that idea. |
We thought about making the button above the activity feed say "Delete" instead of "Delete Entity", but @issa-tseng thought that'd be ambiguous. The idea is that by saying "Delete Entity", it's clear that the user is deleting the entity and not deleting the feed. But I guess in the table, there's not the same ambiguity, so it's OK to use the shorter "Delete".
Hmm good question. That could also happen if a different user deleted the entity while you're looking at it in the table. There's a bit of a challenge though, because if that error is received from the server, it's not always clear that the entity was deleted:
What do you think about keeping the error message generic (not just about the entity), but mentioning deletion in it? I'm thinking of a message like, "Could not find the resource you were looking for. The resource may have been deleted."
Right now, there's no concept in Central of resource ownership. Even though person 2 made changes to the entity, that doesn't prevent others from also making changes or even deleting the entity (assuming that those are actions that they're allowed to take in general). If you can delete one entity in a project, then you can delete any entity in the project. At the moment, only project managers and sitewide administrators are allowed to delete entities. A project manager has full control over a project and can even delete the project as a whole (using the API).
Ah sorry, that's very much a work in progress. 😅 That's part of getodk/central-frontend#589, and even though some of it is already visible, there's definitely more to come, including a clear/reset button and a nicer way of displaying the file. |
@matthew-white Thank You for answers! |
Tested with Success! |
1 similar comment
Tested with Success! |
I've made that change in getodk/central-frontend#952 (not yet merged). It's a very small change though, so I don't think it needs to be verified beyond what I did during development. |
See the story in the release criteria.
The text was updated successfully, but these errors were encountered: