Preserve existing allocations when `--init` runs on a configured workspace

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

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
72/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript, node.js
Ambito
tooling

Direzione di ricerca

Start with bin/validate-config.js, src/scan.js, and test/cli.test.js; run the supplied node bin/validate-config.js --init contracts/ --dry-run command to see the current output. Trace how --init reads the config and discovers enums, then check the CLI tests for expected behavior. Done when existing allocations are kept, new enums follow the highest allocated block, the command reports both groups, and --force still regenerates from scratch.

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

Descrizione

enhancement wave

Context

--init always starts from 100 and ignores an existing config. A team that adds one contract has to merge the generated draft by hand, which is where mistakes happen.

Scope

  • bin/validate-config.js
  • src/scan.js
  • test/cli.test.js

Acceptance criteria

  • Existing blocks are kept when the config already covers the enum.
  • New enums are placed after the highest allocated block.
  • The command reports which enums were added and which were kept.
  • --force still regenerates from scratch.

Verification

node bin/validate-config.js --init contracts/ --dry-run

Complexity

Large (1 day)

Part of Stellar Wave. Comment to claim this issue before starting.

Lingua principale
JavaScript
Stelle
0
Fork
1
Merge medio
14h 38m
PR unite (30g)
9

Preparare l'ambiente

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 codepacct/codepact-conventions

Tutte le issue di codepacct/codepact-conventions

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.