forked from gitlabhq/gitlabhq
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add latest changes from gitlab-org/gitlab@master
- Loading branch information
GitLab Bot
committed
Aug 2, 2024
1 parent
91c56c2
commit 2f2a542
Showing
65 changed files
with
812 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
= closure_reason_text(@closed_via, format: formats.first, name: @updated_by.name) | ||
|
||
Issue ##{@issue.iid}: #{@target_url} | ||
#{work_item_type_for(@issue).capitalize} ##{@issue.iid}: #{@target_url} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
description: Tracks Flux Git Push notification from KAS to agentk | ||
internal_events: true | ||
action: create_flux_git_push_notification | ||
product_group: environments | ||
milestone: '17.3' | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150613 | ||
distributions: | ||
- ce | ||
- ee | ||
tiers: | ||
- free | ||
- premium | ||
- ultimate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
description: Tracks Kubernetes API proxy request | ||
internal_events: true | ||
action: request_api_proxy_access | ||
product_group: environments | ||
milestone: '17.3' | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150613 | ||
distributions: | ||
- ce | ||
- ee | ||
tiers: | ||
- free | ||
- premium | ||
- ultimate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
description: Tracks Kubernetes API proxy request via CI | ||
internal_events: true | ||
action: request_api_proxy_access_via_ci | ||
product_group: environments | ||
milestone: '17.3' | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150613 | ||
distributions: | ||
- ce | ||
- ee | ||
tiers: | ||
- free | ||
- premium | ||
- ultimate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
description: Tracks Kubernetes API proxy request via Personal Access Token | ||
internal_events: true | ||
action: request_api_proxy_access_via_pat | ||
product_group: environments | ||
milestone: '17.3' | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150613 | ||
distributions: | ||
- ce | ||
- ee | ||
tiers: | ||
- free | ||
- premium | ||
- ultimate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
description: Tracks Kubernetes API proxy request via user | ||
internal_events: true | ||
action: request_api_proxy_access_via_user | ||
product_group: environments | ||
milestone: '17.3' | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/150613 | ||
distributions: | ||
- ce | ||
- ee | ||
tiers: | ||
- free | ||
- premium | ||
- ultimate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
- title: "CodeClimate-based Code Quality scanning will be removed" # (required) Clearly explain the change, or planned change. For example, "The `confidential` field for a `Note` is deprecated" or "CI/CD job names will be limited to 250 characters." | ||
announcement_milestone: "17.3" # (required) The milestone when this feature was first announced as deprecated. | ||
removal_milestone: "18.0" # (required) The milestone when this feature is planned to be removed | ||
breaking_change: true # (required) Change to false if this is not a breaking change. | ||
reporter: connorgilbert # (required) GitLab username of the person reporting the change | ||
stage: secure # (required) String value of the stage that the feature was created in. e.g., Growth | ||
issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/471677 # (required) Link to the deprecation issue in GitLab | ||
body: | # (required) Do not modify this line, instead modify the lines below. | ||
In GitLab 18.0, we will remove CodeClimate-based Code Quality scanning. | ||
However, you'll still be able to import results from quality tools by [providing a report as an artifact](https://docs.gitlab.com/ee/ci/testing/code_quality.html#implement-a-custom-tool), just as you can today. | ||
In addition, you can also see this [epic](https://gitlab.com/groups/gitlab-org/-/epics/8790) for new directions considered for Code Quality. | ||
We expect to implement this change by: | ||
1. Changing the [`Code-Quality.gitlab-ci.yml` CI/CD template](https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Jobs/Code-Quality.gitlab-ci.yml) to no longer execute scans. Today, this template runs CodeClimate-based scans. (We plan to change the template rather than delete it to reduce the impact on any pipelines that still `include` the template after 18.0.) | ||
1. No longer running CodeClimate-based scanning as part of Auto DevOps. | ||
Effective immediately, CodeClimate-based scanning will receive only [limited updates](https://docs.gitlab.com/ee/update/terminology.html#deprecation). | ||
After End of Support in GitLab 18.0, we won't provide further updates. | ||
However, we won't delete previously published container images or remove the ability to run them by using custom CI/CD pipeline job definitions. | ||
For more details and required actions, see the [deprecation issue for this change](https://gitlab.com/gitlab-org/gitlab/-/issues/471677#action-required). |
9 changes: 9 additions & 0 deletions
9
db/docs/batched_background_migrations/backfill_error_tracking_error_events_project_id.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
migration_job_name: BackfillErrorTrackingErrorEventsProjectId | ||
description: Backfills sharding key `error_tracking_error_events.project_id` from `error_tracking_errors`. | ||
feature_category: error_tracking | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161341 | ||
milestone: '17.3' | ||
queued_migration_version: 20240731160144 | ||
finalize_after: '2024-08-22' | ||
finalized_by: # version of the migration that finalized this BBM |
9 changes: 9 additions & 0 deletions
9
db/docs/batched_background_migrations/make_security_policy_bots_private.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
migration_job_name: MakeSecurityPolicyBotsPrivate | ||
description: Updates private_profile to true for all security policy bot users. | ||
feature_category: security_policy_management | ||
introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161151 | ||
milestone: '17.3' | ||
queued_migration_version: 20240729124632 | ||
finalize_after: '2024-08-15' | ||
finalized_by: # version of the migration that finalized this BBM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
db/migrate/20240731160140_add_project_id_to_error_tracking_error_events.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddProjectIdToErrorTrackingErrorEvents < Gitlab::Database::Migration[2.2] | ||
milestone '17.3' | ||
|
||
def change | ||
add_column :error_tracking_error_events, :project_id, :bigint | ||
end | ||
end |
21 changes: 21 additions & 0 deletions
21
db/post_migrate/20240722075838_remove_projects_dast_site_tokens_project_id_fk.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
class RemoveProjectsDastSiteTokensProjectIdFk < Gitlab::Database::Migration[2.2] | ||
milestone '17.3' | ||
disable_ddl_transaction! | ||
|
||
FOREIGN_KEY_NAME = "fk_rails_e84f721a8e" | ||
|
||
def up | ||
with_lock_retries do | ||
remove_foreign_key_if_exists(:dast_site_tokens, :projects, | ||
name: FOREIGN_KEY_NAME, reverse_lock_order: true) | ||
end | ||
end | ||
|
||
def down | ||
add_concurrent_foreign_key(:dast_site_tokens, :projects, | ||
name: FOREIGN_KEY_NAME, column: :project_id, | ||
target_column: :id, on_delete: :cascade) | ||
end | ||
end |
27 changes: 27 additions & 0 deletions
27
db/post_migrate/20240729124632_queue_make_security_policy_bots_private.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# frozen_string_literal: true | ||
|
||
class QueueMakeSecurityPolicyBotsPrivate < Gitlab::Database::Migration[2.2] | ||
milestone '17.3' | ||
|
||
restrict_gitlab_migration gitlab_schema: :gitlab_main | ||
|
||
MIGRATION = "MakeSecurityPolicyBotsPrivate" | ||
DELAY_INTERVAL = 2.minutes | ||
BATCH_SIZE = 1000 | ||
SUB_BATCH_SIZE = 100 | ||
|
||
def up | ||
queue_batched_background_migration( | ||
MIGRATION, | ||
:users, | ||
:id, | ||
job_interval: DELAY_INTERVAL, | ||
batch_size: BATCH_SIZE, | ||
sub_batch_size: SUB_BATCH_SIZE | ||
) | ||
end | ||
|
||
def down | ||
delete_batched_background_migration(MIGRATION, :users, :id, []) | ||
end | ||
end |
Oops, something went wrong.