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
Jul 20, 2020
1 parent
c780abc
commit dd2da21
Showing
18 changed files
with
229 additions
and
57 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
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
5 changes: 5 additions & 0 deletions
5
changelogs/unreleased/iterations_add_daterange_constraint-unrevert.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,5 @@ | ||
--- | ||
title: Add btree_gist PGSQL extension and add DB constraints for Iteration date ranges | ||
merge_request: 33340 | ||
author: | ||
type: added |
5 changes: 5 additions & 0 deletions
5
changelogs/unreleased/update-gitlab-runner-helm-chart-to-0-19-0.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,5 @@ | ||
--- | ||
title: Update GitLab Runner Helm Chart to 0.19.0 | ||
merge_request: 37292 | ||
author: | ||
type: other |
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,13 @@ | ||
# frozen_string_literal: true | ||
|
||
class EnableBtreeGistExtension < ActiveRecord::Migration[6.0] | ||
DOWNTIME = false | ||
|
||
def up | ||
execute 'CREATE EXTENSION IF NOT EXISTS btree_gist' | ||
end | ||
|
||
def down | ||
execute 'DROP EXTENSION IF EXISTS btree_gist' | ||
end | ||
end |
39 changes: 39 additions & 0 deletions
39
db/migrate/20200515153633_iteration_date_range_constraint.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,39 @@ | ||
# frozen_string_literal: true | ||
|
||
class IterationDateRangeConstraint < ActiveRecord::Migration[6.0] | ||
DOWNTIME = false | ||
|
||
def up | ||
execute <<~SQL | ||
ALTER TABLE sprints | ||
ADD CONSTRAINT iteration_start_and_due_daterange_project_id_constraint | ||
EXCLUDE USING gist | ||
( project_id WITH =, | ||
daterange(start_date, due_date, '[]') WITH && | ||
) | ||
WHERE (project_id IS NOT NULL) | ||
SQL | ||
|
||
execute <<~SQL | ||
ALTER TABLE sprints | ||
ADD CONSTRAINT iteration_start_and_due_daterange_group_id_constraint | ||
EXCLUDE USING gist | ||
( group_id WITH =, | ||
daterange(start_date, due_date, '[]') WITH && | ||
) | ||
WHERE (group_id IS NOT NULL) | ||
SQL | ||
end | ||
|
||
def down | ||
execute <<~SQL | ||
ALTER TABLE sprints | ||
DROP CONSTRAINT IF EXISTS iteration_start_and_due_daterange_project_id_constraint | ||
SQL | ||
|
||
execute <<~SQL | ||
ALTER TABLE sprints | ||
DROP CONSTRAINT IF EXISTS iteration_start_and_due_daterange_group_id_constraint | ||
SQL | ||
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
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 |
---|---|---|
|
@@ -172,6 +172,7 @@ Example response: | |
"avatar_url": "https://www.gravatar.com/avatar/c2525a7f58ae3776070e44c106c48e15?s=80&d=identicon", | ||
"web_url": "http://192.168.1.8:3000/root", | ||
"access_level": 30, | ||
"email": "[email protected]", | ||
"expires_at": null, | ||
"group_saml_identity": null | ||
} | ||
|
@@ -209,6 +210,7 @@ Example response: | |
"avatar_url": "https://www.gravatar.com/avatar/c2525a7f58ae3776070e44c106c48e15?s=80&d=identicon", | ||
"web_url": "http://192.168.1.8:3000/root", | ||
"access_level": 30, | ||
"email": "[email protected]", | ||
"expires_at": null, | ||
"group_saml_identity": null | ||
} | ||
|
@@ -247,6 +249,7 @@ Example response: | |
"web_url": "http://192.168.1.8:3000/root", | ||
"expires_at": "2012-10-22T14:13:35Z", | ||
"access_level": 30, | ||
"email": "[email protected]", | ||
"group_saml_identity": null | ||
} | ||
``` | ||
|
@@ -284,6 +287,7 @@ Example response: | |
"web_url": "http://192.168.1.8:3000/root", | ||
"expires_at": "2012-10-22T14:13:35Z", | ||
"access_level": 40, | ||
"email": "[email protected]", | ||
"group_saml_identity": null | ||
} | ||
``` | ||
|
@@ -320,6 +324,7 @@ Example response: | |
"web_url": "http://192.168.1.8:3000/root", | ||
"expires_at": "2012-10-22T14:13:35Z", | ||
"access_level": 40, | ||
"email": "[email protected]", | ||
"override": true | ||
} | ||
``` | ||
|
@@ -356,6 +361,7 @@ Example response: | |
"web_url": "http://192.168.1.8:3000/root", | ||
"expires_at": "2012-10-22T14:13:35Z", | ||
"access_level": 40, | ||
"email": "[email protected]", | ||
"override": false | ||
} | ||
``` | ||
|
@@ -383,3 +389,9 @@ curl --request DELETE --header "PRIVATE-TOKEN: <your_access_token>" "https://git | |
## Give a group access to a project | ||
|
||
See [share project with group](projects.md#share-project-with-group) | ||
|
||
## Limitations | ||
|
||
The `group_saml_identity` attribute is only visible to a group owner for [SSO enabled groups](../user/group/saml_sso/index.md). | ||
|
||
The `email` attribute is only visible to a group owner who manages the user through [Group Managed Accounts](../user/group/saml_sso/group_managed_accounts.md). |
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
Oops, something went wrong.