Migrates index_ml_models to graphql
To avoid technical debt and improve user experience, this MR migrates index_ml_model.vue to use graphql instead of preloading and refreshing the page on every change to the search query and pagination. To do so, we introduce search to the SearchableList component, in a way that doesn't affect existent usage.
显示
- app/assets/javascripts/ml/model_registry/apps/index_ml_models.vue 96 个添加, 38 个删除...ts/javascripts/ml/model_registry/apps/index_ml_models.vue
- app/assets/javascripts/ml/model_registry/components/candidate_list.vue 13 个添加, 8 个删除...vascripts/ml/model_registry/components/candidate_list.vue
- app/assets/javascripts/ml/model_registry/components/model_row.vue 22 个添加, 11 个删除...ts/javascripts/ml/model_registry/components/model_row.vue
- app/assets/javascripts/ml/model_registry/components/model_version_list.vue 13 个添加, 8 个删除...ripts/ml/model_registry/components/model_version_list.vue
- app/assets/javascripts/ml/model_registry/components/searchable_list.vue 81 个添加, 6 个删除...ascripts/ml/model_registry/components/searchable_list.vue
- app/assets/javascripts/ml/model_registry/graphql/queries/get_models.query.graphql 46 个添加, 0 个删除...l/model_registry/graphql/queries/get_models.query.graphql
- app/assets/javascripts/ml/model_registry/translations.js 5 个添加, 0 个删除app/assets/javascripts/ml/model_registry/translations.js
- app/controllers/projects/ml/models_controller.rb 1 个添加, 11 个删除app/controllers/projects/ml/models_controller.rb
- app/helpers/projects/ml/model_registry_helper.rb 30 个添加, 0 个删除app/helpers/projects/ml/model_registry_helper.rb
- app/views/projects/ml/models/index.html.haml 1 个添加, 1 个删除app/views/projects/ml/models/index.html.haml
- locale/gitlab.pot 3 个添加, 0 个删除locale/gitlab.pot
- spec/frontend/ml/model_registry/apps/index_ml_models_spec.js 179 个添加, 64 个删除spec/frontend/ml/model_registry/apps/index_ml_models_spec.js
- spec/frontend/ml/model_registry/components/model_row_spec.js 20 个添加, 13 个删除spec/frontend/ml/model_registry/components/model_row_spec.js
- spec/frontend/ml/model_registry/components/searchable_list_spec.js 92 个添加, 2 个删除...tend/ml/model_registry/components/searchable_list_spec.js
- spec/frontend/ml/model_registry/graphql_mock_data.js 61 个添加, 0 个删除spec/frontend/ml/model_registry/graphql_mock_data.js
- spec/helpers/projects/ml/model_registry_helper_spec.rb 37 个添加, 0 个删除spec/helpers/projects/ml/model_registry_helper_spec.rb
- spec/requests/projects/ml/models_controller_spec.rb 1 个添加, 68 个删除spec/requests/projects/ml/models_controller_spec.rb
加载中
想要评论请 注册 或 登录