-
- Downloads
Remove label issue and MR counts from default API responses
These counts significantly increase the load time for these requests. Users can now opt in to receiving the counts by setting `with_counts=true` in requests. This is a breaking change, but hopefully a fairly minor one.
Showing
- changelogs/unreleased/speed-up-labels-api.yml 5 additions, 0 deletionschangelogs/unreleased/speed-up-labels-api.yml
- doc/api/group_labels.md 5 additions, 4 deletionsdoc/api/group_labels.md
- doc/api/labels.md 5 additions, 4 deletionsdoc/api/labels.md
- lib/api/entities.rb 10 additions, 8 deletionslib/api/entities.rb
- lib/api/group_labels.rb 2 additions, 0 deletionslib/api/group_labels.rb
- lib/api/helpers/label_helpers.rb 5 additions, 1 deletionlib/api/helpers/label_helpers.rb
- lib/api/labels.rb 2 additions, 0 deletionslib/api/labels.rb
- spec/fixtures/api/schemas/public_api/v4/group_labels.json 0 additions, 19 deletionsspec/fixtures/api/schemas/public_api/v4/group_labels.json
- spec/fixtures/api/schemas/public_api/v4/labels/label.json 11 additions, 0 deletionsspec/fixtures/api/schemas/public_api/v4/labels/label.json
- spec/fixtures/api/schemas/public_api/v4/labels/label_with_counts.json 16 additions, 0 deletions...s/api/schemas/public_api/v4/labels/label_with_counts.json
- spec/fixtures/api/schemas/public_api/v4/labels/project_label.json 15 additions, 0 deletions...tures/api/schemas/public_api/v4/labels/project_label.json
- spec/fixtures/api/schemas/public_api/v4/labels/project_label_with_counts.json 9 additions, 0 deletions...hemas/public_api/v4/labels/project_label_with_counts.json
- spec/requests/api/group_labels_spec.rb 14 additions, 1 deletionspec/requests/api/group_labels_spec.rb
- spec/requests/api/labels_spec.rb 61 additions, 50 deletionsspec/requests/api/labels_spec.rb
Please register or sign in to comment