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 an Entity from the Entity data table #584

Closed
matthew-white opened this issue Jan 11, 2024 · 7 comments · Fixed by getodk/central-frontend#940
Closed

Delete an Entity from the Entity data table #584

matthew-white opened this issue Jan 11, 2024 · 7 comments · Fixed by getodk/central-frontend#940
Assignees
Labels
behavior verified Behavior has been manually verified enhancement New feature or behavior entities Multiple Encounter workflows frontend Requires a change to the UI

Comments

@matthew-white
Copy link
Member

See the story in the release criteria.

@matthew-white matthew-white added enhancement New feature or behavior frontend Requires a change to the UI needs testing Needs manual testing needs design review Needs verification from designer entities Multiple Encounter workflows labels Jan 11, 2024
@matthew-white matthew-white changed the title Delete an Entity from frontend Delete an Entity from the Entity data table Jan 23, 2024
@matthew-white matthew-white self-assigned this Feb 8, 2024
matthew-white added a commit to getodk/central-frontend that referenced this issue Feb 13, 2024
matthew-white added a commit to getodk/central-frontend that referenced this issue Feb 20, 2024
@srujner
Copy link

srujner commented Feb 22, 2024

I found an issue with no auto refreshing the list number.
I've deleted rows 6th, 11th and 14th.
The number of Entities in the "Download x Entities" button is correct, but I had to manually refresh the page so the list is sorted correctly without empty number.
Screenshot(20)

@dbemke
Copy link

dbemke commented Feb 22, 2024

After deleting and entity without refreshing the page the number in "Download x Entities" button is correct, but if download the CSV file there is a list of entities including also the deleted entity.

@dbemke
Copy link

dbemke commented Feb 22, 2024

I'm not sure if this case is expected. I edited an entity so that the entity label contains new lines and the new lines are visible in the confirmation message after deleting it.

Image

@matthew-white
Copy link
Member Author

Thanks, @srujner and @dbemke!

I found an issue with no auto refreshing the list number.

I've asked about this on Slack. 👍 I thought it'd help the user keep their place in the table if we didn't automatically update row numbers, but maybe it's unexpected.

I had to manually refresh the page so the list is sorted correctly without empty number.

Are the row numbers also updated if you click the refresh button and don't refresh the page?

if download the CSV file there is a list of entities including also the deleted entity.

That definitely sounds like a bug, though I think it's an existing one. I've filed an issue for it at #599.

I edited an entity so that the entity label contains new lines and the new lines are visible in the confirmation message after deleting it.

Hmm interesting. Right now, alerts like that always show new lines. That's because we need to show new lines in some cases, for example, showing some XLSForm errors. We could probably make it conditional though. In this case though, I think it's unlikely that a user would use a new line in an entity label. If they do, I think it's not terrible if they see the new line in alerts.

@srujner
Copy link

srujner commented Mar 1, 2024

Tested with Success!

1 similar comment
@dbemke
Copy link

dbemke commented Mar 1, 2024

Tested with Success!

@matthew-white
Copy link
Member Author

I found an issue with no auto refreshing the list number.

I've asked about this on Slack.

For posterity, we decided in Slack not to update the row number for now. I wrote in Slack:

I’m wondering how this should work given that the rows are reverse-ordered. We want to avoid a situation where the last row number isn’t 1, right? So if the row numbers start out as 3, 2, 1, and I delete row 2, then the row numbers should end up being 2, 1, not 3, 2, right?

We can see whether this ends up being an issue for users.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behavior verified Behavior has been manually verified enhancement New feature or behavior entities Multiple Encounter workflows frontend Requires a change to the UI
Projects
Status: ✅ done
Development

Successfully merging a pull request may close this issue.

3 participants