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

fix: Disable unimplemented delete with predicate API #19636

Merged
merged 3 commits into from
Sep 24, 2020

Conversation

stuartcarnie
Copy link
Contributor

@stuartcarnie stuartcarnie commented Sep 24, 2020

Closes #19580

This PR disables the /api/v2/delete API and returns a 501 Not implemented, as there is no available implementation of the feature via the 1.x tsdb storage engine. Follow up issue #19635 was created to track the future implementation of this functionality.

This is more explicit that EInternal, allowing APIs to indicate
a potentially temporary status of "501 Not implemented"
This commit removes incorrect implementations of the `DeleteBucket`
and `DeleteBucketRangePredicate` APIs from the storage package,
which remained after the transition to the tsdb 1.x storage engine.

Secondly, this PR utilizes the `ENotImplemented` error code to inform
users which call the `/api/v2/delete`
@stuartcarnie stuartcarnie added the area/2.x OSS 2.0 related issues and PRs label Sep 24, 2020
@stuartcarnie stuartcarnie added this to the Sprint 20-Q3-7 milestone Sep 24, 2020
@stuartcarnie stuartcarnie self-assigned this Sep 24, 2020
@stuartcarnie stuartcarnie merged commit e405398 into master Sep 24, 2020
@stuartcarnie stuartcarnie deleted the sgc/issue/19580 branch September 24, 2020 18:20
bednar added a commit to influxdata/influxdb-client-java that referenced this pull request Sep 30, 2020
bednar added a commit to influxdata/influxdb-client-csharp that referenced this pull request Oct 1, 2020
bednar added a commit to influxdata/influxdb-client-csharp that referenced this pull request Oct 1, 2020
bednar added a commit to influxdata/influxdb-client-python that referenced this pull request Oct 1, 2020
bednar added a commit to influxdata/influxdb-client-python that referenced this pull request Oct 1, 2020
bednar added a commit to influxdata/influxdb-client-ruby that referenced this pull request Oct 1, 2020
bednar added a commit to influxdata/influxdb-client-ruby that referenced this pull request Oct 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/2.x OSS 2.0 related issues and PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disable /api/v2/delete
2 participants