Skip to content

Marketplace: load manifest on demand#896

Merged
NicolasMahe merged 6 commits intodevfrom
ss/marketplace-manifest-ondemand-loading
Apr 23, 2019
Merged

Marketplace: load manifest on demand#896
NicolasMahe merged 6 commits intodevfrom
ss/marketplace-manifest-ondemand-loading

Conversation

@NicolasMahe
Copy link
Copy Markdown
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:

versionHash: string;
manifest: string;
manifestProtocol: string;
manifestData: Manifest|null;
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Comment thread systemservices/marketplace/mesg.yml Outdated
…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