Skip to content

drop runtime feature#951

Open
raphael-goetz wants to merge 6 commits intomainfrom
#935-drop-runtime-feature
Open

drop runtime feature#951
raphael-goetz wants to merge 6 commits intomainfrom
#935-drop-runtime-feature

Conversation

@raphael-goetz
Copy link
Copy Markdown
Member

Resolves: #935

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Removes the “runtime features” concept from the runtime status domain (DB + Rails model/service) and from the GraphQL API/docs, per Issue #935.

Changes:

  • Drop runtime_features table and remove the RuntimeFeature model/policy plus associated factories and specs.
  • Remove runtime feature handling from Runtimes::Grpc::RuntimeStatusUpdateService and related gRPC request specs.
  • Remove GraphQL RuntimeFeature type/fields and update GraphQL docs/error-code docs accordingly.

Reviewed changes

Copilot reviewed 19 out of 19 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
spec/requests/grpc/sagittarius/runtime_status_service_spec.rb Removes feature payload/assertions from gRPC runtime status update tests
spec/models/runtime_feature_spec.rb Deletes model spec for removed RuntimeFeature
spec/graphql/types/runtime_status_type_spec.rb Updates GraphQL type spec to stop querying runtimeFeatures
spec/factories/runtime_status.rb Removes runtime_features association setup from factory
spec/factories/runtime_features.rb Deletes factory for removed RuntimeFeature
docs/graphql/scalar/runtimefeatureid.md Removes RuntimeFeature scalar doc
docs/graphql/object/runtimestatus.md Removes runtimeFeatures field from RuntimeStatus docs
docs/graphql/object/runtimefeature.md Removes RuntimeFeature object doc
docs/graphql/enum/errorcodeenum.md Removes INVALID_RUNTIME_FEATURE from docs
db/structure.sql Removes runtime_features table/sequence/index/FK from DB structure
db/schema_migrations/20260501171605 Adds migration checksum entry for new migration
db/migrate/20260501171605_drop_runtime_features.rb Adds migration to drop runtime_features table
app/services/runtimes/grpc/runtime_status_update_service.rb Removes runtime feature update logic from status update service
app/services/error_code.rb Removes invalid_runtime_feature error code
app/policies/runtime_feature_policy.rb Deletes policy for removed model
app/models/runtime_status.rb Removes has_many :runtime_features association
app/models/runtime_feature.rb Deletes the RuntimeFeature model
app/graphql/types/runtime_status_type.rb Removes runtime_features field from GraphQL RuntimeStatus type
app/graphql/types/runtime_feature_type.rb Deletes GraphQL RuntimeFeature type

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

def change
drop_table :runtime_features do |t|
t.references :runtime_status, null: false,
foreign_key: { to_table: :runtime_statuses, on_delete: :cascade }
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

GitLab Pipeline Action

General information

Link to pipeline: https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2494792326

Status: Passed
Duration: 6 minutes

Job summaries

rspec: [cloud]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14184261915/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2494792326/test_report
Finished in 22.79 seconds (files took 13.69 seconds to load)
1374 examples, 0 failures
Line Coverage: 92.45% (4469 / 4834)
[TEST PROF INFO] Time spent in factories: 00:12.217 (39.92% of total time)

rspec: [ee]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14184261914/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2494792326/test_report
Finished in 22.79 seconds (files took 10.52 seconds to load)
1352 examples, 0 failures
Line Coverage: 92.82% (4369 / 4707)
[TEST PROF INFO] Time spent in factories: 00:11.955 (41.11% of total time)

rspec: [ce]

Coverage report available at https://code0-tech.gitlab.io/-/development/sagittarius/-/jobs/14184261913/artifacts/tmp/coverage/index.html
Test summary available at https://gitlab.com/code0-tech/development/sagittarius/-/pipelines/2494792326/test_report
Finished in 22.77 seconds (files took 11.35 seconds to load)
1302 examples, 0 failures
Line Coverage: 92.32% (4198 / 4547)
[TEST PROF INFO] Time spent in factories: 00:12.234 (41.88% of total time)

docs:preview

Documentation preview available at https://code0-tech.gitlab.io/-/development/telescopium/-/jobs/14184271024/artifacts/out/index.html

rubocop

772 files inspected, no offenses detected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove Runtime features

2 participants