Skip to content
Snippets Groups Projects

Add blob and blob_viewer fields to graphql snippet type

Merged Francisco Javier López requested to merge fj-add-graphql-blob-viewer-to-snippets into master
All threads resolved!

What does this MR do?

This MR adds the blob and blob_viewer fields to GraphQL snippet type. We will use that later in the snippet Vue refactor.

Does this MR meet the acceptance criteria?

Conformity

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • added feature label just now

    I added this because bot complains about missing throughput label and because this adds a new field to API, I think feature is a good fit.

  • Jan Provaznik approved this merge request

    approved this merge request

  • Thanks @fjsanpedro, LGTM :thumbsup: (one nit about changelog), please assign to a maintainer then (I think this was first review, right?).

  • Jan Provaznik assigned to @fjsanpedro and unassigned @jprovaznik

    assigned to @fjsanpedro and unassigned @jprovaznik

  • Francisco Javier López resolved all threads

    resolved all threads

  • added 203 commits

    Compare with previous version

  • Thanks @jprovaznik for the review!. I addressed the comment.

    Yes, this was the first round of review. @reprazent do you mind to take the maintainer review?

  • assigned to @reprazent and unassigned @fjsanpedro

    • Resolved by Francisco Javier López

      @fjsanpedro I understand this is targeted at us as the primary consumer. But I'm having a bit of a hard time understanding how this feature is going to work for us in vue.

      Don't we want a way for the consumers to request the blob's content, perhaps with a description of how to render it.

      The BlobViewerType currently includes a bunch of internal information that I don't understand how the client will use for the vue refactor. Could you perhaps link me to the issue where this was discussed with frontend?

  • assigned to @fjsanpedro and unassigned @reprazent

  • added 1 commit

    • dfbacb67 - Add blob viewer field to graphql snippet type

    Compare with previous version

  • @reprazent I addressed your comments. The only thing left is the concern about users. If there were some short internal Graphql API this endpoint would be perfect for it. Nevertheless, we don't have it, we need this in order to avoid duplicities in FE (big ones in this case), and, INMHO, since it's GraphQL and we don't send all the information at once, I believe we're ok adding this endpoint. If any client other than us use it, then they won't be able to do much with it.

  • assigned to @reprazent and unassigned @fjsanpedro

  • added 1 commit

    • 6feaf1ec - Add blob viewer field to graphql snippet type

    Compare with previous version

  • @fjsanpedro I understand better now. It's just not clear right now how the frontend will actually get to the content of a snippet. What do you think of my suggestion in !22960 (comment 272659984)

    I'm fine with waiting until the frontend requests that as well, but then maybe we should only expose content_html correctly for now :wink:.

  • assigned to @fjsanpedro and unassigned @reprazent

  • added 1 commit

    Compare with previous version

  • Francisco Javier López resolved all threads

    resolved all threads

  • added 1 commit

    Compare with previous version

  • Francisco Javier López changed title from Add blob viewer field to graphql snippet type to Add blob and blob_viewer fields to graphql snippet type

    changed title from Add blob viewer field to graphql snippet type to Add blob and blob_viewer fields to graphql snippet type

  • Francisco Javier López changed the description

    changed the description

  • added 1 commit

    • 08bdfe4b - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • added 484 commits

    Compare with previous version

  • added 1 commit

    • 9e6e2d17 - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • added 1 commit

    • 5af46477 - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • added 144 commits

    Compare with previous version

  • changed milestone to %12.8

  • @reprazent what do you think of the changes made? I added the blob type and the blob_viewer is dependant of that type.

  • assigned to @reprazent and unassigned @fjsanpedro

  • @fjsanpedro Thank you, I think it makes more sense like this :pray:.

    Left 2 questions.

  • assigned to @fjsanpedro and unassigned @reprazent

  • added 1 commit

    • fbd3361b - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • added 135 commits

    Compare with previous version

  • mentioned in issue #32292 (closed)

  • added 1 commit

    • 5a6c9429 - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • added 1 commit

    • f34fc09e - Add blob and blob_viewer fields to graphql snippet type

    Compare with previous version

  • @reprazent one more (last) round? :blush: :fingers_crossed:

  • assigned to @reprazent and unassigned @fjsanpedro

  • Bob Van Landuyt resolved all threads

    resolved all threads

  • Bob Van Landuyt approved this merge request

    approved this merge request

  • Thanks @fjsanpedro. I think this is a good place to start now :smile:.

  • Bob Van Landuyt mentioned in commit 9a17ecc5

    mentioned in commit 9a17ecc5

  • Thanks @reprazent for the insightful review!!

  • 🤖 GitLab Bot 🤖 changed the description

    changed the description

  • added Category:Source Code Management snippets labels and removed 1 deleted label

  • Please register or sign in to reply
    Loading