Store full include path for CI components
The `path` field on `ci_components` currently holds the file path of the component within the component project repository. However, we aren't currently using that data. Instead, we need to provide the include path for the component so we can display it on the catalog resource details page. This commit stores the include path instead of the file path. Existing component records will still have the file path. We'll decide later whether it is necessary to update them with a data migration. Changelog: changed
显示
- app/assets/javascripts/ci/catalog/components/details/ci_resource_components.vue 2 个添加, 2 个删除.../ci/catalog/components/details/ci_resource_components.vue
- app/assets/javascripts/ci/catalog/graphql/queries/get_ci_catalog_resource_components.query.graphql 1 个添加, 1 个删除.../queries/get_ci_catalog_resource_components.query.graphql
- app/graphql/types/ci/catalog/resources/component_type.rb 2 个添加, 1 个删除app/graphql/types/ci/catalog/resources/component_type.rb
- app/services/ci/catalog/resources/versions/create_service.rb 4 个添加, 2 个删除app/services/ci/catalog/resources/versions/create_service.rb
- doc/api/graphql/reference/index.md 1 个添加, 1 个删除doc/api/graphql/reference/index.md
- spec/frontend/ci/catalog/components/details/ci_resource_components_spec.js 2 个添加, 2 个删除...catalog/components/details/ci_resource_components_spec.js
- spec/frontend/ci/catalog/mock.js 3 个添加, 3 个删除spec/frontend/ci/catalog/mock.js
- spec/graphql/types/ci/catalog/resources/component_type_spec.rb 1 个添加, 1 个删除...graphql/types/ci/catalog/resources/component_type_spec.rb
- spec/requests/api/graphql/ci/catalog/resource_spec.rb 3 个添加, 3 个删除spec/requests/api/graphql/ci/catalog/resource_spec.rb
- spec/services/ci/catalog/resources/versions/create_service_spec.rb 5 个添加, 4 个删除...ices/ci/catalog/resources/versions/create_service_spec.rb
加载中
想要评论请 注册 或 登录