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 5, 2024
1 parent
444db32
commit c823a6f
Showing
169 changed files
with
490 additions
and
464 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 |
---|---|---|
@@ -1 +1 @@ | ||
09eeaffa3ae3118b03eb0e9e7000e5901ced015a | ||
da03e230032486c2fc2cbed95d78308eff2887c6 |
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,37 +1,28 @@ | ||
- page_title _('SSH Keys') | ||
- add_page_specific_style 'page_bundles/profile' | ||
- @force_desktop_expanded_sidebar = true | ||
- add_form_class = 'gl-hidden' if !form_errors(@key) | ||
- hide_class = 'gl-hidden' if form_errors(@key) | ||
|
||
.settings-section.js-search-settings-section | ||
.settings-sticky-header | ||
.settings-sticky-header-inner | ||
%h4.gl-my-0 | ||
= page_title | ||
%p.gl-text-secondary | ||
= render ::Layouts::SettingsSectionComponent.new(page_title) do |c| | ||
- c.with_description do | ||
= _('SSH keys allow you to establish a secure connection between your computer and GitLab.') | ||
- config_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_instance_configuration_url } | ||
= html_escape(s_('SSH fingerprints verify that the client is connecting to the correct host. Check the %{config_link_start}current instance configuration%{config_link_end}.')) % { config_link_start: config_link_start, config_link_end: '</a>'.html_safe } | ||
|
||
= render Pajamas::CardComponent.new(card_options: { class: 'gl-new-card js-toggle-container' }, header_options: { class: 'gl-new-card-header' }, body_options: { class: 'gl-new-card-body gl-px-0' }) do |c| | ||
- c.with_header do | ||
.gl-new-card-title-wrapper | ||
%h3.gl-new-card-title | ||
= _('Your SSH keys') | ||
.gl-new-card-count | ||
= sprite_icon('key', css_class: 'gl-mr-2') | ||
= @keys.count | ||
.gl-new-card-actions | ||
= render Pajamas::ButtonComponent.new(size: :small, button_options: { class: "js-toggle-button js-toggle-content #{hide_class}" }) do | ||
= _('Add new key') | ||
- c.with_body do | ||
.gl-new-card-add-form.gl-m-3.js-toggle-content{ class: add_form_class } | ||
- c.with_body do | ||
= render ::Layouts::CrudComponent.new(_('Your SSH keys'), | ||
icon: 'key', | ||
count: @keys.count, | ||
toggle_text: _('Add new key'), | ||
toggle_options: { class: hide_class }, | ||
form_options: { form_errors: form_errors(@key) }) do |c| | ||
- c.with_form do | ||
%h4.gl-mt-0 | ||
= _('Add an SSH key') | ||
%p | ||
- help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: help_page_path('user/ssh') } | ||
= _('Add an SSH key for secure access to GitLab. %{help_link_start}Learn more%{help_link_end}.').html_safe % {help_link_start: help_link_start, help_link_end: '</a>'.html_safe } | ||
= render 'form' | ||
|
||
= render 'key_table', hide_class: hide_class | ||
- c.with_body do | ||
= render 'key_table' |
8 changes: 0 additions & 8 deletions
8
config/feature_flags/development/json_wrapper_legacy_mode.yml
This file was deleted.
Oops, something went wrong.
38 changes: 38 additions & 0 deletions
38
db/click_house/migrate/main/20240731083515_drop_code_suggestion_daily_usages_table.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,38 @@ | ||
# frozen_string_literal: true | ||
|
||
class DropCodeSuggestionDailyUsagesTable < ClickHouse::Migration | ||
def up | ||
execute <<~SQL | ||
DROP VIEW IF EXISTS code_suggestion_daily_usages_mv | ||
SQL | ||
|
||
execute <<~SQL | ||
DROP TABLE IF EXISTS code_suggestion_daily_usages | ||
SQL | ||
end | ||
|
||
def down | ||
execute <<~SQL | ||
CREATE TABLE IF NOT EXISTS code_suggestion_daily_usages | ||
( | ||
user_id UInt64 DEFAULT 0, | ||
timestamp Date32 DEFAULT toDate(now64()), | ||
) ENGINE = ReplacingMergeTree | ||
PARTITION BY toYear(timestamp) | ||
ORDER BY (user_id, timestamp) | ||
SETTINGS index_granularity = 64 | ||
SQL | ||
|
||
execute <<~SQL | ||
CREATE MATERIALIZED VIEW code_suggestion_daily_usages_mv | ||
TO code_suggestion_daily_usages | ||
AS | ||
SELECT | ||
user_id, | ||
timestamp | ||
FROM code_suggestion_usages | ||
WHERE event IN (1, 2, 5) | ||
GROUP BY user_id, timestamp | ||
SQL | ||
end | ||
end |
13 changes: 13 additions & 0 deletions
13
db/migrate/20240802194745_add_project_id_to_merge_request_diff_commits_b5377a7a34.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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
class AddProjectIdToMergeRequestDiffCommitsB5377a7a34 < Gitlab::Database::Migration[2.2] | ||
milestone '17.3' | ||
|
||
def up | ||
add_column :merge_request_diff_commits_b5377a7a34, :project_id, :bigint | ||
end | ||
|
||
def down | ||
remove_column :merge_request_diff_commits_b5377a7a34, :project_id | ||
end | ||
end |
16 changes: 16 additions & 0 deletions
16
...grate/20240802194749_prepare_index_merge_request_diff_commits_b5377a7a34_on_project_id.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,16 @@ | ||
# frozen_string_literal: true | ||
|
||
class PrepareIndexMergeRequestDiffCommitsB5377a7a34OnProjectId < Gitlab::Database::Migration[2.2] | ||
milestone '17.3' | ||
disable_ddl_transaction! | ||
|
||
INDEX_NAME = 'index_merge_request_diff_commits_b5377a7a34_on_project_id' | ||
|
||
def up | ||
prepare_async_index :merge_request_diff_commits_b5377a7a34, :project_id, name: INDEX_NAME | ||
end | ||
|
||
def down | ||
unprepare_async_index :merge_request_diff_commits_b5377a7a34, INDEX_NAME | ||
end | ||
end |
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 @@ | ||
13f2a6dc299a6c88a90f68c430fa268a11a0605f7fb9cc8fa26c05fec747b309 |
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 @@ | ||
32446f048c0fdbc4fa4d8fc2443fcf4835df2133a9ad813b29b8f5cb883b780c |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
Oops, something went wrong.