Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Deleting an assignment does not cleanup datapoints related entities #3423

Closed
iperdomo opened this issue Feb 18, 2020 · 0 comments · Fixed by #3424
Closed

Deleting an assignment does not cleanup datapoints related entities #3423

iperdomo opened this issue Feb 18, 2020 · 0 comments · Fixed by #3424
Assignees
Labels
1 - Assignment Bug Mark which issues are related to bugs GAE

Comments

@iperdomo
Copy link
Contributor

Context

While testing the new data point assignment functionality, we found that deleting an Assignment does not cleanup all related entities, leaving orphan data.

Problem or idea

When deleting an Assignment that contains data points assigned to a device, those entities remain even the parent object was removed.

Steps to reproduce:

  • Create a new assignment that contains data points assigned to a device
  • Download the datapoints to the device
  • Delete the newly created assignment
  • The expected behavior is that if we use the Download functionality in the device, the data point will be removed, but it remains there, because the endpoint used by the App keeps returning orphan data.

Solution or next step

  • Delete the related DataPointAssignment entities when a SurveyAssignment is removed
@iperdomo iperdomo added GAE 1 - Assignment Bug Mark which issues are related to bugs labels Feb 18, 2020
@iperdomo iperdomo self-assigned this Feb 18, 2020
iperdomo added a commit that referenced this issue Feb 18, 2020
stellanl added a commit that referenced this issue Feb 18, 2020
[#3423] Delete `DataPointAssigment` when removing `SurveyAssignment`
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
1 - Assignment Bug Mark which issues are related to bugs GAE
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant