Incorrect Dynamo query in ` /api/v1/environments/{environment_api_key}/edge-identity-overrides`

オープン
#6,630 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
38/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
aws, python
領域
backend, databases

調査の方向性

environments/dynamodb/wrappers/environment_wrapper.py の get_identity_overrides_by_environment_id から始め、次に edge_api/identities/edge_identity_service.py と edge_api/identities/views.py からの使用箇所を追跡します。DynamoDB のクエリ条件を調査し、エンドポイントへのリクエストを再現します。エンドポイントが KeyConditionExpression ValidationException を発生させなくなれば完了です。

索引モデルが issue の本文から書いたものです。

説明

api

Sentry Issue: FLAGSMITH-API-5H1

ClientError: An error occurred (ValidationException) when calling the Query operation: Invalid KeyConditionExpression: KeyConditionExpressions must only contain one condition per key
(12 additional frame(s) were not displayed)
...
  File "edge_api/identities/views.py", line 403, in get_edge_identity_overrides
    items = edge_identity_service.get_edge_identity_overrides(
  File "edge_api/identities/edge_identity_service.py", line 15, in get_edge_identity_overrides
    ddb_environment_v2_wrapper.get_identity_overrides_by_environment_id(
  File "environments/dynamodb/wrappers/environment_wrapper.py", line 81, in get_identity_overrides_by_environment_id
    return list(
  File "environments/dynamodb/wrappers/base.py", line 64, in _iter_all_items
    query_response = response_getter()  # type: ignore[call-arg]
主要言語
Python
スター
9.9k
フォーク
658
平均マージ
1日 15時間
マージ済み PR(30日)
168

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Flagsmith/flagsmith のほかの issue

Flagsmith/flagsmith の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。