Commit fc4d411f authored by Justin Ho's avatar Justin Ho

Remove backend for editing of Jira labels

Feature is will no longer be implemented
parent 83e98e05
...@@ -15,7 +15,6 @@ module Projects ...@@ -15,7 +15,6 @@ module Projects
before_action :check_feature_enabled! before_action :check_feature_enabled!
before_action only: :show do before_action only: :show do
push_frontend_feature_flag(:jira_issue_details_edit_status, project, default_enabled: :yaml) push_frontend_feature_flag(:jira_issue_details_edit_status, project, default_enabled: :yaml)
push_frontend_feature_flag(:jira_issue_details_edit_labels, project, default_enabled: :yaml)
end end
rescue_from ::Projects::Integrations::Jira::IssuesFinder::Error, with: :render_error rescue_from ::Projects::Integrations::Jira::IssuesFinder::Error, with: :render_error
...@@ -44,11 +43,6 @@ module Projects ...@@ -44,11 +43,6 @@ module Projects
end end
end end
def labels
# This implementation is just to mock the endpoint, to be implemented https://gitlab.com/gitlab-org/gitlab/-/issues/330778
render json: issue_json[:labels]
end
private private
def visitor_id def visitor_id
......
...@@ -53,7 +53,6 @@ module EE ...@@ -53,7 +53,6 @@ module EE
def jira_issues_show_data def jira_issues_show_data
{ {
issue_labels_path: labels_project_integrations_jira_issue_path(@project, params[:id]),
issues_show_path: project_integrations_jira_issue_path(@project, params[:id], format: :json), issues_show_path: project_integrations_jira_issue_path(@project, params[:id], format: :json),
issues_list_path: project_integrations_jira_issues_path(@project) issues_list_path: project_integrations_jira_issues_path(@project)
} }
......
...@@ -32,7 +32,6 @@ module Integrations ...@@ -32,7 +32,6 @@ module Integrations
expose :labels do |jira_issue| expose :labels do |jira_issue|
jira_issue.labels.map do |name| jira_issue.labels.map do |name|
{ {
id: name,
title: name, title: name,
name: name, name: name,
color: '#0052CC', color: '#0052CC',
......
...@@ -112,11 +112,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do ...@@ -112,11 +112,7 @@ constraints(::Constraints::ProjectUrlConstrainer.new) do
namespace :integrations do namespace :integrations do
namespace :jira do namespace :jira do
resources :issues, only: [:index, :show] do resources :issues, only: [:index, :show]
member do
get :labels
end
end
end end
namespace :zentao do namespace :zentao do
......
...@@ -102,7 +102,6 @@ RSpec.describe EE::IntegrationsHelper do ...@@ -102,7 +102,6 @@ RSpec.describe EE::IntegrationsHelper do
it 'includes Jira issues show data' do it 'includes Jira issues show data' do
is_expected.to include( is_expected.to include(
issue_labels_path: "/#{project.full_path}/-/integrations/jira/issues/FE-1/labels",
issues_show_path: "/#{project.full_path}/-/integrations/jira/issues/FE-1.json", issues_show_path: "/#{project.full_path}/-/integrations/jira/issues/FE-1.json",
issues_list_path: "/#{project.full_path}/-/integrations/jira/issues" issues_list_path: "/#{project.full_path}/-/integrations/jira/issues"
) )
......
...@@ -86,7 +86,6 @@ RSpec.describe Integrations::JiraSerializers::IssueDetailEntity do ...@@ -86,7 +86,6 @@ RSpec.describe Integrations::JiraSerializers::IssueDetailEntity do
state: 'closed', state: 'closed',
labels: [ labels: [
{ {
id: 'backend',
title: 'backend', title: 'backend',
name: 'backend', name: 'backend',
color: '#0052CC', color: '#0052CC',
......
...@@ -53,7 +53,6 @@ RSpec.describe Integrations::JiraSerializers::IssueEntity do ...@@ -53,7 +53,6 @@ RSpec.describe Integrations::JiraSerializers::IssueEntity do
status: 'To Do', status: 'To Do',
labels: [ labels: [
{ {
id: 'backend',
title: 'backend', title: 'backend',
name: 'backend', name: 'backend',
color: '#0052CC', color: '#0052CC',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment