auto assign runtime for project if its the first one - #1238
Conversation
|
This will finally skip the step where well always need to assign a runtime first to start :D |
GitLab Pipeline ActionGeneral informationLink to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2779906307 Status: Passed Job summariesrspec: [cloud]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010073/artifacts/tmp/coverage/index.html rspec: [ee]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010072/artifacts/tmp/coverage/index.html rspec: [ce]Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/16034010071/artifacts/tmp/coverage/index.html docs:previewDocumentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/16034096502/artifacts/out/index.html rubocop1001 files inspected, no offenses detected |
| target: namespace || AuditEvent::GLOBAL_TARGET | ||
| ) | ||
|
|
||
| assign_as_primary_if_only_runtime(runtime) |
There was a problem hiding this comment.
This fix went completely in the wrong direction. This would need to happen on project creation, not on runtime creation.
If configured in the reticulum env, an initial runtime will be created automatically. That runtime should be assigned automatically when a project gets created.
Basically, when creating a project the runtime should be automatically assigned in the following cases:
- Only one global runtime exists
- There is only one runtime for the namespace and no global runtime
Resolves: #1111