Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Filtering by dashboards in a specific dashboard list doe not work as expected

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

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

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

評価

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

調査の方向性

dashboard_lists リソースに対して文書化されている import コマンドと diffs コマンドを再現することから始め、次に dashboard-list のフィルタリングと resource-connection のエントリーポイントを追跡します。完了条件は、選択したリストを import するとその dashboard も利用可能になり、diffs がそれを接続失敗として報告しなくなることです。

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

説明

Update: I've spoken to someone at Datadog Support and we've updated the commands (the outcome is still the same)

I want to import just the single Dashboard "Random" in a dashboard list called "Sync EU Test". Importing from US1 and trying to sync to EU1.

Using the docker image built from the latest commit in this repo (SHA1 f0d5cac8a17dc9af49a0c7aa91a8ec18a6dbde18)

docker run --rm -v "$(pwd)/datadog-sync-data:/datadog-sync:rw" \
-e DD_SOURCE_API_KEY="${DD_API_KEY}" \
-e DD_SOURCE_APP_KEY="${DD_APP_KEY}" \
-e DD_SOURCE_API_URL="${DD_SITE_URL}" \
datadog-sync:latest import \
--resources="dashboard_lists" \
--filter "Type=dashboard_lists;Name=name;Value=^Sync EU Test$" \
--verify-ddr-status=false \
--verbose --send-metrics=false

This appears to be correct I'm assuming one resource for the Dashboard and one resource for the Dashboard Lists.

2025-04-08 16:33:59,605 - WARNING - Defaulting to filter Operator `ExactMatch'. Please ensure the filter Value provided is updated as this behavior will be removed in the future. See the official README.md for more information.
2025-04-08 16:33:59,605 - INFO - Using local filesystem to store state files
2025-04-08 16:33:59,649 - DEBUG - Using selector: EpollSelector
2025-04-08 16:34:00,167 - INFO - clients validated successfully
2025-04-08 16:34:00,167 - WARNING - DDR verification skipped.
2025-04-08 16:34:00,167 - INFO - Starting import...
               --omitted progress bars-- 
2025-04-08 16:34:00,371 - INFO - Finished getting resources. Successes: 1, Failures: 0, Skipped: 0, Filtered: 0
2025-04-08 16:34:00,372 - INFO - importing individual resource items
2025-04-08 16:34:00,550 - DEBUG - Sent metrics to destination for dashboard_lists
               --omitted progress bars--                                               
2025-04-08 16:34:00,550 - DEBUG - Sent metrics to source for dashboard_lists
               --omitted progress bars--
2025-04-08 16:34:00,553 - INFO - finished importing individual resource items: Successes: 1, Failures: 0, Skipped: 0, Filtered: 19.
2025-04-08 16:34:00,764 - INFO - Finished import

Running diff fails to create the dashboard we wanted to import

docker run --rm -v "$(pwd)/datadog-sync-data:/datadog-sync:rw" \
  -e DD_DESTINATION_API_KEY="${DD_EU_API_KEY}" \
  -e DD_DESTINATION_APP_KEY="${DD_EU_APP_KEY}" \
  -e DD_DESTINATION_API_URL="${DD_EU_SITE_URL}" \
  datadog-sync:latest diffs \
--resources="dashboard_lists" \
--filter "Type=dashboard_lists;Name=name;Value=^Sync EU Test$" \
--verify-ddr-status=false \
--verbose --send-metrics=false

2025-04-08 16:36:44,786 - WARNING - Defaulting to filter Operator `ExactMatch'. Please ensure the filter Value provided is updated as this behavior will be removed in the future. See the official README.md for more information.
2025-04-08 16:36:44,786 - INFO - Using local filesystem to store state files
2025-04-08 16:36:44,833 - DEBUG - Using selector: EpollSelector
2025-04-08 16:36:44,973 - INFO - clients validated successfully
2025-04-08 16:36:44,973 - WARNING - DDR verification skipped.
2025-04-08 16:36:44,973 - INFO - Starting diffs...
2025-04-08 16:36:44,974 - INFO - [dashboard_lists - 548252] - skipping resource: Failed to connect resource. {'dashboards': ['nhi-422-6bk']}
2025-04-08 16:36:44,990 - INFO - Finished diffs
主要言語
Python
スター
81
フォーク
26
平均マージ
10時間 34分
マージ済み PR(30日)
17

環境構築

はじめの一歩

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

DataDog/datadog-sync-cli のほかの issue

DataDog/datadog-sync-cli の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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