-
Notifications
You must be signed in to change notification settings - Fork 60
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
Link to entity list button sometimes not shown on form attachments #916
Comments
@getodk/testers, this issue is now ready to be verified (on either staging or test.getodk.cloud). I think this is an existing bug in production. Even though it surfaced in getodk/central#554, I think this bug exists independently of that issue. The issue is that the Form Attachments page requests entity lists in order to determine which attachments can be linked to an entity list. However, when the form draft is published, that can publish a new entity list. And if you create a new form draft, then navigate back to the Form Attachments page, the page won't re-request the entity lists. In other words, the Form Attachments page ends up using stale data: it will continue to know about the previous entity lists, but it won't know about the newly published entity list.
I'm seeing the same thing. In the 0→1 case, where the project's first entity list is published, there shouldn't be an issue. That's because if the project doesn't already have an entity list, the Form Attachments page won't even request the entity lists, so there won't be data to become out-of-date later. Also, even without the fix, there are ways that the stale data could become updated. In production, if you refresh the page, or if you navigate away from the form (to the project, to the homepage, etc.), then if you navigate back to the Form Attachments page for the form, you should see the "Link Entity List" button as expected. Steps to reproduce:
|
Tested with Success! |
Testes with success! |
See this comment for a description of the issue.
The form attachment page loads a list of datasets and decides whether to show a "Link this to existing Entity List" button, but in the case where a form was JUST published and just created a new dataset, the link button sometimes doesn't appear.
I thought I was seeing it in the 0->1 dataset count case, but I couldn't reproduce it. I can consistently recreate this error in the n->n+1 dataset case, though.
The text was updated successfully, but these errors were encountered: