[Request] Update drawSvg Library to latest version

Aperta
#116 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
python
Ambito
backend

Direzione di ricerca

Aggiorna i riferimenti alla dipendenza drawSvg in requirements-dev.txt e setup.py, quindi esamina mitreattack/navlayers/exporters/svg_templates.py e svg_objects.py per verificarne la compatibilità. Usa il layer G0016 e il file STIX Enterprise ATT&CK v13.1 con il comando layerExporter_cli fornito e conferma che l’SVG generato abbia l’aspetto corretto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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!
Lingua principale
HTML
Stelle
743
Fork
176
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di mitre-attack/mitreattack-python

Tutte le issue di mitre-attack/mitreattack-python

Issue simili

Altre issue su Backend & API Design

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.