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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
cebee31a
Commit
cebee31a
authored
Feb 04, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
7ec26943
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
63 additions
and
98 deletions
+63
-98
app/assets/javascripts/ide/components/commit_sidebar/form.vue
...assets/javascripts/ide/components/commit_sidebar/form.vue
+0
-1
app/controllers/registrations_controller.rb
app/controllers/registrations_controller.rb
+1
-1
app/models/repository.rb
app/models/repository.rb
+0
-4
changelogs/unreleased/29077-remove-two_step_rebase-feature-flag.yml
.../unreleased/29077-remove-two_step_rebase-feature-flag.yml
+5
-0
doc/api/group_boards.md
doc/api/group_boards.md
+17
-8
doc/integration/img/jira_dev_panel_jira_setup_1-1.png
doc/integration/img/jira_dev_panel_jira_setup_1-1.png
+0
-0
doc/integration/jira_development_panel.md
doc/integration/jira_development_panel.md
+2
-3
spec/models/repository_spec.rb
spec/models/repository_spec.rb
+37
-58
spec/services/merge_requests/rebase_service_spec.rb
spec/services/merge_requests/rebase_service_spec.rb
+1
-23
No files found.
app/assets/javascripts/ide/components/commit_sidebar/form.vue
View file @
cebee31a
...
@@ -102,7 +102,6 @@ export default {
...
@@ -102,7 +102,6 @@ export default {
this
.
componentHeight
=
null
;
this
.
componentHeight
=
null
;
},
},
},
},
activityBarViews
,
};
};
</
script
>
</
script
>
...
...
app/controllers/registrations_controller.rb
View file @
cebee31a
...
@@ -35,7 +35,7 @@ class RegistrationsController < Devise::RegistrationsController
...
@@ -35,7 +35,7 @@ class RegistrationsController < Devise::RegistrationsController
end
end
# Do not show the signed_up notice message when the signup_flow experiment is enabled.
# Do not show the signed_up notice message when the signup_flow experiment is enabled.
# Instead, show it after succesfully updating the role.
# Instead, show it after succes
s
fully updating the role.
flash
[
:notice
]
=
nil
if
experiment_enabled?
(
:signup_flow
)
flash
[
:notice
]
=
nil
if
experiment_enabled?
(
:signup_flow
)
rescue
Gitlab
::
Access
::
AccessDeniedError
rescue
Gitlab
::
Access
::
AccessDeniedError
redirect_to
(
new_user_session_path
)
redirect_to
(
new_user_session_path
)
...
...
app/models/repository.rb
View file @
cebee31a
...
@@ -1091,10 +1091,6 @@ class Repository
...
@@ -1091,10 +1091,6 @@ class Repository
end
end
def
rebase
(
user
,
merge_request
,
skip_ci:
false
)
def
rebase
(
user
,
merge_request
,
skip_ci:
false
)
if
Feature
.
disabled?
(
:two_step_rebase
,
default_enabled:
true
)
return
rebase_deprecated
(
user
,
merge_request
)
end
push_options
=
[]
push_options
=
[]
push_options
<<
Gitlab
::
PushOptions
::
CI_SKIP
if
skip_ci
push_options
<<
Gitlab
::
PushOptions
::
CI_SKIP
if
skip_ci
...
...
changelogs/unreleased/29077-remove-two_step_rebase-feature-flag.yml
0 → 100644
View file @
cebee31a
---
title
:
Update rebasing to use the new two-phase Gitaly Rebase RPC
merge_request
:
23546
author
:
type
:
changed
doc/api/group_boards.md
View file @
cebee31a
...
@@ -484,20 +484,29 @@ POST /groups/:id/boards/:board_id/lists
...
@@ -484,20 +484,29 @@ POST /groups/:id/boards/:board_id/lists
|
`label_id`
| integer | yes | The ID of a label |
|
`label_id`
| integer | yes | The ID of a label |
```
shell
```
shell
curl
--request
POST
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/groups/
5/boards/1/lists?label_id
=
5
curl
--request
POST
--header
"PRIVATE-TOKEN: <your_access_token>"
https://gitlab.example.com/api/v4/groups/
4/boards/12/lists?milestone_id
=
7
```
```
Example response:
Example response:
```
json
```
json
{
{
"id"
:
1
,
"id"
:
9
,
"label"
:
{
"label"
:
null
,
"name"
:
"Testing"
,
"position"
:
0
,
"color"
:
"#F0AD4E"
,
"milestone"
:
{
"description"
:
null
"id"
:
7
,
},
"iid"
:
3
,
"position"
:
1
"group_id"
:
12
,
"title"
:
"Milestone with due date"
,
"description"
:
""
,
"state"
:
"active"
,
"created_at"
:
"2017-09-03T07:16:28.596Z"
,
"updated_at"
:
"2017-09-03T07:16:49.521Z"
,
"due_date"
:
null
,
"start_date"
:
null
,
"web_url"
:
"https://gitlab.example.com/groups/issue-reproduce/-/milestones/3"
}
}
}
```
```
...
...
doc/integration/img/jira_dev_panel_jira_setup_1-1.png
0 → 100644
View file @
cebee31a
44.8 KB
doc/integration/jira_development_panel.md
View file @
cebee31a
...
@@ -65,11 +65,10 @@ There are no special requirements if you are using GitLab.com.
...
@@ -65,11 +65,10 @@ There are no special requirements if you are using GitLab.com.
## Jira Configuration
## Jira Configuration
1.
In Jira, from the gear menu at the top right, go to
`Applications`
. Navigate to
`DVCS accounts`
1.
In Jira, go to
**Jira Settings > Applications > DVCS accounts**
, then click
**Link GitHub Enterprise account**
to start creating a new integration.
from the left navigation menu. Click
`Link GitHub account`
to start creating a new integration.
(We are pretending to be GitHub in this integration until there is further platform support from Jira.)
(We are pretending to be GitHub in this integration until there is further platform support from Jira.)
!
[
Jira
DVCS from Dashboard
](
img/jira_dev_panel_jira_setup_
1.png
)
!
[
Jira
Settings
](
img/jira_dev_panel_jira_setup_1-
1.png
)
1.
Complete the form
1.
Complete the form
...
...
spec/models/repository_spec.rb
View file @
cebee31a
...
@@ -1618,11 +1618,6 @@ describe Repository do
...
@@ -1618,11 +1618,6 @@ describe Repository do
end
end
end
end
context
'when two_step_rebase feature is enabled'
do
before
do
stub_feature_flags
(
two_step_rebase:
true
)
end
it_behaves_like
'a method that can rebase successfully'
it_behaves_like
'a method that can rebase successfully'
it
'executes the new Gitaly RPC'
do
it
'executes the new Gitaly RPC'
do
...
@@ -1679,22 +1674,6 @@ describe Repository do
...
@@ -1679,22 +1674,6 @@ describe Repository do
end
end
end
end
context
'when two_step_rebase feature is disabled'
do
before
do
stub_feature_flags
(
two_step_rebase:
false
)
end
it_behaves_like
'a method that can rebase successfully'
it
'executes the deprecated Gitaly RPC'
do
expect_any_instance_of
(
Gitlab
::
GitalyClient
::
OperationService
).
to
receive
(
:user_rebase
)
expect_any_instance_of
(
Gitlab
::
GitalyClient
::
OperationService
).
not_to
receive
(
:rebase
)
repository
.
rebase
(
user
,
merge_request
)
end
end
end
describe
'#revert'
do
describe
'#revert'
do
let
(
:new_image_commit
)
{
repository
.
commit
(
'33f3729a45c02fc67d00adb1b8bca394b0e761d9'
)
}
let
(
:new_image_commit
)
{
repository
.
commit
(
'33f3729a45c02fc67d00adb1b8bca394b0e761d9'
)
}
let
(
:update_image_commit
)
{
repository
.
commit
(
'2f63565e7aac07bcdadb654e253078b727143ec4'
)
}
let
(
:update_image_commit
)
{
repository
.
commit
(
'2f63565e7aac07bcdadb654e253078b727143ec4'
)
}
...
...
spec/services/merge_requests/rebase_service_spec.rb
View file @
cebee31a
...
@@ -71,14 +71,6 @@ describe MergeRequests::RebaseService do
...
@@ -71,14 +71,6 @@ describe MergeRequests::RebaseService do
it_behaves_like
'sequence of failure and success'
it_behaves_like
'sequence of failure and success'
context
'with deprecated step rebase feature'
do
before
do
stub_feature_flags
(
two_step_rebase:
false
)
end
it_behaves_like
'sequence of failure and success'
end
context
'when unexpected error occurs'
do
context
'when unexpected error occurs'
do
before
do
before
do
allow
(
repository
).
to
receive
(
:gitaly_operation_client
).
and_raise
(
'Something went wrong'
)
allow
(
repository
).
to
receive
(
:gitaly_operation_client
).
and_raise
(
'Something went wrong'
)
...
@@ -140,21 +132,7 @@ describe MergeRequests::RebaseService do
...
@@ -140,21 +132,7 @@ describe MergeRequests::RebaseService do
end
end
end
end
context
'when the two_step_rebase feature is enabled'
do
before
do
stub_feature_flags
(
two_step_rebase:
true
)
end
it_behaves_like
'a service that can execute a successful rebase'
end
context
'when the two_step_rebase feature is disabled'
do
before
do
stub_feature_flags
(
two_step_rebase:
false
)
end
it_behaves_like
'a service that can execute a successful rebase'
it_behaves_like
'a service that can execute a successful rebase'
end
context
'when skip_ci flag is set'
do
context
'when skip_ci flag is set'
do
let
(
:skip_ci
)
{
true
}
let
(
:skip_ci
)
{
true
}
...
...
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