Skip to content

Features: Delete dataset property#1743

Open
sadiqkhoja wants to merge 4 commits intogetodk:features/delete-datasets-and-propertiesfrom
sadiqkhoja:features/delete-properties
Open

Features: Delete dataset property#1743
sadiqkhoja wants to merge 4 commits intogetodk:features/delete-datasets-and-propertiesfrom
sadiqkhoja:features/delete-properties

Conversation

@sadiqkhoja
Copy link
Contributor

@sadiqkhoja sadiqkhoja commented Feb 2, 2026

  • run make test and confirmed all checks still pass OR confirm CircleCI build passes
  • verified that any code from external sources are properly credited in comments or that everything is internally sourced

@sadiqkhoja sadiqkhoja force-pushed the features/delete-properties branch from cdb88ac to d33939d Compare February 2, 2026 21:53
Comment on lines +98 to +100
// TODO: how to delete unpublished property?
// if all forms that create or update this property were never published and have been unlinked (or deleted?)
// then delete the property automatically?
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thoughts?


await asAlice.delete('/v1/projects/1/datasets/people/properties/first_name')
.expect(200);
}));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a test: delete the related Form

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to be done with getodk/central#1631

await asAlice.delete('/v1/projects/1/datasets/trees/properties/height')
.expect(200);

const result = await asAlice.get('/v1/projects/1/datasets/trees/entities.csv')
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add another test to assert response of single entity data + assert correct response of version/diff api

@ktuite ktuite force-pushed the features/delete-datasets-and-properties branch from 798c250 to a2fae57 Compare February 3, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants