-
Notifications
You must be signed in to change notification settings - Fork 91
Features: Delete dataset #1736
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
Features: Delete dataset #1736
Conversation
3399c5a to
d9fddda
Compare
test/integration/api/datasets.js
Outdated
| }); | ||
| })); | ||
|
|
||
| it('should not entities for deleted dataset', testService(async (service, container) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing word here, probably "create"?
Or it could say something like "should not create entities from a submission in a deleted dataset" to differentiate from just creating an entity via the API.
| it('should not entities for deleted dataset', testService(async (service, container) => { | |
| it('should not create entities for deleted dataset', testService(async (service, container) => { |
test/integration/api/datasets.js
Outdated
|
|
||
| await exhaust(container); | ||
|
|
||
| // TODO: assert that entity is not created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could check the audit log on the submission to see that there was an entity.error event and no change to the expected number of entities in the dataset
test/integration/api/datasets.js
Outdated
| // TODO: assert that entity is not created. | ||
| })); | ||
|
|
||
| it('should reject if there is a Form updating the dataset', testService(async (service) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could be moved up near the test "should reject if there is a Form updating the dataset"
| it('should reject if there is a Form updating the dataset', testService(async (service) => { | |
| it('should reject if there is a Form consuming the dataset', testService(async (service) => { |
2802ba5
into
getodk:features/delete-datasets-and-properties
Towards getodk/central#1337
Changes:
deletedquery parameter to the List datasets of a project API that returns deleted datasetsWhat has been done to verify that this works as intended?
All tests are passing
Why is this the best possible solution? Were any other approaches considered?
I had added a logic to check the dataset trash for duplicate dataset before creating a new one with the same name, but we discussed to remove that part because that would be noise or maybe that's exactly what users want to do.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
No
Does this change require updates to the API documentation? If so, please update docs/api.yaml as part of this PR.
To be added to the feature branch.
Before submitting this PR, please make sure you have:
make testand confirmed all checks still pass OR confirm CircleCI build passes