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

feat: add service type to distinguish services and spells #1567

Merged
merged 5 commits into from
Apr 14, 2023

Conversation

kmd-fl
Copy link
Contributor

@kmd-fl kmd-fl commented Apr 12, 2023

Previously, we checked that the service is a spell by checking its blueprint name.

Now, a service_type is introduced to do the job. It's set on service creation via PeerSpell.install for spells or Srv.create for services.

I didn't completely remove the old logic to be able to migrate from the old system to the new one. If a persisted service doesn't have a service_type field, it will be derived from the corresponding blueprint name. If it's not possible, we just set "service" service type.

@kmd-fl kmd-fl added the e2e Run e2e workflow label Apr 14, 2023
@kmd-fl kmd-fl merged commit d80f89b into master Apr 14, 2023
@kmd-fl kmd-fl deleted the add-service-type branch April 14, 2023 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
e2e Run e2e workflow
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants