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
69673886
Commit
69673886
authored
Oct 09, 2020
by
Mario de la Ossa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix last two object_from_id usages
parent
73f40585
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/graphql/mutations/notes/create/note.rb
app/graphql/mutations/notes/create/note.rb
+1
-1
app/graphql/types/design_management/design_type.rb
app/graphql/types/design_management/design_type.rb
+1
-1
No files found.
app/graphql/mutations/notes/create/note.rb
View file @
69673886
...
...
@@ -17,7 +17,7 @@ module Mutations
discussion_id
=
nil
if
args
[
:discussion_id
]
discussion
=
GitlabSchema
.
object_from_id
(
args
[
:discussion_id
])
discussion
=
GitlabSchema
.
object_from_id
(
args
[
:discussion_id
]
,
expected_type:
::
Discussion
)
authorize_discussion!
(
discussion
)
discussion_id
=
discussion
.
id
...
...
app/graphql/types/design_management/design_type.rb
View file @
69673886
...
...
@@ -30,7 +30,7 @@ module Types
# most recent `Version` for an issue
Gitlab
::
SafeRequestStore
.
fetch
([
request_cache_base_key
,
'stateful_version'
,
object
.
issue_id
,
version_gid
])
do
if
version_gid
GitlabSchema
.
object_from_id
(
version_gid
)
&
.
sync
GitlabSchema
.
object_from_id
(
version_gid
,
expected_type:
::
DesignManagement
::
Version
)
&
.
sync
else
object
.
issue
.
design_versions
.
most_recent
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