-
由 Luke Duncalfe 创作于
The `Graphql/GIDExpectedType` cop enforces that we pass an `expected_type:` param when calling `Gitlab.object_from_id`, but our Global IDs validate that the object resolved from a Global ID matches the model which does the same check as the :expected_type param. - https://gitlab.com/gitlab-org/gitlab/-/blob/45b3c596ef8b181bc893bd3b71613edf66064936/app/graphql/types/global_id_type.rb#L98 - https://gitlab.com/gitlab-org/gitlab/-/blob/ac2116a0abbf98019145cbffa0fbe569c7e2f978/app/graphql/gitlab_schema.rb#L128 https://gitlab.com/gitlab-org/gitlab/-/issues/417093
由 Luke Duncalfe 创作于The `Graphql/GIDExpectedType` cop enforces that we pass an `expected_type:` param when calling `Gitlab.object_from_id`, but our Global IDs validate that the object resolved from a Global ID matches the model which does the same check as the :expected_type param. - https://gitlab.com/gitlab-org/gitlab/-/blob/45b3c596ef8b181bc893bd3b71613edf66064936/app/graphql/types/global_id_type.rb#L98 - https://gitlab.com/gitlab-org/gitlab/-/blob/ac2116a0abbf98019145cbffa0fbe569c7e2f978/app/graphql/gitlab_schema.rb#L128 https://gitlab.com/gitlab-org/gitlab/-/issues/417093
代码所有者