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
a3ac5247
Commit
a3ac5247
authored
Apr 08, 2022
by
Pedro Pombeiro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GraphQL: Add alpha deprecation reason
parent
9f1bdb0a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
lib/gitlab/graphql/deprecation.rb
lib/gitlab/graphql/deprecation.rb
+1
-1
spec/support/shared_examples/graphql/types/gitlab_style_deprecations_shared_examples.rb
...raphql/types/gitlab_style_deprecations_shared_examples.rb
+3
-3
No files found.
lib/gitlab/graphql/deprecation.rb
View file @
a3ac5247
...
...
@@ -5,7 +5,7 @@ module Gitlab
class
Deprecation
REASONS
=
{
renamed:
'This was renamed.'
,
discouraged:
'Use of this is not recommended
.'
alpha:
'This feature is in Alpha, and can be removed or changed at any point
.'
}.
freeze
include
ActiveModel
::
Validations
...
...
spec/support/shared_examples/graphql/types/gitlab_style_deprecations_shared_examples.rb
View file @
a3ac5247
...
...
@@ -62,9 +62,9 @@ RSpec.shared_examples 'Gitlab-style deprecations' do
expect
(
deprecable
.
deprecation_reason
).
to
include
'This was renamed.'
end
it
'supports named reasons:
discouraged
'
do
deprecable
=
subject
(
deprecated:
{
milestone:
'1.10'
,
reason: :
discouraged
})
it
'supports named reasons:
alpha
'
do
deprecable
=
subject
(
deprecated:
{
milestone:
'1.10'
,
reason: :
alpha
})
expect
(
deprecable
.
deprecation_reason
).
to
include
'
Use of this is not recommended.
'
expect
(
deprecable
.
deprecation_reason
).
to
include
'
This feature is in Alpha
'
end
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