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: load manifest on demand #896

Merged
merged 6 commits into from
Apr 23, 2019

Conversation

NicolasMahe
Copy link
Member

@NicolasMahe NicolasMahe commented Apr 18, 2019

This pr change the way the manifest is downloaded.
Before, getting the version also download the manifest.
Now, the manifest needs to be explicitly downloaded.

Task getService still returns the manifest, but task listService doesn't

TODO:

export interface Version {
versionHash: string;
manifest: string;
manifestProtocol: string;
manifestData: Manifest|null;
Copy link
Contributor

@ilgooz ilgooz Apr 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about changing this to manifestData?: Manifest; and after this change we can set the manifestData directly into https://github.com/mesg-foundation/core/pull/896/files#diff-1497f2b1650c529c8f58159491cfe107R8 instead of recreating the object

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel it's safer to have multiple type. Like this, manifestData doesn't exist in Version and the developer cannot confuse between a not loaded manifestData and an not existing one (when the file is no more accessible from IPFS).

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.

need to update mesg.yml as well

@NicolasMahe NicolasMahe force-pushed the ss/marketplace-manifest-ondemand-loading branch from 6f98fe3 to 2284c8c Compare April 19, 2019 05:36
@NicolasMahe
Copy link
Member Author

need to update mesg.yml as well

Done. Please review

@NicolasMahe NicolasMahe requested a review from ilgooz April 19, 2019 05:47
# Conflicts:
#	systemservices/marketplace/src/contracts/version.ts
#	systemservices/marketplace/src/tasks/isAuthorized.ts
ilgooz
ilgooz previously approved these changes Apr 19, 2019
# Conflicts:
#	systemservices/marketplace/src/contracts/version.ts
ilgooz
ilgooz previously approved these changes Apr 22, 2019
antho1404
antho1404 previously approved these changes Apr 22, 2019
systemservices/marketplace/mesg.yml Outdated Show resolved Hide resolved
…tplace-manifest-ondemand-loading

# Conflicts:
#	systemservices/marketplace/mesg.yml
@NicolasMahe NicolasMahe dismissed stale reviews from antho1404 and ilgooz via ade2238 April 23, 2019 04:03
@NicolasMahe NicolasMahe merged commit f5ba3b4 into dev Apr 23, 2019
@NicolasMahe NicolasMahe deleted the ss/marketplace-manifest-ondemand-loading branch April 23, 2019 04:16
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