Skip to content
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

Merged
merged 24 commits into from
Apr 19, 2019
Merged

Marketplace improve checks #874

merged 24 commits into from
Apr 19, 2019

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented Apr 12, 2019

Related to #838

Move a lots of checks from CLI to the service itself.

Todo that can be done in other PR:

  • [preparePublishServiceVersion.ts] add check on SID is domain name (see go implementation)
  • [preparePublishServiceVersion.ts] check if version already exist on marketplace
    Edit: done in Marketplace: add more checks #899

…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
Copy link
Member

@antho1404 antho1404 left a 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.

@NicolasMahe NicolasMahe force-pushed the ss/marketplace-improve-checks branch from c171b5d to d7e9b98 Compare April 18, 2019 10:38
Copy link
Contributor

@ilgooz ilgooz left a 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

@NicolasMahe NicolasMahe mentioned this pull request Apr 19, 2019
2 tasks
@NicolasMahe NicolasMahe requested a review from ilgooz April 19, 2019 08:50
@NicolasMahe NicolasMahe merged commit 15cf94a into dev Apr 19, 2019
@NicolasMahe NicolasMahe deleted the ss/marketplace-improve-checks branch April 19, 2019 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants