Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
e380e59e
Commit
e380e59e
authored
Mar 20, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
d2b53bd7
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
85 additions
and
0 deletions
+85
-0
app/assets/javascripts/vue_shared/components/form/title.vue
app/assets/javascripts/vue_shared/components/form/title.vue
+15
-0
app/models/prometheus_alert.rb
app/models/prometheus_alert.rb
+1
-0
changelogs/unreleased/1793-add-unlock-membership-to-ldap-column-to-groups.yml
...d/1793-add-unlock-membership-to-ldap-column-to-groups.yml
+5
-0
changelogs/unreleased/207236-snippet-edit-title.yml
changelogs/unreleased/207236-snippet-edit-title.yml
+5
-0
changelogs/unreleased/208923-enable-batch-counting-for-some-individual-queries-3.yml
...3-enable-batch-counting-for-some-individual-queries-3.yml
+5
-0
db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb
...20200304124406_add_unlock_membership_to_ldap_of_groups.rb
+19
-0
db/schema.rb
db/schema.rb
+1
-0
spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap
...e_shared/components/form/__snapshots__/title_spec.js.snap
+12
-0
spec/frontend/vue_shared/components/form/title_spec.js
spec/frontend/vue_shared/components/form/title_spec.js
+22
-0
No files found.
app/assets/javascripts/vue_shared/components/form/title.vue
0 → 100644
View file @
e380e59e
<
script
>
import
{
GlFormInput
,
GlFormGroup
}
from
'
@gitlab/ui
'
;
export
default
{
components
:
{
GlFormInput
,
GlFormGroup
,
},
};
</
script
>
<
template
>
<gl-form-group
:label=
"__('Title')"
label-for=
"title-field-edit"
>
<gl-form-input
id=
"title-field-edit"
v-bind=
"$attrs"
v-on=
"$listeners"
/>
</gl-form-group>
</
template
>
app/models/prometheus_alert.rb
View file @
e380e59e
...
...
@@ -2,6 +2,7 @@
class
PrometheusAlert
<
ApplicationRecord
include
Sortable
include
UsageStatistics
OPERATORS_MAP
=
{
lt:
"<"
,
...
...
changelogs/unreleased/1793-add-unlock-membership-to-ldap-column-to-groups.yml
0 → 100644
View file @
e380e59e
---
title
:
Add unlock_membership_to_ldap boolean to Groups
merge_request
:
26474
author
:
type
:
added
changelogs/unreleased/207236-snippet-edit-title.yml
0 → 100644
View file @
e380e59e
---
title
:
Added Edit Title shared component
merge_request
:
27582
author
:
type
:
added
changelogs/unreleased/208923-enable-batch-counting-for-some-individual-queries-3.yml
0 → 100644
View file @
e380e59e
---
title
:
Optimize projects_reporting_ci_cd_back_to_github query performance for usage data
merge_request
:
27533
author
:
type
:
performance
db/migrate/20200304124406_add_unlock_membership_to_ldap_of_groups.rb
0 → 100644
View file @
e380e59e
# frozen_string_literal: true
class
AddUnlockMembershipToLdapOfGroups
<
ActiveRecord
::
Migration
[
5.2
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
up
with_lock_retries
do
add_column
(
:namespaces
,
:unlock_membership_to_ldap
,
:boolean
)
end
end
def
down
with_lock_retries
do
remove_column
:namespaces
,
:unlock_membership_to_ldap
end
end
end
db/schema.rb
View file @
e380e59e
...
...
@@ -2787,6 +2787,7 @@ ActiveRecord::Schema.define(version: 2020_03_19_203901) do
t
.
integer
"max_artifacts_size"
t
.
boolean
"mentions_disabled"
t
.
integer
"default_branch_protection"
,
limit:
2
t
.
boolean
"unlock_membership_to_ldap"
t
.
index
[
"created_at"
],
name:
"index_namespaces_on_created_at"
t
.
index
[
"custom_project_templates_group_id"
,
"type"
],
name:
"index_namespaces_on_custom_project_templates_group_id_and_type"
,
where:
"(custom_project_templates_group_id IS NOT NULL)"
t
.
index
[
"file_template_project_id"
],
name:
"index_namespaces_on_file_template_project_id"
...
...
spec/frontend/vue_shared/components/form/__snapshots__/title_spec.js.snap
0 → 100644
View file @
e380e59e
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`Title edit field matches the snapshot 1`] = `
<gl-form-group-stub
label="Title"
label-for="title-field-edit"
>
<gl-form-input-stub
id="title-field-edit"
/>
</gl-form-group-stub>
`;
spec/frontend/vue_shared/components/form/title_spec.js
0 → 100644
View file @
e380e59e
import
TitleField
from
'
~/vue_shared/components/form/title.vue
'
;
import
{
shallowMount
}
from
'
@vue/test-utils
'
;
describe
(
'
Title edit field
'
,
()
=>
{
let
wrapper
;
function
createComponent
()
{
wrapper
=
shallowMount
(
TitleField
);
}
beforeEach
(()
=>
{
createComponent
();
});
afterEach
(()
=>
{
wrapper
.
destroy
();
});
it
(
'
matches the snapshot
'
,
()
=>
{
expect
(
wrapper
.
element
).
toMatchSnapshot
();
});
});
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment