Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Proposal for a Summary Mode to Display Diff Status by Resource

Abierto
#295 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
cli

Línea de trabajo

Comienza rastreando el comando diffs existente y su comportamiento con --filter. Define la salida de resumen para los recursos con y sin diferencias y, a continuación, verifica que los usuarios puedan usar el flujo de trabajo de filtrado existente para inspeccionar el diff completo de un recurso seleccionado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Overview of issue:

Reading through the diffs output has been quite challenging. Currently, the tool provides a comprehensive output for each resource in the diff. However, interpreting the exact differences by manually reading the JSON output is not practical for larger datasets or organizations. It requires significant effort to sift through the details.

Proposed changes:

I propose adding a "summary mode" to the diffs command that lists resources where differences exist, without showing the full diff content initially. This summary mode would provide a high-level view of which resources have changes. Users could then apply filters to narrow down the output as needed, making the tool more user-friendly and efficient for real-world usage in Datadog Organizations data migration scenarios.

Here is an example of what the output could look like:

# this is the format
synced resource Title

execution sample.

datadog-sync diffs --summary

output sample.

O monitors "[Auto] Clock sync in NTP"
X monitors "Server system load.1 has increasing"
X dashboards "Foobar dashboard"
X dashboards "Amazon ECS"
O logs_indexes "foo Index"
O logs_indexes "bar Index"
... and so on

With this summary output, I can easily identify which resources have differences (indicated by "X"). Then, I can check the specific details of a resource's difference using a filter, such as:

datadog-sync diffs --filter='Type=dashboard;Name=name;Value=Foobar dashboard'

This workflow would allow users to quickly locate and focus on the resources with changes, and then use filtering options to drill down into the details when necessary, significantly improving the usability of the tool.

Lenguaje dominante
Python
Estrellas
81
Forks
26
Merge medio
10 h 34 min
PR fusionados (30 d)
17

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de DataDog/datadog-sync-cli

Todos los issues de DataDog/datadog-sync-cli

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.