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-12-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-12-13Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-25Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-25Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-15Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-14Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-11-06Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-30Merge dev.gitlab.org@master into GitLab.com@masterYorick Peterse
2019-10-29Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-10-23Allow tests to ignore recursioncharlieablett
2019-10-23Check for recursion and fail if too recursivecharlieablett
- List all overly-recursive fields - Reduce recursion threshold to 2 - Add test for not-recursive-enough query - Use reusable methods in tests - Add changelog - Set changeable acceptable recursion level - Add error check test helpers
2019-10-16Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-18Add latest changes from gitlab-org/gitlab@masterGitLab Bot
2019-09-05Upgrade graphql gem to 1.9.10Brett Walker
- `edge_nodes` needs to get called on the object - added `include GlobalID::Identification` in a couple places - renamed `object` to `item` in spec due to conflict
2019-09-04Upgrade GraphQL gem to 1.8.17Brett Walker
- Due to https://github.com/exAspArk/batch-loader/pull/32, we changed BatchLoader.for into BatchLoader::GraphQL.for - since our results are wrapped in a BatchLoader::GraphQL, calling `sync` during authorization is required to get real object - `graphql` now has it's own authorization system. Our `authorized?` method conflicted and required renaming
2019-08-26Replace echo function with a resolverBrett Walker
The `GraphQL::Function` has been deprecated in favor of resolvers.
2019-08-23Expose namespace storage statistics with GraphQLAlessio Caiazza
Root namespaces have storage statistics. This commit allows namespace owners to get those stats via GraphQL queries like the following one { namespace(fullPath: "a_namespace_path") { rootStorageStatistics { storageSize repositorySize lfsObjectsSize buildArtifactsSize packagesSize wikiSize } } }
2019-07-17Added submodule links to Submodule type in GraphQL APIIgor
This is part of migration of Folder View to Vue
2019-07-11Improve Graphql DocsFelipe Artur
Adds more friendly docs for GraphQl implementation
2019-07-05Address reviewer commentscharlieablett
- Remove Gitaly call check for fields that have a constant complexity declared - Add associated test
2019-07-03Address reviewer commentscharlieablett
- Add 1 for all fields that call Gitaly (with resolvers or without) - Clarify comment regarding Gitaly call alert - Expose predicate `calls_gitaly?` instead of ivar
2019-07-03Wrap proc properly in gitaly call countscharlieablett
- Add `calls_gitaly: true` to some fields missing (hey, it works!) - Clarify proc wrapping - Add kwargs argument to `mount_mutation`
2019-07-03Alert if `calls_gitaly` declaration missingcharlieablett
- Move `calls_gitaly_check` to public - Add instrumentation for flagging missing CallsGitaly declarations - Wrap resolver proc in before-and-after Gitaly counts to get the net Gitaly call count for the resolver.
2019-07-03Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ceMarin Jankovski
2019-07-02Merge branch 'security-bvl-enforce-graphql-type-authorization' into 'master'Marin Jankovski
Fix type authorizations in GraphQL See merge request gitlab/gitlabhq!3170
2019-07-01Merge branch '9491-graphql-view-design-board-at-version-ce' into 'master'Nick Thomas
CE backport for "Show design boards at previous versions in GraphQL" See merge request gitlab-org/gitlab-ce!30151
2019-06-28Merge branch 'graphql-tree-last-commit' into 'master'Lin Jen-Shin
Added commit type to tree GraphQL type See merge request gitlab-org/gitlab-ce!29412
2019-06-28Added commit type to tree GraphQL typePhil Hughes
2019-06-28CE backport for changes in EE MR 14292Luke Duncalfe
EE MR https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14292 https://gitlab.com/gitlab-org/gitlab-ee/issues/9491
2019-06-28GraphQL mutations for add, remove and toggle emojiLuke Duncalfe
Adding new `AddAwardEmoji`, `RemoveAwardEmoji` and `ToggleAwardEmoji` GraphQL mutations. Adding new `#authorized_find_with_pre_checks!` and (unused, but for completeness `#authorized_find_with_post_checks!`) authorization methods. These allow us to perform an authorized find, and run our own additional checks before or after the authorization runs. https://gitlab.com/gitlab-org/gitlab-ce/issues/62826
2019-06-26Remove unused authorized_find methodLuke Duncalfe
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/29921#note_184713939
2019-06-26Sanity check for GraphQL authorized?Luke Duncalfe
Raise an exception if a developer calls any of the GraphQL authorization methods and a `authorize :permission` is missing from a mutation class. Previously `authorized?` would return `true` in this situation, which although technically is accurate is not what a developer is intending.
2019-06-21Enforce authorizations for non-nullable fieldsBob Van Landuyt
This makes sure we also enforce authorizations for non-nullable fields. We are defining our authorizations on the unwrapped types (Repository). But when a type like that is presented in a non-nullable field, it's type is different (Repository!). The non-nullable type would not have the authorization metadata. This makes sure we check the metadata on the unwrapped type for finding authorizations.
2019-06-20Render GFM html in GraphQLBob Van Landuyt
This adds a `markdown_field` to our types. Using this helper will render a model's markdown field using the existing `MarkupHelper` with the context of the GraphQL query available to the helper. Having the context available to the helper is needed for redacting links to resources that the current user is not allowed to see. Because rendering the HTML can cause queries, the complexity of a these fields is raised by 5 above the default. The markdown field helper can be used as follows: ``` markdown_field :note_html, null: false ``` This would generate a field that will render the markdown field `note` of the model. This could be overridden by adding the `method:` argument. Passing a symbol for the method name: ``` markdown_field :body_html, null: false, method: :note ``` It will have this description by default: > The GitLab Flavored Markdown rendering of `note` This could be overridden by passing a `description:` argument. The type of a `markdown_field` is always `GraphQL::STRING_TYPE`.
2019-06-11Rename `BatchCommitLoader` to `BatchLfsOidLoader`Bob Van Landuyt
Since we're not actually loading commits in that loader, but we're loading blobs with LFS oids in batch and returning only the oids.
2019-06-10Add LFS blob ID to GraphQL blob typePhil Hughes
2019-06-05Merge branch 'graphql-file-entry-url' into 'master'Nick Thomas
Add web_url to tree entry in GraphQL API See merge request gitlab-org/gitlab-ce!28646
2019-06-05Add web_url to tree entry in GraphQL APIPhil Hughes
2019-06-03Expose IDs in GraphQL as a GlobalIDBob Van Landuyt
This exposes all fields named `id` as GlobalIDs so they can be used across our entire GraphQL implementation. When the objects loaded are `ApplicationRecord`s. We'll use our existing batchloading to find them. Otherwise, we'll fall back to the default implementation of `GlobalID`: Calling the `.find` method on the class.
2019-06-03Add Namespace and ProjectStatistics to GraphQL APIAlessio Caiazza
We can query namespaces, and nested projects. Projects now exposes statistics
2019-05-31Apply reviewer feedbackcharlie ablett
- Comply doc with guidelines - Improve tests for readability and completeness - Separate out phases visually with newlines - Add `format_message` test - test readability - code and test structure/styling - static query analyzers - call `as_json` on `provided_variables` - add exception handling
2019-05-30Move complexity/depth to `final_value`charlieablett
Tidy tests according to reviewer comments. Move complexity and depth calls from `initial_value` to `final_value` Log variables as json
2019-05-30Call analyzers from LoggerAnalyzercharlieablett
- Add changelog file - Fix failing tests
2019-05-30Add GraphQL logging feature flagcharlieablett
2019-05-30Restructure complexity analyzercharlieablett
Remove instance variables for class re-use, test individual methods, use `monotonic_time`
2019-05-30Implement logger analyzercharlieablett
- Modify GraphqlLogger to subclass JsonLogger - Replace the single-line analyser with one that can log all the GraphQL query related information in one place. - Implement analyzer behavior with spec
2019-05-30New logfile for graphql queriescharlieablett
Specify dedicated logfile and logger class for GraphQL queries. Move complexity analyzer to a dedicated class.
2019-05-02Add opentracing integration for graphqlJan Provaznik
Extends existing graphql's tracer with opentracing measurements. Because it also adds Tracing::Graphql class (for opentracing), it also renames Graphql::Tracing class to Graphql::GenericTracing to minimize confusion with similar class names.
2019-04-23Check for all scalar typesBrett Walker
2019-04-18Only check abilities on rendered GraphQL nodesBob Van Landuyt
With this we only check abilities on the rendered edges of a GraphQL connection instead of all the nodes in it.