Skip to content
Snippets Groups Projects
  1. Sep 04, 2019
  2. Aug 26, 2019
  3. Aug 22, 2019
    • Alessio Caiazza's avatar
      Expose namespace storage statistics with GraphQL · 606a1d2d
      Alessio Caiazza authored and Mayra Cabrera's avatar Mayra Cabrera committed
      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
          }
        }
      }
      606a1d2d
  4. Aug 20, 2019
  5. Jul 25, 2019
  6. Jul 17, 2019
  7. Jul 11, 2019
  8. Jul 10, 2019
  9. Jul 04, 2019
  10. Jul 03, 2019
  11. Jun 28, 2019
  12. Jun 21, 2019
    • Bob Van Landuyt's avatar
      Enforce authorizations for non-nullable fields · 967cbd08
      Bob Van Landuyt authored
      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.
      967cbd08
    • Bob Van Landuyt's avatar
      Add authorize to LabelType and NamespaceType · 703d0246
      Bob Van Landuyt authored
      This also disables the cop with a reasoning in types where appropriate
      703d0246
  13. Jun 20, 2019
    • Bob Van Landuyt :neckbeard:'s avatar
      Render GFM html in GraphQL · 40680858
      Bob Van Landuyt :neckbeard: authored and Douwe Maan's avatar Douwe Maan committed
      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`.
      40680858
  14. Jun 15, 2019
    • Patrick Derichs's avatar
      Add task count and completed count to graphql types · 453a9b29
      Patrick Derichs authored
      Add specs for task completion status (graphql)
      
      Fix style issues
      
      Changed format of constants in spec
      
      Refactor specs to reduce creation of records
      
      Reduce parameters to merge request creation
      
      Use set's for project and user
      
      Move let's out of it_behaves_like block
      
      Fix description parameter
      
      Fix format of lets
      
      Use dig to get task completion status out of graphql response
      
      Modified rspec output
      
      Add changelog entry
      453a9b29
  15. Jun 14, 2019
  16. Jun 11, 2019
  17. Jun 10, 2019
  18. Jun 05, 2019
  19. Jun 04, 2019
  20. Jun 03, 2019
  21. May 31, 2019
  22. May 30, 2019
    • Charlie Ablett's avatar
      Implement logger analyzer · 2c011cb5
      Charlie Ablett authored
      - 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
      2c011cb5
  23. May 28, 2019
    • Phil Hughes's avatar
      Enables GraphQL batch requests · 11f85ae8
      Phil Hughes authored
      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.
      11f85ae8
  24. May 22, 2019
  25. May 20, 2019
Loading