Open Freymaurer opened 9 months ago
As discussed, coupling of Swate templates has not much short to mid-term value, therefore let's postpone this
Uhm, i thought this issue was more reuse the validation package storage logic? Which i still like a lot @kMutagene
Uhm, i thought this issue was more reuse the validation package storage logic?
then i misunderstood, sorry. However to integrate in this repo we would still need to kind of merge validation packages and templates, which i think we opted against.
Do you think we should reopen here and discuss further or open an issue on the template repo to implement the same backend/api logic?
of merge validation packages and templates,
I do not think this is required.
Do you think we should reopen here and discuss further or open an issue on the template repo to implement the same backend/api logic?
We absolutly can!
The idea i had is, to keep templates on their own repo but taget the same server, with similiar logic as you already implemented for validation packages.
but target the same server
this is what i mean with merging. If we target the same backend we need to develop the backend in the same repo, or how do you envision this?
Or do you mean we deploy to the same production instance? either way, at least the database for template storage would need to be in this repo i think. You could do the CI release pipeline in the template repo though, although it is way more convenient to have the datamodels in the same repo as the backend
I would do all server/backende related stuff here but publish from a different repo. Because templates are not equally dangerous to publish as are scripts that will be downloaded.
Okay, sounds good, but i still think it means merging almost everything to be beneficial.
Here is my reasoning. Incorporating templates IMO would look like this:
dotnet ef
cli tool.GetAllTemplates
Here it becomes a little bit tricky and also shows that the separation of the repos is not that clear anymore.
The Client library for the API is auto-generated from the OpenAPI spec, which would mean that the Client application for consuming templates would be generated in and released from this repo.
There is also a Domain model library that offers the types without the EFCore overhead and also some convenience (e.g. downloading the latest preview index from this repo's releases). I think this also only makes sense to do in this repo, because you really do not want to test this across repos (been there, hated it, moved stuff here).
At the end of the day this means everything code-wise would merge into this repo, leaving the templates repo simply as the staging area for developing and releasing templates. We can do that, but i do not see why not then also move the template staging area here (other than single-focus issues and potential bloated CI/CD)
@Freymaurer.