-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor #207
Refactor #207
Conversation
62edf47
to
328eac1
Compare
DAppNode bot has built and pinned the release to an IPFS node, for commit: 232d061 This is a development version and should only be installed for testing purposes, install link
(by dappnodebot/build-action) |
c538381
to
b2bf8e2
Compare
setup manifest test Setup processError as generic function Implementing compose schema tests fixed compose validation implement setupwizard tests fix typo fix typo fix test init and build
simplify compose code
abstracted writeReleaseFile for compose manifest and wizard
b2e586d
to
c0d021d
Compare
6828cfe
to
a5e1ca9
Compare
@@ -115,9 +102,6 @@ export const releaseFilesDefaultNames: { | |||
compose: "docker-compose.yml", | |||
avatar: "avatar.png", | |||
setupWizard: "setup-wizard.json", | |||
setupSchema: "setup.schema.json", | |||
setupTarget: "setup-target.json", | |||
setupUiJson: "setup-ui.json", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cannot merge this change until there's hard proof that no package is using the old setup wizard v1 feature
e05e0ae
to
96498af
Compare
abstracted getReleaseFilePath abstracted readReleaseFile file structure reorg add issues template for compose setupwizard and manifest reorg code set release automatically on schema changes set sdk releases manually Setup compose schema relocate types defined specs and added types Move compose validation to sdk stop progress add safeCompose added parseComposeToProduction remove issues_templates set workflow old bump node ci version change readReleasFile types return fix tests fix use a new global ajv instance for each releaseFIle add ajv errros
0c58520
to
232d061
Compare
Context
DAppNodeSDK is a critical dappnode tool used daily in Github actions. It has not received maintenance from a long time ago and some things are out of date.
Furthermore, there is code duplicated between dappmanager and the SDK:
This code duplication makes the developing experience annoying and results in production errors due to missed updates to both repositories
Approach
The SDK should contain all the types and validating functions, then the dappmanager should use the DAppNodeSDK as a dependency and import these types and validating functions to be used in during the packages installation. This will benefit DAppNode in a better development experience, fewer bugs in production, easier implementation for new wizard/manifest/compose keys features, etc.
Roadmap
setupWizard
,gettingStarted
...)yarn link
to use this PR as a dependency