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
May 17, 2023
1 parent
9bf8cb8
commit 75621c9
Showing
34 changed files
with
652 additions
and
112 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
# Cop supports --autocorrect. | ||
Graphql/ResourceNotAvailableError: | ||
Details: grace period | ||
Exclude: | ||
- 'app/graphql/mutations/achievements/create.rb' | ||
- 'app/graphql/mutations/admin/sidekiq_queues/delete_jobs.rb' | ||
- 'app/graphql/mutations/ci/ci_cd_settings_update.rb' | ||
- 'app/graphql/mutations/ci/job_artifact/bulk_destroy.rb' | ||
- 'app/graphql/mutations/ci/runner/create.rb' | ||
- 'app/graphql/mutations/custom_emoji/create.rb' | ||
- 'app/graphql/mutations/custom_emoji/destroy.rb' | ||
- 'app/graphql/mutations/design_management/move.rb' | ||
- 'app/graphql/mutations/issues/bulk_update.rb' | ||
- 'app/graphql/mutations/issues/set_crm_contacts.rb' | ||
- 'app/graphql/mutations/issues/set_escalation_status.rb' | ||
- 'app/graphql/mutations/notes/create/base.rb' | ||
- 'app/graphql/mutations/notes/create/note.rb' | ||
- 'app/graphql/mutations/notes/reposition_image_diff_note.rb' | ||
- 'app/graphql/mutations/notes/update/image_diff_note.rb' | ||
- 'app/graphql/mutations/saved_replies/create.rb' | ||
- 'app/graphql/mutations/saved_replies/destroy.rb' | ||
- 'app/graphql/mutations/saved_replies/update.rb' | ||
- 'app/graphql/mutations/todos/mark_all_done.rb' | ||
- 'app/graphql/mutations/work_items/export.rb' | ||
- 'app/graphql/resolvers/ci/runner_setup_resolver.rb' | ||
- 'app/graphql/resolvers/concerns/search_arguments.rb' | ||
- 'app/graphql/resolvers/container_repository_tags_resolver.rb' | ||
- 'app/graphql/resolvers/design_management/versions_resolver.rb' | ||
- 'app/graphql/resolvers/kas/agent_configurations_resolver.rb' | ||
- 'app/graphql/resolvers/kas/agent_connections_resolver.rb' | ||
- 'app/graphql/resolvers/projects/snippets_resolver.rb' | ||
- 'app/graphql/types/container_repository_details_type.rb' | ||
- 'app/graphql/types/container_repository_type.rb' | ||
- 'ee/app/graphql/ee/types/query_type.rb' | ||
- 'ee/app/graphql/mutations/ai/action.rb' | ||
- 'ee/app/graphql/mutations/audit_events/instance_external_audit_event_destinations/base.rb' | ||
- 'ee/app/graphql/mutations/issues/set_escalation_policy.rb' | ||
- 'ee/app/graphql/mutations/projects/set_locked.rb' | ||
- 'ee/app/graphql/resolvers/incident_management/oncall_shifts_resolver.rb' | ||
- 'ee/app/graphql/resolvers/product_analytics/visualization_resolver.rb' | ||
- 'ee/app/graphql/resolvers/remote_development/workspaces_resolver.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
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
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
34 changes: 34 additions & 0 deletions
34
db/post_migrate/20230516032545_add_unique_notes_id_convert_to_bigint_for_gitlab_com.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,34 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddUniqueNotesIdConvertToBigintForGitlabCom < Gitlab::Database::Migration[2.1] | ||
include Gitlab::Database::MigrationHelpers::ConvertToBigint | ||
|
||
disable_ddl_transaction! | ||
|
||
TABLE_NAME = :notes | ||
INDEX_NAME = :index_notes_on_id_convert_to_bigint | ||
|
||
def up | ||
return unless should_run? | ||
|
||
# This was created async for GitLab.com with | ||
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119913 | ||
# and will replace the existing PK index when we swap the integer and bigint columns in | ||
# https://gitlab.com/gitlab-org/gitlab/-/merge_requests/119705 | ||
add_concurrent_index TABLE_NAME, :id_convert_to_bigint, | ||
unique: true, | ||
name: INDEX_NAME | ||
end | ||
|
||
def down | ||
return unless should_run? | ||
|
||
remove_concurrent_index_by_name(TABLE_NAME, INDEX_NAME) | ||
end | ||
|
||
private | ||
|
||
def should_run? | ||
com_or_dev_or_test_but_not_jh? | ||
end | ||
end |
Oops, something went wrong.