You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Follow @0x6431346e's proposal on how to add integration tests and aim for 50-60% of coverage by the end of the refactor. Focusing on the /lib folder, the logic.
Implement common mocks and patterns (e.g. progressHandler).
Move code logic away from the wrapper unless it’s absolutely necessary.
code in exports.task is merged into exports.handler to make it explicit that this task is not used by any other module
separate disk I/O, cli-specific errors and pure logic
Relevant team feedback
Write tests for acl.js
Write tests for solidity-extractor.js
Most of the apm refactors are similar, especially in how they begin, can something be abstracted from them?
Unify conversions from ens-registry to ensRegistryAddress in scripts and tests, or remove the need for the conversion altogether ) -> will be done on removing deprecated code PR
Don’t mutate the Listr context to communicate data between commands. Use command-scoped variables or find a substitute for Listr
Tests have the same default values comment, they should all be /* Default values */
After refactoring
Move /lib to typescript. @dapplion have already been adding files that we can use first examples: here, here and here.
Add test on other parts of the codebase (e.g. utils)
Windows CI
CI for boilerplates, tutorials
Full logic code test coverage.
Implement analytics to know which commands are being used
Move to Mocha + Chai for a better test framework: (better parsing, error handling, diff display)
Flat commands and options objects (i.e. aragon dao token > aragon token, apm.ipfs > apm, ipfs)
Stop consuming Solidity code and instead consume compiled ASTs. Perhaps we can bake in the antlr parser from federicobond, but it was also a big topic in the past to move to truffle 5 because we could stop doing the parsing ourselves
Examples in CLI --help!
The text was updated successfully, but these errors were encountered:
🔮 Planning
Follow @0x6431346e's proposal on how to add integration tests and aim for 50-60% of coverage by the end of the refactor. Focusing on the
/lib
folder, the logic.Implement common mocks and patterns (e.g.
progressHandler
).Move code logic away from the
wrapper
unless it’s absolutely necessary.Preliminary tasks
Diagram with current progress: here
Review and merge
Finish WIP on
reporter
middleware Refactor ConsoleReporter #965token change-controller
Extract logic for "token change-controller" command #972dao new
Extract logic from "dao apps" and "dao new" #955dao act
Extract logic from "dao act" #970dao apps
Extract logic from "dao apps" and "dao new" #955aragon start
Extract logic from 'start' command #974aragon devchain
aragon contracts
Extract logic and fix "contracts" command #971Refactor: second iteration
Pre-work discussions:
/lib
folder? These include:ipfs
,devchain
npm
Logic units that involved several commands
amp publish
[ Dev: , Reviewers: ] WIP PR: Extracts logic from apm commands: publish command #906 (Includes plan for iteration 2)run
[ Dev: , Reviewers: ]don't use process.exit
[ Dev: , Reviewers: ] proposal issue Don't use process.exit() #948dao commands utils
[ Dev: , Reviewers: ]execHandler
[ Dev: , Reviewers: ]Initialize utilities on middleware
(ipfs, wrapper, apm and providers) and sanitize options [ Dev: , Reviewers: ]extract shared logic from dao install / upgrade
[ Dev: , Reviewers: ]Add integration tests to the whole codebase
WIP integration tests #952
middlewares
[ Dev: , Reviewers: ]start
[ Dev: @0xGabi, Reviewers: ? ]apm
[ Dev: , Reviewers: ]deploy
[ Dev: , Reviewers: ]devchain
[ Dev: , Reviewers: ]ipfs
[ Dev: , Reviewers: ]dao
[ Dev: , Reviewers: ]token
[ Dev: , Reviewers: ]acl
[ Dev: , Reviewers: ]contracts
[ Dev: , Reviewers: ]extract-functions
[ Dev: , Reviewers: ]Conventions
exports.task
is merged intoexports.handler
to make it explicit that this task is not used by any other moduleRelevant team feedback
acl.js
solidity-extractor.js
ensRegistryAddress
in scripts and tests, or remove the need for the conversion altogether ) -> will be done on removing deprecated code PRlistr
context variables: [issue]SDK: v7 aragonone/product#222 (comment)After refactoring
/lib
totypescript
. @dapplion have already been adding files that we can use first examples: here, here and here.The text was updated successfully, but these errors were encountered: