[Request] Update drawSvg Library to latest version

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

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
45/100
Tipo de issue
Refactorización
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
python
Área
backend

Línea de trabajo

Actualiza las referencias a la dependencia drawSvg en requirements-dev.txt y setup.py y, después, inspecciona mitreattack/navlayers/exporters/svg_templates.py y svg_objects.py para comprobar la compatibilidad. Usa la capa G0016 y el archivo STIX de Enterprise ATT&CK v13.1 con el comando layerExporter_cli proporcionado y confirma que el SVG generado se ve correctamente.

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

Descripción

We have a dependency on drawSvg both in the requirements-dev.txt and setup.py files. It is used in the mitreattack/navlayers section of the library, specifically in the svg_templates.py and svg_objects.py files.

The documentation for drawSvg is here: https://github.com/cduck/drawsvg

It would be great to update our dependency to use the latest version of drawSvg, but the last time we did that, we had the following error: https://github.com/mitre-attack/mitreattack-python/issues/106

Test

After upgrading the dependency, a good way to test that it worked may be as follows:

  • Download the G0016 Navigator Layer file
  • Download the Enterprise ATT&CK v13.1 STIX file
  • Run the following command in a python virtual environment with the updated version of the mitreattack-python library
    • layerExporter_cli G0016-enterprise-layer.json -m svg -s local --resource enterprise-attack.json -o my-G0016-svg-output.svg
  • Check out the my-G0016-svg-output.svg file to see if it looks right!
Lenguaje dominante
HTML
Estrellas
743
Forks
176
Métricas de merge de PR
Sin PR fusionados en 30 d

Guía de contribución

Abrir la guía de contribución

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 mitre-attack/mitreattack-python

Todos los issues de mitre-attack/mitreattack-python

Issues similares

Más issues de Backend & API Design

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.