mantil-io / mantil

Build your AWS Lambda-based Go backends quicker than ever
https://www.mantil.com
MIT License
109 stars 3 forks source link

Track stages connected to the node #65

Closed ianic closed 2 years ago

ianic commented 3 years ago

On new stage we add reference to the stage, account name. Add also the project folder and stage name to the account. On deleting account with active stages, not that some (what) stages will become orphans. Ask for confirmation.

ianic commented 3 years ago

U node struct u domain dodati nesto ovako:

projects:

Sada znam da je taj node koristen za stage dev i production u projektu ping.

CliCommand obogatiti i ovim novim informacijama. U workspace dodati:

ianic commented 3 years ago

uz mrvicu stimanja, tu trebamo prikupiti infomacije iz kojih ce se moci odgovarati na ova pitanja:

  1. Are users installing Mantil on multiple AWS accounts? How many in average?

  2. Are users installing multiple Mantil Nodes on a single AWS account? How many in average?

  3. Are users creating multiple stages per project? If yes, are those stages created within single or multiple AWS accounts? How many stages per project in average?

  4. How many functions are within one projects? Are users more prone to create project with high number of functions or more projects with lower number of functions?

djelusic commented 2 years ago

Dodao sam Projects polje unutar workspacea koja prati lokalne projekte. Prilikom pokretanja mantil new tu dodajem projekt, a prilikom svakog ucitavanja workspacea napravim sync (ako vise nema tog foldera maknem projekt).

U node sam dodao Stages polje koje prati stageve. Onda ako korisnik pokusa obrisati node koji jos ima deployane stageve pitam ga za potvrdu.

Dodao sam jos i prikupljanje informacija o workspaceu, prije slanja cli eventa prodjem po svim projektima i izracunam broj nodova, projekata, stageva, funkcija i public foldera.