-
Notifications
You must be signed in to change notification settings - Fork 13
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
Marketplace improve checks #874
Conversation
…tplace-improve-checks # Conflicts: # systemservices/marketplace/src/contracts/offer.ts # systemservices/marketplace/src/contracts/purchase.ts # systemservices/marketplace/src/contracts/service.ts # systemservices/marketplace/src/contracts/version.ts # systemservices/marketplace/src/tasks/isAuthorized.ts # systemservices/marketplace/src/tasks/prepareCreateServiceOffer.ts # systemservices/marketplace/src/tasks/preparePublishServiceVersion.ts
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.
There is a lot of if(cond) throw new Error(message)
, there is nothing wrong with that but we could use an assert
lib for that assert(cond, message)
. This would be more readable in my opinion.
systemservices/marketplace/src/tasks/prepareCreateServiceOffer.ts
Outdated
Show resolved
Hide resolved
systemservices/marketplace/src/tasks/preparePublishServiceVersion.ts
Outdated
Show resolved
Hide resolved
systemservices/marketplace/src/tasks/preparePublishServiceVersion.ts
Outdated
Show resolved
Hide resolved
systemservices/marketplace/src/tasks/preparePublishServiceVersion.ts
Outdated
Show resolved
Hide resolved
c171b5d
to
d7e9b98
Compare
systemservices/marketplace/src/tasks/prepareCreateServiceOffer.ts
Outdated
Show resolved
Hide resolved
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.
manual tests are ok
Related to #838
Move a lots of checks from CLI to the service itself.
Todo that can be done in other PR:
Edit: done in Marketplace: add more checks #899