client.delete_api() not working anymore?
まだ誰も着手していません。
評価
調査の方向性
エントリーポイント client.delete_api() から開始し、提供されている Python の例とクライアントバージョン 1.27.0 を使用して、InfluxDB Cloud のバケットに対する呼び出しを再現します。measurement の削除リクエストが受け付けられるかどうか、また新しく作成されたバケットと古いバケットで動作が異なるかどうかを確認します。サポートされている動作を特定するか、確認済みの原因を文書化できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Specifications
- Client Version: 1.27.0
- InfluxDB Version: Cloud
- Platform: Windows 10
I am trying to use the below function that we normally use to delete a measurement. But it seems to no longer be working as intended. Has this been depreceated?
def delete_influx(self, device):
"""Given a 'measurement' name (e.g. device ID), delete the related data from InfluxDB"""
start = "1970-01-01T00:00:00Z"
stop = "2099-01-01T00:00:00Z"
delete_api = self.client.delete_api()
delete_api.delete(
start,
stop,
f'_measurement="{device}"',
bucket=self.influx_bucket,
org=self.org_id,
)
Code sample to reproduce problem
self.client.delete_api()
delete_api.delete(
start,
stop,
f'_measurement="{device}"',
bucket=self.influx_bucket,
org=self.org_id,
)
Expected behavior
The entire measurement should be deleted from my influxdb cloud bucket
Actual behavior
The measurement is not deleted from the cloud bucket. I am not sure if this is related to the test being performed on a newly created cloud bucket, whereas previous tests have been performed on older accounts (where the UI in the cloud bucket looks very different). The versions appear to be the same, though, and I can write data to the bucket without issues.
Additional info
No response
- 主要言語
- Python
- スター
- 792
- フォーク
- 186
- 平均マージ
- 3時間 2分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
influxdata/influxdb-client-python のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
influxdata/influxdb-client-python#613 · コメント 7 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
influxdata/influxdb-client-python#694 · リアクション 6 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
influxdata/influxdb-client-python#693 · コメント 2 件 · リアクション 1 件 ·
-
Socks proxy support オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
influxdata/influxdb-client-python の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
stephrobert/dsoxlab#238 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
sublimehq/package_control#1780 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nwg-piotr/nwg-displays#145 ·