gitlab-labkit 5.4.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/labkit/fields.rb +7 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4e31d187a93588743bd73f3e6633799c640b49f42f7ff2cb79a024d23097f8c1
4
- data.tar.gz: 9bd85fc0aed5b6411e21571f4cd34a221f8c38b0ea333464b3d2c0733a4665c2
3
+ metadata.gz: 3fe9b7fbeed18b9aced46d0f50b8e0aeeb4442a164818ed00f581a39559a2203
4
+ data.tar.gz: 5362ebd8bd9d8f3cf598dd473be4a1078ed1b5eda9e11723c6bba35e5b5ad62c
5
5
  SHA512:
6
- metadata.gz: e671b39b7e62520e45883391344edd42a16d641940d0fd810908045007ee94d268b5fa27dbe87d9b7dea8e26daa9a58ef9b8f0aeebc304d254dd451e4d92e952
7
- data.tar.gz: df0df639dfcfb6a18a1ad2e2a0416de8f6902ce709010d06e309ec555055d5f4df50cc64b47aaa3696a33cf0b62fb89f52321047dcde1211d9c965feb7577985
6
+ metadata.gz: a8e09616bd24dc1e5b619ae05c426451ef0b1cb40305832dfd52b04e801cd2f490823cb45592e101469f3cee4edca5a4f6d2190ddcfbded59e0e1282fc5fe01a
7
+ data.tar.gz: 5103ce4264e6fca52740485de4c81e17feedeb31c493b2aaeda35a0ecdedbd47c043ec77a15371a1eb949a48c8341393c4fc09bee5458d958de83b195315def8
data/lib/labkit/fields.rb CHANGED
@@ -143,6 +143,12 @@ module Labkit
143
143
  # can be a non-integer value.
144
144
  GRAPHQL_COMPLEXITY_RAW = "graphql_complexity_raw"
145
145
 
146
+ # Number of nodes a GraphQL query returned across all its connection fields.
147
+ # The count is taken after authorization removes the nodes the user can't
148
+ # see. Nested connections add up. The value is 0 when the query selects no
149
+ # connection field.
150
+ GRAPHQL_CONNECTION_NODES = "graphql_connection_nodes"
151
+
146
152
  # Maps each field constant to its logging field variant version.
147
153
  # A version of 0 means the field is not yet assigned to any variant.
148
154
  VARIANT_VERSION = {
@@ -185,6 +191,7 @@ module Labkit
185
191
  GL_SENT_NOTIFICATION_ID => 0,
186
192
  ADDITIONAL_DETAILS => 0,
187
193
  GRAPHQL_COMPLEXITY_RAW => 0,
194
+ GRAPHQL_CONNECTION_NODES => 0,
188
195
  }.freeze
189
196
 
190
197
  # Get the constant name for a field value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitlab-labkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.4.0
4
+ version: 5.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Newdigate