Commit Graph

39 Commits

Author SHA1 Message Date
GitLab Bot a24e628777 Add latest changes from gitlab-org/gitlab@master 2024-10-15 15:19:42 +00:00
GitLab Bot 0cd10fa56d Add latest changes from gitlab-org/gitlab@master 2024-07-08 09:25:20 +00:00
GitLab Bot 28bc811a3e Add latest changes from gitlab-org/gitlab@master 2024-05-07 06:10:18 +00:00
GitLab Bot d64d124d63 Add latest changes from gitlab-org/gitlab@master 2024-02-13 18:09:49 +00:00
GitLab Bot 3f29b140ab Add latest changes from gitlab-org/gitlab@master 2024-01-24 03:09:32 +00:00
GitLab Bot 611897b987 Add latest changes from gitlab-org/gitlab@master 2023-11-07 00:10:33 +00:00
GitLab Bot 91ca0550e0 Add latest changes from gitlab-org/gitlab@master 2023-10-18 12:10:46 +00:00
GitLab Bot 30acb0522a Add latest changes from gitlab-org/gitlab@master 2023-07-06 12:06:46 +00:00
GitLab Bot 83916cf0a2 Add latest changes from gitlab-org/gitlab@master 2023-02-03 12:09:13 +00:00
GitLab Bot 9c35027837 Add latest changes from gitlab-org/gitlab@master 2022-12-12 21:09:51 +00:00
GitLab Bot 68d5cc2d9d Add latest changes from gitlab-org/gitlab@master 2022-06-01 18:09:44 +00:00
GitLab Bot 616a16ea4d Add latest changes from gitlab-org/gitlab@master 2022-01-25 21:15:18 +00:00
GitLab Bot 37066217ce Add latest changes from gitlab-org/gitlab@master 2021-10-29 15:11:56 +00:00
GitLab Bot 2e1b10493f Add latest changes from gitlab-org/gitlab@master 2021-04-06 15:09:23 +00:00
GitLab Bot f986ce9ffa Add latest changes from gitlab-org/gitlab@master 2021-03-23 18:09:05 +00:00
GitLab Bot 895563036a Add latest changes from gitlab-org/gitlab@master 2020-10-02 03:08:28 +00:00
GitLab Bot fa7ac2663b Add latest changes from gitlab-org/gitlab@master 2020-06-24 06:09:01 +00:00
GitLab Bot a5650b86b5 Add latest changes from gitlab-org/gitlab@master 2020-05-13 21:08:55 +00:00
GitLab Bot 47ebeef912 Add latest changes from gitlab-org/gitlab@master 2020-03-11 00:09:09 +00:00
GitLab Bot b304a72312 Add latest changes from gitlab-org/gitlab@master 2020-02-17 15:09:01 +00:00
GitLab Bot 27a18afc7d Add latest changes from gitlab-org/gitlab@master 2020-02-04 00:09:04 +00:00
GitLab Bot 9d54184f30 Add latest changes from gitlab-org/gitlab@master 2020-01-02 21:07:38 +00:00
Yorick Peterse ad8eea3834
Merge dev.gitlab.org@master into GitLab.com@master 2019-10-30 15:22:45 +01:00
GitLab Bot abfafe3c57 Add latest changes from gitlab-org/gitlab@master 2019-10-29 00:06:10 +00:00
charlieablett 5be0a9fe4d Tweak test to insulate against magic number changes 2019-10-23 15:35:33 +13:00
charlieablett 32cdfb9535 Check for recursion and fail if too recursive
- 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-23 15:35:33 +13:00
Brett Walker ec2b4bb65d Upgrade graphql gem to 1.9.10
- `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-04 21:57:37 +00:00
Bob Van Landuyt ed503d51a3 Expose IDs in GraphQL as a GlobalID
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-03 21:59:25 +02:00
Sean McGivern 4e888212a1 Merge branch '59587-add-graphql-logging' into 'master'
Add logging to GraphQL

Closes #59587

See merge request gitlab-org/gitlab-ce!27885
2019-05-31 11:59:21 +00:00
charlie ablett 699532232c Apply reviewer feedback
- 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-31 19:57:02 +12:00
charlieablett 184a5120dc Call analyzers from LoggerAnalyzer
- Add changelog file
- Fix failing tests
2019-05-30 18:27:28 +12:00
charlieablett 2a10064167 Restructure complexity analyzer
Remove instance variables for class re-use, test individual methods,
use `monotonic_time`
2019-05-30 18:27:28 +12:00
charlieablett 1f37aed1c9 New logfile for graphql queries
Specify dedicated logfile and logger class for GraphQL queries. Move
complexity analyzer to a dedicated class.
2019-05-30 18:27:28 +12:00
Phil Hughes bcf01adaa0
Added spec for authenticating multiplex queries 2019-05-29 14:23:08 +01:00
Phil Hughes 11f85ae8c3 Enables GraphQL batch requests
Enabling GraphQL batch requests allows for multiple queries
to be sent in 1 request reducing the amount of requests
we send to the server.

Responses come come back in the same order as the queries were
provided.
2019-05-28 10:22:02 +02:00
Ken Ding f80f68d520 58404 - setup max depth for graphql
58404 - add change log


58404 - add spec


58404 - add more spec to test depth 2


58404 - fix spec


58404 - fix rubocop


58404 - refactor the code by Bob's advice


58404 - revert changes of all_graphql_fields_for


58404 - change text only


58404 - fix rspec according to gitlab's standard


58404 - revert previous spec


58404 - fix rubocop
2019-05-07 00:32:29 +09:30
Brett Walker 2c98d6eef1 Allow arrays to specify fields graphql_query_for 2019-04-11 11:32:13 -05:00
Brett Walker e86a2e7eb2 Increase GraphQL complexity
An IntrospectionQuery required more
complexity points.
2019-04-08 12:33:33 -05:00
Brett Walker f458c56107 Initial field and query complexity limits
It makes all Types::BaseField default to a complexity of 1.

Queries themselves now have limited complexity, scaled
to the type of user: no user, authenticated user, or an
admin user.
2019-04-04 08:39:30 -05:00