OSS: `Gzip-Compression-Level` header parameter missing on `/backup/metadata`
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
- issue の種類
- ドキュメント
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- openapi
- 領域
- api, documentation
調査の方向性
src/oss/paths/backup_metadata.yml と src/oss/paths/backup_shards_shardID.yml を比較し、続いて類似する Cloud パスを調べて、そこで header が適用されるかどうかを判断します。メタデータ操作に文書化されている Gzip-Compression-Level パラメーターを追加し、その変更を docs-release/influxdb-oss に昇格して、公開される v2 API リファレンスに両方のエンドポイントが含まれるようにします。
索引モデルが issue の本文から書いたものです。
説明
Summary
The Gzip-Compression-Level request header parameter, added to the OSS
spec in influxdata/openapi#652 (commit influxdata/openapi@e48e733), is
applied only to the GET /backup/shards/{shardID} operation. It should
also be applied to GET /backup/metadata.
Why this matters
The corresponding implementations in influxd and influx-cli set the
Gzip-Compression-Level header on both backup endpoints — so the
spec under-documents the feature.
- Server:
influxdata/influxdb#27297adds the header on
GET /api/v2/backup/shards/:shardIDand
GET /api/v2/backup/metadata. - CLI:
influxdata/influx-cli#574(clients/backup/backup.go) sets the
header on the metadata download request and on each shard download
request.
Without this fix, the rendered v2 API reference will show the new
compression option on the shard endpoint only, omitting it from the
metadata endpoint that uses the same flag from the CLI.
Suggested change
In src/oss/paths/backup_metadata.yml (and any analogous Cloud paths
if the feature applies there), add the Gzip-Compression-Level header
parameter mirroring the block in src/oss/paths/backup_shards_shardID.yml:
- in: header
name: Gzip-Compression-Level
description: The gzip compression level to use when compressing the response.
schema:
type: string
enum:
- none
- default
- speedy
- full
Once merged on master, please also promote to
docs-release/influxdb-oss so it lands in the published v2 API
reference.
Context
Surfaced while documenting InfluxDB OSS 2.9.0 backup gzip compression
for influxdata/DAR#682. The DAR docs PR will reference the new
--gzip-compression-level flag and the HTTP header on both endpoints
in prose; this issue tracks the spec work needed for the API reference
to match.
cc @influxdata/edge
- 主要言語
- Shell
- スター
- 18
- フォーク
- 9
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 1
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
influxdata/openapi のほかの issue
-
Add missing Cloud Routes keys対応中かも @jstirnaman が 2 日前に担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
influxdata/openapi#660 ·
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
influxdata/openapi#657 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
influxdata/openapi#240 ·
-
Update /ready and /health schemas for v2.10対応中かも @devanbenz が 2 日前に担当しました。 オープン
influxdata/openapi#659 · コメント 1 件 · 担当者 2 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
influxdata/openapi#636 ·
influxdata/openapi の issue をすべて見る
似ている issue
-
type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
blamechris/chroxy#8579 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
alunduil/alunduil-chezmoi#895 ·
メンテナーはふだん 1 日以内に返信
-
Sub-second duration displays incorrectly for commands taking < 100ms (e.g. 50ms renders as 0.50s)オープン
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
package-update
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
oSoWoSo/vOid_Community_repOsitory#333 ·
メンテナーはふだん 1 日以内に返信