Commit Graph

15 Commits

Author SHA1 Message Date
GitLab Bot e804afddbf Add latest changes from gitlab-org/gitlab@master 2022-02-28 18:14:03 +00:00
GitLab Bot 4d3bbc4990 Add latest changes from gitlab-org/gitlab@master 2022-01-24 12:10:54 +00:00
GitLab Bot 8e0dafbb66 Add latest changes from gitlab-org/gitlab@master 2021-07-22 09:08:22 +00:00
GitLab Bot f304336f5e Add latest changes from gitlab-org/gitlab@master 2021-05-19 12:10:33 +00:00
GitLab Bot 346c2ebb5a Add latest changes from gitlab-org/gitlab@master 2021-05-18 15:10:46 +00:00
GitLab Bot 65e4fa4ae0 Add latest changes from gitlab-org/gitlab@master 2021-02-19 09:10:35 +00:00
GitLab Bot 4046c3447e Add latest changes from gitlab-org/gitlab@master 2021-02-05 15:09:28 +00:00
GitLab Bot ec18750aa8 Add latest changes from gitlab-org/gitlab@master 2020-10-05 18:08:51 +00:00
GitLab Bot 9caed104bc Add latest changes from gitlab-org/gitlab@master 2019-12-11 03:07:31 +00:00
GitLab Bot 3fe3436877 Add latest changes from gitlab-org/gitlab@master 2019-11-15 06:06:13 +00:00
GitLab Bot 0be510a49f Add latest changes from gitlab-org/gitlab@master 2019-10-31 12:06:26 +00:00
GitLab Bot b7dfe2ae40 Add latest changes from gitlab-org/gitlab@master 2019-09-13 13:26:31 +00:00
Bob Van Landuyt 703d0246ff Add authorize to LabelType and NamespaceType
This also disables the cop with a reasoning in types where appropriate
2019-06-21 13:00:50 +02:00
Bob Van Landuyt 406808583c Render GFM html in GraphQL
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`.
2019-06-20 08:02:33 +00:00
Phil Hughes 50e21a89a0
Suggests issues when typing title
This suggests possibly related issues when the user types a title.

This uses GraphQL to allow the frontend to request the exact
data that is requires. We also get free caching through the Vue Apollo
plugin.

With this we can include the ability to import .graphql files in JS
and Vue files.
Also we now have the Vue test utils library to make testing
Vue components easier.

Closes #22071
2018-11-27 15:10:40 +00:00