reTHINK-project / dev-service-framework

DEPRECATED! Service framework libs have been moved to dev-runtime-core repo
Apache License 2.0
1 stars 2 forks source link

RuntimeCatalogue Issue/Doubts #32

Closed vitormsilva closed 8 years ago

vitormsilva commented 8 years ago

Hi @Endebert,

In line 299 of RuntimeCatalogue, this code _this._factory.createSourcePackage() shouldn't be _this._factory.createSourcePackage()?

My doubt is when you have a sourcePackageURL and it's an external URL to get the descriptor, the process to get that sourcePackage should be done by the catalogue, and return all the descriptor;

pchainho commented 8 years ago

pls give priority to this issue that is blocking integration with the catalogue

Endebert commented 8 years ago

Could you please elaborate what the problem is?

You can get the sourcePackage easily by using the function getSourcePackageFromURL().

The sourcePackage is not automatically download with the descriptor to optimize traffic and only load (potentially large) sourcePackages when needed.

If you want the sourcePackage of a descriptor, I'm assuming a one-liner like this should work:

var sourcePackage = descriptor.sourcePackage || catalogue.getSourcePackageFromURL(descriptor.sourcePackageURL)

Alternatively, if you only need the sourceCode, you can use getSourceCodeFromDescriptor(descriptor).

vitormsilva commented 8 years ago

My mistake, I wrote in the wrong way, sorry. I will explain better;

In line 299 you have let sourcePackage = _this.factory.createSourcePackage(sp["sourceCodeClassname"], sp["sourceCode"]); this code, but the factory is not defined like this, is defined in this way _this._factory.

You can check the line 11

Ok, I will open an issue with this for runtime-core, and will check if the runtime-browser need to that changes too;

emmelmann-fokus commented 8 years ago

@vitormsilva, does your response mean that we can close this issue or assign it to someone else. From the discussion, I read that @Endebert does not have to take further actions.

Apologies for trying to be clear on who is working / has to work on this; but we have internally to carefully assign resources and if I can take this off of Robert's shoulders, I'd like to do that :-)

@vitormsilva please close this or reassign (if required back to Robert).

vitormsilva commented 8 years ago

@emmelmann-fokus,

The first part is for @Endebert , because need to fix what i explain;

In line 299 you have let sourcePackage = _this.factory.createSourcePackage(sp["sourceCodeClassname"], sp["sourceCode"]); this code, but the factory is not defined like this, is defined in this way _this._factory.

You can check the line 11


The other part is for me, because i need to make some changes;

Ok, I will open an issue with this for runtime-core, and will check if the runtime-browser need to that changes too;

I assume can close this issue when the part of @Endebert was done;

emmelmann-fokus commented 8 years ago

@vitormsilva thanks for the clarification.

@Endebert will close this issue once his part is done.

Endebert commented 8 years ago

@vitormsilva thanks for the clarification. Because in your initial description both code lines are identical, I didn't realize you were pointing to the missing underscore. I fixed it in this commit: https://github.com/reTHINK-project/dev-service-framework/commit/bf70bb5d5bb8da528899826ba672e4712bf7a4ca