FHIR Chat · upload package to Simplifier · conformance

Stream: conformance

Topic: upload package to Simplifier


view this post on Zulip Simone Heckmann (Oct 10 2018 at 12:48):

Is there a way to upload packages created with Torinox to Simplifier?
I have created a package locally, but uploading to Simplifier returns

Initializing...
Starting upload ...
Parsing resources to list of ImportFiles took: 00:00:00.0393055
Metadata could not be extracted!
Import failed!

Since I want to package an older version of the project I have saved locally I can't create it directly in Simplifier...

view this post on Zulip Simone Heckmann (Oct 10 2018 at 12:51):

BTW, I used pack (<path>) | Creates a FHIR package from a folder to create the package

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 13:26):

We don't have a method of pushing a package directly to Simplifier (yet).

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 13:26):

We have the intent on importing a package directly into a project.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 13:27):

And we are considering allowing direct pushing of packages. But that would bypass a lot of Quality Assurance.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:05):

What's the difference between direct import and direct push?

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:05):

The difference i meant was more of Packages vs. Projects.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:06):

So: we are going to build importing/pushing to your project.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:06):

We're not sure yet we're going to build a push to the package repository directly.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:08):

Ok, I guess our use case of wanting to retrospectively create a package of a past version of a project is rather unique...

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:08):

;-)

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:29):

Problem is: we have a profile hosted on Simplifier that derived from an older version of the "basis-DE" project. We still have the older version saved, but currently we have no way to declare a dependency on this version in the derived profile, because we can only create a package from the current version.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:29):

Darn :)

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:29):

Well, that's not exactly true. I did create a package with Torinox.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:30):

I just have no way to declare a dependency on it....

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:30):

Why not?

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:31):

Because Simplifier doesn't know the package

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:31):

Ah, because you created it locally.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:31):

ok. I could declare it, but it wouldn't resolve :D

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:32):

Yes. I see.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:32):

What if the package was hosted on a different npm server. Could I declare a dependency then?

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:32):

Not yet. At least not for Torinox.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:33):

But It's a valid use case for us to solve. Give me a bit of time to think about it. Or are you in a hurry?

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:33):

No, not really :)

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:34):

Ok. I will let you know. We 've had some ideas in the past, that you could go back in time to a specific upload (transactionid). But that's not implemented yet.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:34):

We've also thought about branches. But we didn't want to build github :)

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:38):

IIRC Simplifier builds the packages internally by saving version specific urls, right?
So theoretically, It should be possible to create a package by providing a timestamp and simplifier could then package the resources with whatever the valid version at that time was... However the results might be unpredictable since we may have deleted and re-uploaded resources with identical canonical urls but different IDs. I remember we had issues with duplicates at some point...

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:40):

Didn't the _history interaction have an _at=<timestamp> parameter...?

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 14:40):

Yes. But we don't do soft deletes yet.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 14:52):

I mean, if the packaging mechanism took an optional timestamp as parameter, simplifier could probably just append ?_at=<timestamp> instead of packaging the current version. The problem is in making sure that all resources in the project get packaged, not only those that do have a current version...

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:05):

You still have the 'older' version locally on disk, correct?

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:05):

Yep

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:06):

also on a gitHub branch

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:06):

So, you could always upload that to a new project and create a package.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:06):

from there.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:06):

Yes

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:07):

In one of the next release, we are going to allow orphan packages. -- packages where there is no longer a link to the project.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:07):

so that you can delete a project, without deleting the packages.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:07):

Ah! Awesome!

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:09):

Could the project in the meanwhile be a private project?

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:09):

Currently we are working out the relationship between packages and private projects.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:10):

It's a hard problem :)

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:10):

Oh, and remember, you cannot yet create a package with the same package name in a different project.

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:10):

So is it problematic if that older version has a different package name?

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:12):

No. I think we could live with that...

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:13):

Could Simplifier currently resolve a dependency to a package in a private project?

view this post on Zulip Martijn Harthoorn (Oct 10 2018 at 15:14):

In our current implementation, you can only consume packages of private projects if you have access (membership) of that project.
We acknowledge that that won't do.
So we are working out a solution, and we're thinking in the direction of 'package feeds'.

view this post on Zulip Simone Heckmann (Oct 10 2018 at 15:20):

Great! Looks like there's going to be options :)


Last updated: Apr 12 2022 at 19:14 UTC