Skip to content

Commit 089d40a

Browse files
author
GitLab Bot
committed
Add latest changes from gitlab-org/gitlab@master
1 parent bae325c commit 089d40a

27 files changed

+376
-42
lines changed

app/assets/javascripts/feature_flags/components/form.vue

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- eslint-disable vue/multi-word-component-names -->
22
<script>
3-
import { GlButton } from '@gitlab/ui';
3+
import { GlButton, GlFormTextarea } from '@gitlab/ui';
44
import { memoize, cloneDeep, isNumber, uniqueId } from 'lodash';
55
import { s__ } from '~/locale';
66
import RelatedIssuesRoot from '~/related_issues/components/related_issues_root.vue';
@@ -23,6 +23,7 @@ export default {
2323
GlButton,
2424
Strategy,
2525
RelatedIssuesRoot,
26+
GlFormTextarea,
2627
},
2728
mixins: [featureFlagsMixin()],
2829
inject: {
@@ -159,24 +160,30 @@ export default {
159160
<fieldset>
160161
<div class="-gl-mx-5 gl-flex gl-flex-wrap">
161162
<div class="gl-mb-5 gl-w-full gl-px-5 md:gl-basis-1/3">
162-
<label for="feature-flag-name" class="gl-font-bold"
163-
>{{ s__('FeatureFlags|Name') }} *</label
164-
>
165-
<input id="feature-flag-name" v-model="formName" class="form-control" />
163+
<label for="feature-flag-name" class="gl-font-bold">
164+
{{ s__('FeatureFlags|Name') }}
165+
</label>
166+
<input
167+
id="feature-flag-name"
168+
v-model="formName"
169+
class="form-control"
170+
required
171+
aria-required="true"
172+
/>
166173
</div>
167174
</div>
168-
169175
<div class="-gl-mx-5 gl-flex gl-flex-wrap">
170176
<div class="gl-mb-5 gl-w-full gl-px-5 md:gl-basis-1/3">
171177
<label for="feature-flag-description" class="gl-font-bold">
172-
{{ s__('FeatureFlags|Description') }}
178+
{{ s__('FeatureFlags|Description (optional)') }}
173179
</label>
174-
<textarea
180+
<gl-form-textarea
175181
id="feature-flag-description"
176182
v-model="formDescription"
177183
class="form-control"
178184
rows="4"
179-
></textarea>
185+
aria-required="false"
186+
/>
180187
</div>
181188
</div>
182189

@@ -186,7 +193,6 @@ export default {
186193
:can-admin="true"
187194
:show-categorized-issues="false"
188195
/>
189-
190196
<div class="-gl-mx-5 gl-flex gl-flex-wrap">
191197
<div class="gl-mb-5 gl-w-full gl-px-5">
192198
<h4>{{ s__('FeatureFlags|Strategies') }}</h4>

app/assets/javascripts/work_items/graphql/cache_utils.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,13 @@ function updateNoteAwardEmojiCache(currentNotes, note, callback) {
149149

150150
export const updateCacheAfterAddingAwardEmojiToNote = (currentNotes, note) => {
151151
return updateNoteAwardEmojiCache(currentNotes, note, (n, awardEmoji) => {
152-
n.awardEmoji.nodes.push(awardEmoji);
152+
if (
153+
!n.awardEmoji.nodes.some(
154+
(emoji) => emoji.name === awardEmoji.name && emoji.user.id === awardEmoji.user.id,
155+
)
156+
) {
157+
n.awardEmoji.nodes.push(awardEmoji);
158+
}
153159
});
154160
};
155161

config/metrics/counts_all/20210216180049_projects_pivotaltracker_active.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ value_type: number
99
status: active
1010
time_frame: all
1111
data_source: database
12+
instrumentation_class: ActiveProjectIntegrationsMetric
13+
options:
14+
type: pivotaltracker
1215
tiers:
1316
- free
1417
- premium

config/metrics/counts_all/20210216180051_groups_pivotaltracker_active.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ value_type: number
99
status: active
1010
time_frame: all
1111
data_source: database
12+
instrumentation_class: ActiveGroupIntegrationsMetric
13+
options:
14+
type: pivotaltracker
1215
tiers:
1316
- free
1417
- premium

db/docs/batched_background_migrations/backfill_packages_nuget_metadata_project_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167607
66
milestone: '17.5'
77
queued_migration_version: 20240930121136
88
finalize_after: '2024-10-22'
9-
finalized_by: # version of the migration that finalized this BBM
9+
finalized_by: '20250318231614'

db/docs/batched_background_migrations/backfill_packages_pypi_metadata_project_id.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/167608
66
milestone: '17.5'
77
queued_migration_version: 20240930121830
88
finalize_after: '2024-10-22'
9-
finalized_by: # version of the migration that finalized this BBM
9+
finalized_by: '20250318231642'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
class AddAllowAgentToRequestUserToDuoWorkflowsWorkflows < Gitlab::Database::Migration[2.2]
4+
milestone '17.11'
5+
6+
def change
7+
add_column :duo_workflows_workflows, :allow_agent_to_request_user, :boolean, default: true, null: false
8+
end
9+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# frozen_string_literal: true
2+
3+
class FinalizeHkBackfillPackagesNugetMetadataProjectId < Gitlab::Database::Migration[2.2]
4+
milestone '17.11'
5+
6+
disable_ddl_transaction!
7+
8+
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
9+
10+
def up
11+
ensure_batched_background_migration_is_finished(
12+
job_class_name: 'BackfillPackagesNugetMetadataProjectId',
13+
table_name: :packages_nuget_metadata,
14+
column_name: :package_id,
15+
job_arguments: [:project_id, :packages_packages, :project_id, :package_id],
16+
finalize: true
17+
)
18+
end
19+
20+
def down; end
21+
end
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# frozen_string_literal: true
2+
3+
class FinalizeHkBackfillPackagesPypiMetadataProjectId < Gitlab::Database::Migration[2.2]
4+
milestone '17.11'
5+
6+
disable_ddl_transaction!
7+
8+
restrict_gitlab_migration gitlab_schema: :gitlab_main_cell
9+
10+
def up
11+
ensure_batched_background_migration_is_finished(
12+
job_class_name: 'BackfillPackagesPypiMetadataProjectId',
13+
table_name: :packages_pypi_metadata,
14+
column_name: :package_id,
15+
job_arguments: [:project_id, :packages_packages, :project_id, :package_id],
16+
finalize: true
17+
)
18+
end
19+
20+
def down; end
21+
end

db/schema_migrations/20250317055520

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bdb65c5bf0e5ed59deedded20c88516914c9ac5f43c57dc95547a2122d956b2b

db/schema_migrations/20250318231614

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0ad8202f097b9509c7430aeabaa6c39d202a2fd8ea06b7bb4f89e4efaccea858

db/schema_migrations/20250318231642

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
eacfbd652ac6aa09c11f4d5f1540c2bc67db07c17c40c8e2396a16313b7e5e04

db/structure.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13619,6 +13619,7 @@ CREATE TABLE duo_workflows_workflows (
1361913619
goal text,
1362013620
agent_privileges smallint[] DEFAULT '{1,2}'::smallint[] NOT NULL,
1362113621
workflow_definition text DEFAULT 'software_development'::text NOT NULL,
13622+
allow_agent_to_request_user boolean DEFAULT true NOT NULL,
1362213623
CONSTRAINT check_5aedde451d CHECK ((char_length(goal) <= 4096)),
1362313624
CONSTRAINT check_ec723e2a1a CHECK ((char_length(workflow_definition) <= 255))
1362413625
);

doc/api/graphql/reference/_index.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7723,18 +7723,15 @@ Input type: `MemberRoleAdminDeleteInput`
77237723
| Name | Type | Description |
77247724
| ---- | ---- | ----------- |
77257725
| <a id="mutationmemberroleadmindeleteclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
7726-
| <a id="mutationmemberroleadmindeletedescription"></a>`description` | [`String`](#string) | Description of the member role. |
77277726
| <a id="mutationmemberroleadmindeleteid"></a>`id` | [`MemberRoleID!`](#memberroleid) | ID of the admin member role to delete. |
7728-
| <a id="mutationmemberroleadmindeletename"></a>`name` | [`String`](#string) | Name of the member role. |
7729-
| <a id="mutationmemberroleadmindeletepermissions"></a>`permissions` | [`[MemberRoleAdminPermission!]`](#memberroleadminpermission) | List of all customizable admin permissions. |
77307727

77317728
#### Fields
77327729

77337730
| Name | Type | Description |
77347731
| ---- | ---- | ----------- |
77357732
| <a id="mutationmemberroleadmindeleteclientmutationid"></a>`clientMutationId` | [`String`](#string) | A unique identifier for the client performing the mutation. |
77367733
| <a id="mutationmemberroleadmindeleteerrors"></a>`errors` | [`[String!]!`](#string) | Errors encountered during execution of the mutation. |
7737-
| <a id="mutationmemberroleadmindeletememberrole"></a>`memberRole` | [`AdminMemberRole`](#adminmemberrole) | Member role. |
7734+
| <a id="mutationmemberroleadmindeletememberrole"></a>`memberRole` | [`MemberRole`](#memberrole) | Deleted admin member role. |
77387735

77397736
### `Mutation.memberRoleAdminUpdate`
77407737

doc/ci/testing/code_quality.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,14 @@ This format is a version of the [CodeClimate report format](https://github.com/c
179179
The file you provide as [Code Quality report artifact](../yaml/artifacts_reports.md#artifactsreportscodequality) must contain a single JSON array.
180180
Each object in that array must have at least the following properties:
181181

182-
| Name | Description | Type |
183-
|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
184-
| `description` | A human-readable description of the code quality violation. | String |
185-
| `check_name` | A unique name representing the check, or rule, associated with this violation. | String |
186-
| `fingerprint` | A unique fingerprint to identify this specific code quality violation, such as a hash of its contents. | String |
187-
| `severity` | The severity of the violation. | String. Valid values are `info`, `minor`, `major`, `critical`, or `blocker`. |
188-
| `location.path` | The file containing the code quality violation, expressed as a relative path in the repository. | String |
189-
| `location.lines.begin` or `location.positions.begin.line` | The line on which the code quality violation occurred. | Integer |
182+
| Name | Description | Type |
183+
|-----------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------|
184+
| `description` | A human-readable description of the code quality violation. | String |
185+
| `check_name` | A unique name representing the check, or rule, associated with this violation. | String |
186+
| `fingerprint` | A unique fingerprint to identify this specific code quality violation, such as a hash of its contents. | String |
187+
| `severity` | The severity of the violation. | String. Valid values are `info`, `minor`, `major`, `critical`, or `blocker`. |
188+
| `location.path` | The file containing the code quality violation, expressed as a relative path in the repository. Do not prefix with `./`. | String |
189+
| `location.lines.begin` or `location.positions.begin.line` | The line on which the code quality violation occurred. | Integer |
190190

191191
The format is different from the [CodeClimate report format](https://github.com/codeclimate/platform/blob/master/spec/analyzers/SPEC.md#data-types) in the following ways:
192192

doc/ci/testing/code_quality_troubleshooting.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ Missing report on the target branch can be due to:
4545

4646
Verify the presence of report on the base commit by obtaining the `base_sha` using the [merge request API](../../api/merge_requests.md#get-single-mr) and use the [pipelines API with the `sha` attribute](../../api/pipelines.md#list-project-pipelines) to check if pipelines ran.
4747

48+
## No Code Quality symbol in the changes view
49+
50+
If no symbol is displayed in the [changes view](../testing/code_quality.md#merge-request-changes-view), ensure that the `location.path` in the code quality report:
51+
52+
- Is using a relative path to the file containing the code quality violation.
53+
- Is not prefixed with `./`. For example, the `path` should be `somedir/file1.rb` instead of `./somedir/file1.rb`.
54+
4855
## Only a single Code Quality report is displayed, but more are defined
4956

5057
Code Quality automatically [combines multiple reports](code_quality.md#scan-code-for-quality-violations).

0 commit comments

Comments
 (0)