Skip to content
代码片段 群组 项目
提交 f431f18e 编辑于 作者: Mikołaj Wawrzyniak's avatar Mikołaj Wawrzyniak
浏览文件

Merge branch 'cat-fix-trailing-slash-defaults' into 'master'

Change trailing slash from constraints to default for insights routes

See merge request gitlab-org/gitlab!73593
No related branches found
No related tags found
无相关合并请求
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
resource :issues_analytics, only: [:show] resource :issues_analytics, only: [:show]
resource :insights, only: [:show], trailing_slash: true do resource :insights, only: [:show], defaults: { trailing_slash: true } do
collection do collection do
post :query post :query
end end
......
...@@ -154,7 +154,7 @@ ...@@ -154,7 +154,7 @@
post '/restore' => '/projects#restore', as: :restore post '/restore' => '/projects#restore', as: :restore
resource :insights, only: [:show], trailing_slash: true do resource :insights, only: [:show], defaults: { trailing_slash: true } do
collection do collection do
post :query post :query
end end
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
let(:query_params) { { type: 'bar', query: { issuable_type: 'issue', collection_labels: ['bug'] }, projects: projects_params } } let(:query_params) { { type: 'bar', query: { issuable_type: 'issue', collection_labels: ['bug'] }, projects: projects_params } }
let(:projects_params) { { only: [project.id, project.full_path] } } let(:projects_params) { { only: [project.id, project.full_path] } }
let(:params) { { trailing_slash: true } } let(:params) { { group_id: parent_group } }
before do before do
stub_licensed_features(insights: true) stub_licensed_features(insights: true)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
let(:query_params) { { type: 'bar', query: { issuable_type: 'issue', collection_labels: ['bug'] }, projects: projects_params } } let(:query_params) { { type: 'bar', query: { issuable_type: 'issue', collection_labels: ['bug'] }, projects: projects_params } }
let(:projects_params) { { only: [project.id, project.full_path] } } let(:projects_params) { { only: [project.id, project.full_path] } }
let(:params) { { trailing_slash: true, project_id: project, namespace_id: group } } let(:params) { { project_id: project, namespace_id: group } }
before do before do
stub_licensed_features(insights: true) stub_licensed_features(insights: true)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册