Commit 0400a0f3 authored by Alex Kalderimis's avatar Alex Kalderimis

Reviewer suggested changes

Including moving min chars override to Milestone
parent 117e2af1
...@@ -152,10 +152,6 @@ module Timebox ...@@ -152,10 +152,6 @@ module Timebox
def predefined?(timebox) def predefined?(timebox)
predefined_id?(timebox&.id) predefined_id?(timebox&.id)
end end
def min_chars_for_partial_matching
2
end
end end
## ##
......
...@@ -46,6 +46,10 @@ class Milestone < ApplicationRecord ...@@ -46,6 +46,10 @@ class Milestone < ApplicationRecord
state :active state :active
end end
def self.min_chars_for_partial_matching
2
end
def self.reference_prefix def self.reference_prefix
'%' '%'
end end
......
--- ---
title: Add filters to the milestones resolver title: Add filters on Milestone title in the GraphQL API
merge_request: 44208 merge_request: 44208
author: author:
type: changed type: changed
...@@ -52,7 +52,7 @@ RSpec.describe 'getting milestone listings nested in a project' do ...@@ -52,7 +52,7 @@ RSpec.describe 'getting milestone listings nested in a project' do
end end
shared_examples 'searching with parameters' do shared_examples 'searching with parameters' do
it 'finds the right mrs' do it 'finds the right milestones' do
post_graphql(query, current_user: current_user) post_graphql(query, current_user: current_user)
expect(results).to match_array(result_list(expected)) expect(results).to match_array(result_list(expected))
......
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