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
def predefined?(timebox)
predefined_id?(timebox&.id)
end
def min_chars_for_partial_matching
2
end
end
##
......
......@@ -46,6 +46,10 @@ class Milestone < ApplicationRecord
state :active
end
def self.min_chars_for_partial_matching
2
end
def self.reference_prefix
'%'
end
......
---
title: Add filters to the milestones resolver
title: Add filters on Milestone title in the GraphQL API
merge_request: 44208
author:
type: changed
......@@ -52,7 +52,7 @@ RSpec.describe 'getting milestone listings nested in a project' do
end
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)
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