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
0c5d276a
Commit
0c5d276a
authored
Mar 12, 2021
by
Justin Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove backend usage of jira_issues_list
Remove from views and passing the feature flag to the frontend.
parent
e705da85
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
29 deletions
+7
-29
ee/app/controllers/projects/integrations/jira/issues_controller.rb
...ntrollers/projects/integrations/jira/issues_controller.rb
+0
-4
ee/app/views/projects/integrations/jira/issues/_nav_btns.html.haml
...ews/projects/integrations/jira/issues/_nav_btns.html.haml
+0
-4
ee/app/views/projects/integrations/jira/issues/index.html.haml
...p/views/projects/integrations/jira/issues/index.html.haml
+7
-20
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
+0
-1
No files found.
ee/app/controllers/projects/integrations/jira/issues_controller.rb
View file @
0c5d276a
...
...
@@ -15,10 +15,6 @@ module Projects
before_action
:check_feature_enabled!
before_action
:check_issues_show_enabled!
,
only: :show
before_action
do
push_frontend_feature_flag
(
:jira_issues_list
,
project
,
type: :development
)
end
rescue_from
::
Projects
::
Integrations
::
Jira
::
IssuesFinder
::
IntegrationError
,
with: :render_integration_error
rescue_from
::
Projects
::
Integrations
::
Jira
::
IssuesFinder
::
RequestError
,
with: :render_request_error
...
...
ee/app/views/projects/integrations/jira/issues/_nav_btns.html.haml
deleted
100644 → 0
View file @
e705da85
.nav-controls.issues-nav-controls
=
link_to
@project
.
external_issue_tracker
.
new_issue_url
,
class:
'btn gl-button gl-align-self-start'
,
target:
'_blank'
,
rel:
'noopener noreferrer'
do
=
_
(
'Create new issue in Jira'
)
=
sprite_icon
(
'external-link'
,
css_class:
'gl-ml-1'
)
ee/app/views/projects/integrations/jira/issues/index.html.haml
View file @
0c5d276a
-
page_title
_
(
'Jira Issues'
)
-
add_page_specific_style
'page_bundles/issues_list'
-
if
Feature
.
enabled?
(
:jira_issues_list
,
@project
,
type: :development
)
#js-jira-issues-list
{
data:
{
issues_fetch_path:
project_integrations_jira_issues_path
(
@project
,
format: :json
),
page:
params
[
:page
],
initial_state:
params
[
:state
],
initial_sort_by:
params
[
:sort
],
project_full_path:
@project
.
full_path
,
issue_create_url:
@project
.
external_issue_tracker
.
new_issue_url
,
empty_state_path:
image_path
(
'illustrations/issues.svg'
)
}
}
-
else
.top-area.gl-border-b-0.gl-mt-6
=
render
'shared/issuable/nav'
,
type: :issues
,
display_count:
false
=
render
'projects/integrations/jira/issues/nav_btns'
.js-issuables-list
{
data:
{
endpoint:
project_integrations_jira_issues_path
(
@project
,
format: :json
),
'can-bulk-edit'
:
false
,
'empty-state-meta'
:
{
svg_path:
image_path
(
'illustrations/issues.svg'
)
},
'sort-key'
:
@sort
,
type:
'jira'
,
'project-path'
:
@project
.
full_path
,
'scoped-labels-available'
:
scoped_labels_available?
(
@project
).
to_json
}
}
#js-jira-issues-list
{
data:
{
issues_fetch_path:
project_integrations_jira_issues_path
(
@project
,
format: :json
),
page:
params
[
:page
],
initial_state:
params
[
:state
],
initial_sort_by:
params
[
:sort
],
project_full_path:
@project
.
full_path
,
issue_create_url:
@project
.
external_issue_tracker
.
new_issue_url
,
empty_state_path:
image_path
(
'illustrations/issues.svg'
)
}
}
ee/spec/features/integrations/jira/jira_issues_list_spec.rb
View file @
0c5d276a
...
...
@@ -9,7 +9,6 @@ RSpec.describe 'Jira issues list' do
before
do
stub_licensed_features
(
jira_issues_integration:
true
)
stub_feature_flags
(
jira_issues_list:
false
)
project
.
add_user
(
user
,
:developer
)
sign_in
(
user
)
end
...
...
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