summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/graphql_logger_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* Apply reviewer feedback59587-add-graphql-loggingcharlie ablett2019-05-311-6/+7
| | | | | | | | | | | | - 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
* Move complexity/depth to `final_value`charlieablett2019-05-301-2/+4
| | | | | | Tidy tests according to reviewer comments. Move complexity and depth calls from `initial_value` to `final_value` Log variables as json
* Call analyzers from LoggerAnalyzercharlieablett2019-05-301-0/+22
| | | | | - Add changelog file - Fix failing tests
* Implement logger analyzercharlieablett2019-05-301-9/+3
| | | | | | | - 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
* New logfile for graphql queriescharlieablett2019-05-301-0/+21
Specify dedicated logfile and logger class for GraphQL queries. Move complexity analyzer to a dedicated class.