Commit 5c2a5135 authored by GitLab Bot's avatar GitLab Bot

Automatic merge of gitlab-org/gitlab master

parents b7b29551 20ced226
---
name: dast_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336944
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
---
name: dast_scanner_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336946
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
---
name: dast_site_profile_disable_joins
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/66709
rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/336945
milestone: '14.2'
type: development
group: group::dynamic analysis
default_enabled: true
...@@ -121,11 +121,11 @@ stages: ...@@ -121,11 +121,11 @@ stages:
- test - test
- deploy - deploy
job 1: job1:
stage: build stage: build
script: make build dependencies script: make build dependencies
job 2: job2:
stage: build stage: build
script: make build artifacts script: make build artifacts
...@@ -216,12 +216,12 @@ jobs: ...@@ -216,12 +216,12 @@ jobs:
Example of the same workflow using `rules` in GitLab CI/CD: Example of the same workflow using `rules` in GitLab CI/CD:
```yaml ```yaml
deploy_prod: deploy:
stage: deploy stage: deploy
script: script:
- echo "Deploy to production server" - echo "Deploy job"
rules: rules:
- if: '$CI_COMMIT_BRANCH == "main"' - if: '$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH =~ /^rc-/'
``` ```
### Caching ### Caching
......
...@@ -33,10 +33,10 @@ module EE ...@@ -33,10 +33,10 @@ module EE
has_many :security_scans, class_name: 'Security::Scan' has_many :security_scans, class_name: 'Security::Scan'
has_one :dast_site_profiles_build, class_name: 'Dast::SiteProfilesBuild', foreign_key: :ci_build_id has_one :dast_site_profiles_build, class_name: 'Dast::SiteProfilesBuild', foreign_key: :ci_build_id
has_one :dast_site_profile, class_name: 'DastSiteProfile', through: :dast_site_profiles_build, disable_joins: -> { ::Feature.enabled?(:dast_site_profile_disable_joins, default_enabled: :yaml) } has_one :dast_site_profile, class_name: 'DastSiteProfile', through: :dast_site_profiles_build, disable_joins: true
has_one :dast_scanner_profiles_build, class_name: 'Dast::ScannerProfilesBuild', foreign_key: :ci_build_id has_one :dast_scanner_profiles_build, class_name: 'Dast::ScannerProfilesBuild', foreign_key: :ci_build_id
has_one :dast_scanner_profile, class_name: 'DastScannerProfile', through: :dast_scanner_profiles_build, disable_joins: -> { ::Feature.enabled?(:dast_scanner_profile_disable_joins, default_enabled: :yaml) } has_one :dast_scanner_profile, class_name: 'DastScannerProfile', through: :dast_scanner_profiles_build, disable_joins: true
after_commit :track_ci_secrets_management_usage, on: :create after_commit :track_ci_secrets_management_usage, on: :create
delegate :service_specification, to: :runner_session, allow_nil: true delegate :service_specification, to: :runner_session, allow_nil: true
......
...@@ -21,7 +21,7 @@ module EE ...@@ -21,7 +21,7 @@ module EE
has_many :security_findings, class_name: 'Security::Finding', through: :security_scans, source: :findings has_many :security_findings, class_name: 'Security::Finding', through: :security_scans, source: :findings
has_one :dast_profiles_pipeline, class_name: 'Dast::ProfilesPipeline', foreign_key: :ci_pipeline_id has_one :dast_profiles_pipeline, class_name: 'Dast::ProfilesPipeline', foreign_key: :ci_pipeline_id
has_one :dast_profile, class_name: 'Dast::Profile', through: :dast_profiles_pipeline, disable_joins: -> { ::Feature.enabled?(:dast_profile_disable_joins, default_enabled: :yaml) } has_one :dast_profile, class_name: 'Dast::Profile', through: :dast_profiles_pipeline, disable_joins: true
has_one :source_project, class_name: 'Ci::Sources::Project', foreign_key: :pipeline_id has_one :source_project, class_name: 'Ci::Sources::Project', foreign_key: :pipeline_id
......
...@@ -103,7 +103,7 @@ RSpec.describe 'Query.project.mergeRequest.approvalState' do ...@@ -103,7 +103,7 @@ RSpec.describe 'Query.project.mergeRequest.approvalState' do
'eligibleApprovers' => [{ 'id' => global_id_of(user) }], 'eligibleApprovers' => [{ 'id' => global_id_of(user) }],
'groups' => { 'nodes' => [] }, 'groups' => { 'nodes' => [] },
'id' => global_id_of(code_owner_rule), 'id' => global_id_of(code_owner_rule),
'name' => '*-1.js', 'name' => code_owner_rule.name,
'overridden' => false, 'overridden' => false,
'section' => 'codeowners', 'section' => 'codeowners',
'sourceRule' => nil, 'sourceRule' => nil,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment