Enhance Security & Compliance Error Handlings
This commit solves: https://gitlab.com/gitlab-org/gitlab/-/issues/386854 It enhances the error handling for the Security & Compliance Configuration to make the distinction between user-facing and non-user facing errors. To achieve this behaviour this commit introduces a Backend and a Frontend util to make User facing errors distinguishable by adding and parsing a prefix. Changelog: changed EE: true
显示
- app/assets/javascripts/lib/utils/error_message.js 20 个添加, 0 个删除app/assets/javascripts/lib/utils/error_message.js
- app/assets/javascripts/security_configuration/components/app.vue 7 个添加, 2 个删除...ets/javascripts/security_configuration/components/app.vue
- app/graphql/types/project_type.rb 1 个添加, 1 个删除app/graphql/types/project_type.rb
- app/services/security/ci_configuration/base_create_service.rb 2 个添加, 1 个删除...services/security/ci_configuration/base_create_service.rb
- doc/development/api_styleguide.md 11 个添加, 0 个删除doc/development/api_styleguide.md
- doc/development/fe_guide/style/javascript.md 19 个添加, 0 个删除doc/development/fe_guide/style/javascript.md
- ee/app/assets/javascripts/security_configuration/sast/components/app.vue 38 个添加, 21 个删除...avascripts/security_configuration/sast/components/app.vue
- ee/spec/frontend/security_configuration/sast/components/app_spec.js 32 个添加, 5 个删除...ontend/security_configuration/sast/components/app_spec.js
- ee/spec/frontend/security_configuration/sast/constants.js 2 个添加, 0 个删除ee/spec/frontend/security_configuration/sast/constants.js
- lib/gitlab/utils/error_message.rb 13 个添加, 0 个删除lib/gitlab/utils/error_message.rb
- locale/gitlab.pot 3 个添加, 0 个删除locale/gitlab.pot
- spec/frontend/lib/utils/error_message_spec.js 65 个添加, 0 个删除spec/frontend/lib/utils/error_message_spec.js
- spec/frontend/security_configuration/components/app_spec.js 20 个添加, 4 个删除spec/frontend/security_configuration/components/app_spec.js
- spec/frontend/security_configuration/components/feature_card_spec.js 3 个添加, 2 个删除...nd/security_configuration/components/feature_card_spec.js
- spec/frontend/security_configuration/constants.js 1 个添加, 0 个删除spec/frontend/security_configuration/constants.js
- spec/graphql/types/project_type_spec.rb 1 个添加, 1 个删除spec/graphql/types/project_type_spec.rb
- spec/lib/gitlab/utils/error_message_spec.rb 23 个添加, 0 个删除spec/lib/gitlab/utils/error_message_spec.rb
- spec/support/shared_examples/services/security/ci_configuration/create_service_shared_examples.rb 1 个添加, 1 个删除...curity/ci_configuration/create_service_shared_examples.rb
加载中
想要评论请 注册 或 登录