Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-08-26Replace echo function with a resolverBrett Walker
The `GraphQL::Function` has been deprecated in favor of resolvers.
2019-06-21Add authorize to LabelType and NamespaceTypeBob Van Landuyt
This also disables the cop with a reasoning in types where appropriate
2019-06-03Add Namespace and ProjectStatistics to GraphQL APIAlessio Caiazza
We can query namespaces, and nested projects. Projects now exposes statistics
2019-04-23Basic GraphQL for a groupBrett Walker
Add new query for Groups, with new GroupType and NamespaceType
2019-04-03GraphQL Type authorizationLuke Duncalfe
Enables authorizations to be defined on GraphQL Types. module Types class ProjectType < BaseObject authorize :read_project end end If a field has authorizations defined on it, and the return type of the field also has authorizations defined on it. then all of the combined permissions in the authorizations will be checked and must pass. Connection fields are checked by "digging" to find the type class of the "node" field in the expected location of edges->node. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54417
2019-03-05Add metadata about the GitLab server to GraphQLNick Thomas
2019-02-26Improve GraphQL Authorization DSLLuke Duncalfe
Previously GraphQL field authorization happened like this: class ProjectType field :my_field, MyFieldType do authorize :permission end end This change allowed us to authorize like this instead: class ProjectType field :my_field, MyFieldType, authorize: :permission end A new initializer registers the `authorize` metadata keyword on GraphQL Schema Objects and Fields, and we can collect this data within the context of Instrumentation like this: field.metadata[:authorize] The previous functionality of authorize is still being used for mutations, as the #authorize method here is called at during the code that executes during the mutation, rather than when a field resolves. https://gitlab.com/gitlab-org/gitlab-ce/issues/57828
2018-09-11Enable frozen string in app/graphql + app/findersgfyoung
Partially addresses #47424.
2018-06-15Allow querying a single MR within a projectBob Van Landuyt
This allows the user to get a single MR nested in a GraphQL project query. Since we need the full path and the iid anyway, this makes more sense than having a root query that needs the full path as well.
2018-06-06Initial setup GraphQL using graphql-ruby 1.8Bob Van Landuyt
- All definitions have been replaced by classes: http://graphql-ruby.org/schema/class_based_api.html - Authorization & Presentation have been refactored to work in the class based system - Loaders have been replaced by resolvers - Times are now coersed as ISO 8601
2018-06-05Add a minimal GraphQL APINick Thomas