Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d94ed2a4
Commit
d94ed2a4
authored
Feb 29, 2020
by
GitLab Bot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest changes from gitlab-org/gitlab@master
parent
e56fd471
Changes
38
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
38 changed files
with
191 additions
and
182 deletions
+191
-182
app/assets/javascripts/diffs/components/diff_table_cell.vue
app/assets/javascripts/diffs/components/diff_table_cell.vue
+1
-0
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+0
-4
changelogs/unreleased/202639.yml
changelogs/unreleased/202639.yml
+5
-0
changelogs/unreleased/sh-disable-line-in-marginalia.yml
changelogs/unreleased/sh-disable-line-in-marginalia.yml
+5
-0
config/initializers/0_marginalia.rb
config/initializers/0_marginalia.rb
+7
-1
doc/administration/troubleshooting/img/AzureAD-basic_SAML.png
...administration/troubleshooting/img/AzureAD-basic_SAML.png
+0
-0
doc/api/README.md
doc/api/README.md
+5
-5
doc/api/pipeline_triggers.md
doc/api/pipeline_triggers.md
+10
-10
doc/api/releases/links.md
doc/api/releases/links.md
+5
-5
doc/api/search.md
doc/api/search.md
+1
-1
doc/api/settings.md
doc/api/settings.md
+2
-2
doc/api/sidekiq_metrics.md
doc/api/sidekiq_metrics.md
+4
-4
doc/api/statistics.md
doc/api/statistics.md
+1
-1
doc/api/suggestions.md
doc/api/suggestions.md
+1
-1
doc/api/system_hooks.md
doc/api/system_hooks.md
+4
-4
doc/api/tags.md
doc/api/tags.md
+6
-6
doc/api/templates/dockerfiles.md
doc/api/templates/dockerfiles.md
+2
-2
doc/api/templates/licenses.md
doc/api/templates/licenses.md
+2
-2
doc/api/todos.md
doc/api/todos.md
+3
-3
doc/api/users.md
doc/api/users.md
+59
-59
doc/api/version.md
doc/api/version.md
+1
-1
doc/api/visual_review_discussions.md
doc/api/visual_review_discussions.md
+1
-1
doc/api/vulnerability_findings.md
doc/api/vulnerability_findings.md
+1
-1
doc/api/wikis.md
doc/api/wikis.md
+6
-6
doc/user/markdown.md
doc/user/markdown.md
+37
-37
doc/user/packages/conan_repository/index.md
doc/user/packages/conan_repository/index.md
+1
-1
doc/user/packages/npm_registry/index.md
doc/user/packages/npm_registry/index.md
+2
-2
doc/user/packages/nuget_repository/index.md
doc/user/packages/nuget_repository/index.md
+1
-1
doc/user/project/description_templates.md
doc/user/project/description_templates.md
+1
-1
doc/user/project/integrations/gitlab_slack_application.md
doc/user/project/integrations/gitlab_slack_application.md
+1
-1
doc/user/project/integrations/hipchat.md
doc/user/project/integrations/hipchat.md
+1
-1
doc/user/project/integrations/irker.md
doc/user/project/integrations/irker.md
+1
-1
doc/user/project/integrations/jira.md
doc/user/project/integrations/jira.md
+1
-1
doc/user/project/integrations/prometheus_library/kubernetes.md
...ser/project/integrations/prometheus_library/kubernetes.md
+4
-4
doc/user/project/new_ci_build_permissions_model.md
doc/user/project/new_ci_build_permissions_model.md
+4
-4
spec/frontend/diffs/components/diff_table_cell_spec.js
spec/frontend/diffs/components/diff_table_cell_spec.js
+4
-0
spec/lib/marginalia_spec.rb
spec/lib/marginalia_spec.rb
+0
-3
spec/support_specs/helpers/active_record/query_recorder_spec.rb
...upport_specs/helpers/active_record/query_recorder_spec.rb
+1
-6
No files found.
app/assets/javascripts/diffs/components/diff_table_cell.vue
View file @
d94ed2a4
...
...
@@ -166,6 +166,7 @@ export default {
:href=
"lineHref"
@
click=
"setHighlightedRow(lineCode)"
>
{{
lineNumber
}}
</a>
<diff-gutter-avatars
v-if=
"shouldShowAvatarsOnGutter"
...
...
app/assets/stylesheets/pages/diff.scss
View file @
d94ed2a4
...
...
@@ -485,10 +485,6 @@ table.code {
}
}
}
&
:not
(
.js-unfold-bottom
)
a
::before
{
content
:
attr
(
data-linenumber
);
}
}
&
.line_content
{
...
...
changelogs/unreleased/202639.yml
0 → 100644
View file @
d94ed2a4
---
title
:
Replace line diff number css selector with actual HTML inside MRs
merge_request
:
author
:
Oregand
type
:
other
changelogs/unreleased/sh-disable-line-in-marginalia.yml
0 → 100644
View file @
d94ed2a4
---
title
:
Disable Marginalia line backtrace in production
merge_request
:
26199
author
:
type
:
performance
config/initializers/0_marginalia.rb
View file @
d94ed2a4
...
...
@@ -9,7 +9,13 @@ require 'marginalia'
# Refer: https://github.com/basecamp/marginalia/blob/v1.8.0/lib/marginalia/railtie.rb#L67
ActiveRecord
::
ConnectionAdapters
::
PostgreSQLAdapter
.
prepend
(
Gitlab
::
Marginalia
::
ActiveRecordInstrumentation
)
Marginalia
::
Comment
.
components
=
[
:application
,
:controller
,
:action
,
:correlation_id
,
:jid
,
:job_class
,
:line
]
Marginalia
::
Comment
.
components
=
[
:application
,
:controller
,
:action
,
:correlation_id
,
:jid
,
:job_class
]
# As mentioned in https://github.com/basecamp/marginalia/pull/93/files,
# adding :line has some overhead because a regexp on the backtrace has
# to be run on every SQL query. Only enable this in development because
# we've seen it slow things down.
Marginalia
::
Comment
.
components
<<
:line
if
Rails
.
env
.
development?
Gitlab
::
Marginalia
.
set_application_name
...
...
doc/administration/troubleshooting/img/AzureAD-basic_SAML.png
View replaced file @
e56fd471
View file @
d94ed2a4
134 KB
|
W:
|
H:
93.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
doc/api/README.md
View file @
d94ed2a4
...
...
@@ -355,7 +355,7 @@ curl --head --header "PRIVATE-TOKEN: <your_access_token>" https://gitlab.example
The response will then be:
```
```
http
HTTP
/
1.1
200
OK
Cache-Control
:
no-cache
Content-Length
:
1103
...
...
@@ -415,7 +415,7 @@ curl --request GET --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab
The response header includes a link to the next page. For example:
```
```
http
HTTP
/
1.1
200
OK
...
Link
:
<https://gitlab.example.com/api/v4/projects?pagination=keyset&per_page=50&order_by=id&sort=asc&id_after=42>; rel="next"
...
...
@@ -540,7 +540,7 @@ Such errors appear in two cases:
When an attribute is missing, you will get something like:
```
```
http
HTTP
/
1.1
400
Bad Request
Content-Type
:
application/json
{
...
...
@@ -551,7 +551,7 @@ Content-Type: application/json
When a validation error occurs, error messages will be different. They will
hold all details of validation errors:
```
```
http
HTTP
/
1.1
400
Bad Request
Content-Type
:
application/json
{
...
...
@@ -589,7 +589,7 @@ follows:
When you try to access an API URL that does not exist you will receive 404 Not Found.
```
```
http
HTTP
/
1.1
404
Not Found
Content-Type
:
application/json
{
...
...
doc/api/pipeline_triggers.md
View file @
d94ed2a4
...
...
@@ -6,7 +6,7 @@ You can read more about [triggering pipelines through the API](../ci/triggers/RE
Get a list of project's build triggers.
```
```
plaintext
GET /projects/:id/triggers
```
...
...
@@ -14,7 +14,7 @@ GET /projects/:id/triggers
|-----------|---------|----------|---------------------|
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
```
```
shell
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/1/triggers"
```
...
...
@@ -36,7 +36,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
Get details of project's build trigger.
```
```
plaintext
GET /projects/:id/triggers/:trigger_id
```
...
...
@@ -45,7 +45,7 @@ GET /projects/:id/triggers/:trigger_id
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`trigger_id`
| integer | yes | The trigger id |
```
```
shell
curl
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/1/triggers/5"
```
...
...
@@ -65,7 +65,7 @@ curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.example.com/a
Create a trigger for a project.
```
```
plaintext
POST /projects/:id/triggers
```
...
...
@@ -74,7 +74,7 @@ POST /projects/:id/triggers
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`description`
| string | yes | The trigger name |
```
```
shell
curl
--request
POST
--header
"PRIVATE-TOKEN: <your_access_token>"
--form
description
=
"my description"
"https://gitlab.example.com/api/v4/projects/1/triggers"
```
...
...
@@ -94,7 +94,7 @@ curl --request POST --header "PRIVATE-TOKEN: <your_access_token>" --form descrip
Update a trigger for a project.
```
```
plaintext
PUT /projects/:id/triggers/:trigger_id
```
...
...
@@ -104,7 +104,7 @@ PUT /projects/:id/triggers/:trigger_id
|
`trigger_id`
| integer | yes | The trigger id |
|
`description`
| string | no | The trigger name |
```
```
shell
curl
--request
PUT
--header
"PRIVATE-TOKEN: <your_access_token>"
--form
description
=
"my description"
"https://gitlab.example.com/api/v4/projects/1/triggers/10"
```
...
...
@@ -124,7 +124,7 @@ curl --request PUT --header "PRIVATE-TOKEN: <your_access_token>" --form descript
Remove a project's build trigger.
```
```
plaintext
DELETE /projects/:id/triggers/:trigger_id
```
...
...
@@ -133,6 +133,6 @@ DELETE /projects/:id/triggers/:trigger_id
|
`id`
| integer/string | yes | The ID or
[
URL-encoded path of the project
](
README.md#namespaced-path-encoding
)
owned by the authenticated user |
|
`trigger_id`
| integer | yes | The trigger id |
```
```
shell
curl
--request
DELETE
--header
"PRIVATE-TOKEN: <your_access_token>"
"https://gitlab.example.com/api/v4/projects/1/triggers/5"
```
doc/api/releases/links.md
View file @
d94ed2a4
...
...
@@ -9,7 +9,7 @@ GitLab supports links links to `http`, `https`, and `ftp` assets.
Get assets as links from a Release.
```
```
plaintext
GET /projects/:id/releases/:tag_name/assets/links
```
...
...
@@ -47,7 +47,7 @@ Example response:
Get an asset as a link from a Release.
```
```
plaintext
GET /projects/:id/releases/:tag_name/assets/links/:link_id
```
...
...
@@ -78,7 +78,7 @@ Example response:
Create an asset as a link from a Release.
```
```
plaintext
POST /projects/:id/releases/:tag_name/assets/links
```
...
...
@@ -114,7 +114,7 @@ Example response:
Update an asset as a link from a Release.
```
```
plaintext
PUT /projects/:id/releases/:tag_name/assets/links/:link_id
```
...
...
@@ -150,7 +150,7 @@ Example response:
Delete an asset as a link from a Release.
```
```
plaintext
DELETE /projects/:id/releases/:tag_name/assets/links/:link_id
```
...
...
doc/api/search.md
View file @
d94ed2a4
...
...
@@ -751,7 +751,7 @@ Search within the specified project.
If a user is not a member of a project and the project is private, a
`GET`
request on that project will result to a
`404`
status code.
```
```
plaintext
GET /projects/:id/search
```
...
...
doc/api/settings.md
View file @
d94ed2a4
...
...
@@ -10,7 +10,7 @@ administrator in order to perform this action.
List the current
[
application settings
](
#list-of-settings-that-can-be-accessed-via-api-calls
)
of the GitLab instance.
```
```
plaintext
GET /application/settings
```
...
...
@@ -90,7 +90,7 @@ the `file_template_project_id`, `deletion_adjourned_period`, or the `geo_node_al
Use an API call to modify GitLab instance
[
application settings
](
#list-of-settings-that-can-be-accessed-via-api-calls
)
.
```
```
plaintext
PUT /application/settings
```
...
...
doc/api/sidekiq_metrics.md
View file @
d94ed2a4
...
...
@@ -10,7 +10,7 @@ of Sidekiq, its jobs, queues, and processes.
List information about all the registered queues, their backlog and their
latency.
```
```
plaintext
GET /sidekiq/queue_metrics
```
...
...
@@ -35,7 +35,7 @@ Example response:
List information about all the Sidekiq workers registered to process your queues.
```
```
plaintext
GET /sidekiq/process_metrics
```
...
...
@@ -77,7 +77,7 @@ Example response:
List information about the jobs that Sidekiq has performed.
```
```
plaintext
GET /sidekiq/job_stats
```
...
...
@@ -102,7 +102,7 @@ Example response:
List all the currently available information about Sidekiq.
```
```
plaintext
GET /sidekiq/compound_metrics
```
...
...
doc/api/statistics.md
View file @
d94ed2a4
...
...
@@ -8,7 +8,7 @@ administrator in order to perform this action.
NOTE:
**Note:**
These statistics are approximate.
```
```
plaintext
GET /application/statistics
```
...
...
doc/api/suggestions.md
View file @
d94ed2a4
...
...
@@ -7,7 +7,7 @@ Every API call to suggestions must be authenticated.
Applies a suggested patch in a merge request. Users must be
at least
[
Developer
](
../user/permissions.md
)
to perform such action.
```
```
plaintext
PUT /suggestions/:id/apply
```
...
...
doc/api/system_hooks.md
View file @
d94ed2a4
...
...
@@ -11,7 +11,7 @@ Read more about [system hooks](../system_hooks/system_hooks.md).
Get a list of all system hooks.
```
```
plaintext
GET /hooks
```
...
...
@@ -42,7 +42,7 @@ Example response:
Add a new system hook.
```
```
plaintext
POST /hooks
```
...
...
@@ -81,7 +81,7 @@ Example response:
## Test system hook
```
```
plaintext
GET /hooks/:id
```
...
...
@@ -112,7 +112,7 @@ Example response:
Deletes a system hook.
```
```
plaintext
DELETE /hooks/:id
```
...
...
doc/api/tags.md
View file @
d94ed2a4
...
...
@@ -6,7 +6,7 @@ Get a list of repository tags from a project, sorted by name in reverse
alphabetical order. This endpoint can be accessed without authentication if the
repository is publicly accessible.
```
```
plaintext
GET /projects/:id/repository/tags
```
...
...
@@ -57,7 +57,7 @@ Parameters:
Get a specific repository tag determined by its name. This endpoint can be
accessed without authentication if the repository is publicly accessible.
```
```
plaintext
GET /projects/:id/repository/tags/:tag_name
```
...
...
@@ -104,7 +104,7 @@ Example Response:
Creates a new tag in the repository that points to the supplied ref.
```
```
plaintext
POST /projects/:id/repository/tags
```
...
...
@@ -164,7 +164,7 @@ status code `405` with an explaining error message is returned.
Deletes a tag of a repository with given name.
```
```
plaintext
DELETE /projects/:id/repository/tags/:tag_name
```
...
...
@@ -178,7 +178,7 @@ Parameters:
Add release notes to the existing Git tag. If there
already exists a release for the given tag, status code
`409`
is returned.
```
```
plaintext
POST /projects/:id/repository/tags/:tag_name/release
```
...
...
@@ -210,7 +210,7 @@ Response:
Updates the release notes of a given release.
```
```
plaintext
PUT /projects/:id/repository/tags/:tag_name/release
```
...
...
doc/api/templates/dockerfiles.md
View file @
d94ed2a4
...
...
@@ -12,7 +12,7 @@ information on Dockerfiles, see the
Get all Dockerfile templates.
```
```
plaintext
GET /templates/dockerfiles
```
...
...
@@ -99,7 +99,7 @@ Example response:
Get a single Dockerfile template.
```
```
plaintext
GET /templates/dockerfiles/:key
```
...
...
doc/api/templates/licenses.md
View file @
d94ed2a4
...
...
@@ -13,7 +13,7 @@ resources available online.
Get all license templates.
```
```
plaintext
GET /templates/licenses
```
...
...
@@ -110,7 +110,7 @@ Example response:
Get a single license template. You can pass parameters to replace the license
placeholder.
```
```
plaintext
GET /templates/licenses/:key
```
...
...
doc/api/todos.md
View file @
d94ed2a4
...
...
@@ -7,7 +7,7 @@
Returns a list of todos. When no filter is applied, it returns all pending todos
for the current user. Different filters allow the user to precise the request.
```
```
plaintext
GET /todos
```
...
...
@@ -184,7 +184,7 @@ Example Response:
Marks a single pending todo given by its ID for the current user as done. The
todo marked as done is returned in the response.
```
```
plaintext
POST /todos/:id/mark_as_done
```
...
...
@@ -280,7 +280,7 @@ Example Response:
Marks all pending todos for the current user as done. It returns the HTTP status code
`204`
with an empty response.
```
```
plaintext
POST /todos/mark_as_done
```
...
...
doc/api/users.md
View file @
d94ed2a4
This diff is collapsed.
Click to expand it.
doc/api/version.md
View file @
d94ed2a4
...
...
@@ -5,7 +5,7 @@
Retrieve version information for this GitLab instance. Responds
`200 OK`
for
authenticated users.
```
```
plaintext
GET /version
```
...
...
doc/api/visual_review_discussions.md
View file @
d94ed2a4
...
...
@@ -10,7 +10,7 @@ feedback from [Visual Reviews](../ci/review_apps/index.md#visual-reviews-starter
Creates a new thread to a single project merge request. This is similar to creating
a note but other comments (replies) can be added to it later.
```
```
plaintext
POST /projects/:id/merge_requests/:merge_request_iid/visual_review_discussions
```
...
...
doc/api/vulnerability_findings.md
View file @
d94ed2a4
...
...
@@ -34,7 +34,7 @@ Read more on [pagination](README.md#pagination).
List all of a project's vulnerability findings.
```
```
plaintext
GET /projects/:id/vulnerability_findings
GET /projects/:id/vulnerability_findings?report_type=sast
GET /projects/:id/vulnerability_findings?report_type=container_scanning
...
...
doc/api/wikis.md
View file @
d94ed2a4
...
...
@@ -8,7 +8,7 @@ Available only in APIv4.
Get all wiki pages for a given project.
```
```
plaintext
GET /projects/:id/wikis
```
...
...
@@ -49,7 +49,7 @@ Example response:
Get a wiki page for a given project.
```
```
plaintext
GET /projects/:id/wikis/:slug
```
...
...
@@ -77,7 +77,7 @@ Example response:
Creates a new wiki page for the given repository with the given title, slug, and content.
```
```
plaintext
POST /projects/:id/wikis
```
...
...
@@ -107,7 +107,7 @@ Example response:
Updates an existing wiki page. At least one parameter is required to update the wiki page.
```
```
plaintext
PUT /projects/:id/wikis/:slug
```
...
...
@@ -138,7 +138,7 @@ Example response:
Deletes a wiki page with a given slug.
```
```
plaintext
DELETE /projects/:id/wikis/:slug
```
...
...
@@ -160,7 +160,7 @@ On success the HTTP status code is `204` and no JSON response is expected.
Uploads a file to the attachment folder inside the wiki's repository. The
attachment folder is the
`uploads`
folder.
```
```
plaintext
POST /projects/:id/wikis/attachments
```
...
...
doc/user/markdown.md
View file @
d94ed2a4
...
...
@@ -131,26 +131,26 @@ Supported formats (named colors are not supported):
Color written inside backticks will be followed by a color "chip":
```
markdown
`#F00`
`#F00A`
`#FF0000`
`#FF0000AA`
`RGB(0,255,0)`
`RGB(0%,100%,0%)`
`RGBA(0,255,0,0.3)`
`HSL(540,70%,50%)`
`HSLA(540,70%,50%,0.3)`
```
`#F00`
`#F00A`
`#FF0000`
`#FF0000AA`
`RGB(0,255,0)`
`RGB(0%,100%,0%)`
`RGBA(0,255,0,0.3)`
`HSL(540,70%,50%)`
`HSLA(540,70%,50%,0.3)`
-
`#F00`
-
`#F00A`
-
`#FF0000`
-
`#FF0000AA`
-
`RGB(0,255,0)`
-
`RGB(0%,100%,0%)`
-
`RGBA(0,255,0,0.3)`
-
`HSL(540,70%,50%)`
-
`HSLA(540,70%,50%,0.3)`
```
-
`#F00`
-
`#F00A`
-
`#FF0000`
-
`#FF0000AA`
-
`RGB(0,255,0)`
-
`RGB(0%,100%,0%)`
-
`RGBA(0,255,0,0.3)`
-
`HSL(540,70%,50%)`
-
`HSLA(540,70%,50%,0.3)`
### Diagrams and flowcharts
...
...
@@ -581,7 +581,7 @@ Quote break.
GFM extends the standard Markdown standard by also supporting multiline blockquotes
fenced by
`>>>`
:
```
```
markdown
>>>
If you paste a message from somewhere else
...
...
@@ -630,7 +630,7 @@ def function():
3-backtick fences.
~~~
```
```
plaintext
~~~
Tildes are OK too.
~~~
...
...
@@ -638,20 +638,20 @@ Tildes are OK too.
The three examples above render as:
```
```
python
def
function
():
#indenting works just fine in the fenced code block
s
=
"Python code"
print
s
```
```
```
plaintext
Using 4 spaces
is like using
3-backtick fences.
```
~~~
~~~
plaintext
Tildes are OK too.
~~~
...
...
@@ -668,7 +668,7 @@ code when it is inline.
Blocks of code are fenced by lines with three back-ticks
```` ``` ````
or three tildes
`~~~`
, and have
the language identified at the end of the first fence:
~~~
~~~
markdown
```
javascript
var
s
=
"
JavaScript syntax highlighting
"
;
alert
(
s
);
...
...
@@ -714,7 +714,7 @@ markdown = Redcarpet.new("Hello World!")
puts
markdown
.
to_html
```
```
```
plaintext
No language indicated, so no syntax highlighting.
s = "There is no highlighting for this."
But let's throw in a <b>tag</b>.
...
...
@@ -756,7 +756,7 @@ dealing with code and names that often appear with multiple underscores. As a re
GFM extends the standard Markdown standard by ignoring multiple underlines in words,
to allow better rendering of Markdown documents discussing code:
```
m
d
```
m
arkdown
perform_complicated_task
do_this_and_do_that_and_another_thing
...
...
@@ -852,7 +852,7 @@ The IDs are generated from the content of the header according to the following
Example:
```
```
markdown
# This header has spaces in it
## This header has a :thumbsup: in it
# This header has Unicode in it: 한글
...
...
@@ -973,7 +973,7 @@ class for the list of allowed HTML tags and attributes. In addition to the defau
<dd>
Is something people use sometimes.
</dd>
<dt>
Markdown in HTML
</dt>
<dd>
Does *not* work **very** well. HTML
<em>
tags
</em>
will
<b>
always
</b>
work
.
</dd>
<dd>
Does *not* work **very** well. HTML
<em>
tags
</em>
will
<b>
work
</b>
, in most cases
.
</dd>
</dl>
```
...
...
@@ -982,7 +982,7 @@ class for the list of allowed HTML tags and attributes. In addition to the defau
<dd>
Is something people use sometimes.
</dd>
<dt>
Markdown in HTML
</dt>
<dd>
Does
*not*
work
**very**
well. HTML
<em>
tags
</em>
will
<b>
always
</b>
work
.
</dd>
<dd>
Does
*not*
work
**very**
well. HTML
<em>
tags
</em>
will
<b>
work
</b>
, in most cases
.
</dd>
</dl>
---
...
...
@@ -993,12 +993,12 @@ are separated into their own lines:
```
html
<dl>
<dt>
Markdown in HTML
</dt>
<dd>
Does *not* work **very** well. HTML tags will
always work
.
</dd>
<dd>
Does *not* work **very** well. HTML tags will
work, in most cases
.
</dd>
<dt>
Markdown in HTML
</dt>
<dd>
Does *not* work **very** well. HTML tags will
always work
.
Does *not* work **very** well. HTML tags will
work, in most cases
.
</dd>
</dl>
...
...
@@ -1008,12 +1008,12 @@ are separated into their own lines:
<dl>
<dt>
Markdown in HTML
</dt>
<dd>
Does
*not*
work
**very**
well. HTML tags will
always work
.
</dd>
<dd>
Does
*not*
work
**very**
well. HTML tags will
work, in most cases
.
</dd>
<dt>
Markdown in HTML
</dt>
<dd>
Does
<em>
not
</em>
work
<b>
very
</b>
well. HTML tags will
always work
.
Does
<em>
not
</em>
work
<b>
very
</b>
well. HTML tags will
work, in most cases
.
</dd>
</dl>
...
...
@@ -1148,7 +1148,7 @@ A new line due to the previous backslash.
There are two ways to create links, inline-style and reference-style:
```
m
d
```
m
arkdown
-
This is an
[
inline-style link
](
https://www.google.com
)
-
This is a
[
link to a repository file in the same directory
](
index.md
)
-
This is a
[
relative link to a readme one directory higher
](
../README.md
)
...
...
@@ -1319,7 +1319,7 @@ the paragraph will appear outside the list, instead of properly indented under t
Example:
```
```
markdown
1.
First ordered list item
Paragraph of first item.
...
...
doc/user/packages/conan_repository/index.md
View file @
d94ed2a4
...
...
@@ -39,7 +39,7 @@ conan --version
You should see the Conan version printed in the output:
```
```
plaintext
Conan version 1.20.5
```
...
...
doc/user/packages/npm_registry/index.md
View file @
d94ed2a4
...
...
@@ -49,7 +49,7 @@ npm --version
You should see the NPM version printed in the output:
```
```
plaintext
6.10.3
```
...
...
@@ -67,7 +67,7 @@ yarn --version
You should see the version printed like so:
```
```
plaintext
1.19.1
```
...
...
doc/user/packages/nuget_repository/index.md
View file @
d94ed2a4
...
...
@@ -26,7 +26,7 @@ nuget help
You should see something similar to:
```
```
plaintext
NuGet Version: 5.2.0.6090
usage: NuGet <command> [args] [options]
Type 'NuGet help <command>' for help on a specific command.
...
...
doc/user/project/description_templates.md
View file @
d94ed2a4
...
...
@@ -91,7 +91,7 @@ It is possible to use [quick actions](quick_actions.md) within description templ
Here is an example for a Bug report template:
```
```
plaintext
Summary
(Summarize the bug encountered concisely)
...
...
doc/user/project/integrations/gitlab_slack_application.md
View file @
d94ed2a4
...
...
@@ -56,7 +56,7 @@ We are working on making this configurable in the future.
For example, to show the issue number
`1001`
under the
`gitlab-org/gitlab`
project, you would do:
```
```
plaintext
/gitlab gitlab-org/gitlab issue show 1001
```
...
...
doc/user/project/integrations/hipchat.md
View file @
d94ed2a4
...
...
@@ -25,7 +25,7 @@ allow GitLab to send messages only to *one* room.
1.
In the "Send messages to this room by posting this URL" column, you should
see a URL in the format:
```
```
plaintext
https://api.hipchat.com/v2/room/<room>/notification?auth_token=<token>
```
...
...
doc/user/project/integrations/irker.md
View file @
d94ed2a4
...
...
@@ -11,7 +11,7 @@ See the project homepage for further info: <https://gitlab.com/esr/irker>
You will first need an Irker daemon. You can download the Irker code from its
repository on
<https://gitlab.com/esr/irker>
:
```
```
shell
git clone https://gitlab.com/esr/irker.git
```
...
...
doc/user/project/integrations/jira.md
View file @
d94ed2a4
...
...
@@ -119,7 +119,7 @@ link back to GitLab. This means that in comments in merge requests and commits
referencing an issue, e.g.,
`PROJECT-7`
, will add a comment in Jira issue in the
format:
```
```
plaintext
USER mentioned this issue in RESOURCE_NAME of [PROJECT_NAME|LINK_TO_COMMENT]:
ENTITY_TITLE
```
...
...
doc/user/project/integrations/prometheus_library/kubernetes.md
View file @
d94ed2a4
...
...
@@ -13,13 +13,13 @@ integration services must be enabled.
-
Average Memory Usage (MB):
```
```
prometheus
avg
(
sum
(
container_memory_usage_bytes
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)"
,
namespace
=
"%{kube_namespace}"
})
by
(
job
))
without
(
job
)
/
count
(
avg
(
container_memory_usage_bytes
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)"
,
namespace
=
"%{kube_namespace}"
})
without
(
job
))
/
1024
/
1024
```
-
Average CPU Utilization (%):
```
```
prometheus
avg
(
sum
(
rate
(
container_cpu_usage_seconds_total
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)"
,
namespace
=
"%{kube_namespace}"
}[
15m
]))
by
(
job
))
without
(
job
)
/
count
(
sum
(
rate
(
container_cpu_usage_seconds_total
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-([^c].*|c([^a]|a([^n]|n([^a]|a([^r]|r[^y])))).*|)-(.*)"
,
namespace
=
"%{kube_namespace}"
}[
15m
]))
by
(
pod_name
))
```
...
...
@@ -48,12 +48,12 @@ These metrics expect the [Deployment](https://kubernetes.io/docs/concepts/worklo
-
Average Memory Usage (MB)
```
```
prometheus
avg
(
sum
(
container_memory_usage_bytes
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-canary-(.*)"
,
namespace
=
"%{kube_namespace}"
})
by
(
job
))
without
(
job
)
/
count
(
avg
(
container_memory_usage_bytes
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-canary-(.*)"
,
namespace
=
"%{kube_namespace}"
})
without
(
job
))
/
1024
/
1024
```
-
Average CPU Utilization (%)
```
```
prometheus
avg
(
sum
(
rate
(
container_cpu_usage_seconds_total
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-canary-(.*)"
,
namespace
=
"%{kube_namespace}"
}[
15m
]))
by
(
job
))
without
(
job
)
/
count
(
sum
(
rate
(
container_cpu_usage_seconds_total
{
container_name
!=
"POD"
,
pod_name
=~
"^%{ci_environment_slug}-canary-(.*)"
,
namespace
=
"%{kube_namespace}"
}[
15m
]))
by
(
pod_name
))
```
doc/user/project/new_ci_build_permissions_model.md
View file @
d94ed2a4
...
...
@@ -101,14 +101,14 @@ allowing pulling and pushing Docker images from within the CI job.
GitLab would create a special checkout URL like:
```
```
plaintext
https://gitlab-ci-token:<project-runners-token>/gitlab.com/gitlab-org/gitlab-foss.git
```
And then the users could also use it in their CI jobs all Docker related
commands to interact with GitLab Container Registry. For example:
```
```
shell
docker login
-u
gitlab-ci-token
-p
$CI_JOB_TOKEN
registry.gitlab.com
```
...
...
@@ -173,14 +173,14 @@ As a user:
The
[
Job environment variable
][
jobenv
]
`CI_JOB_TOKEN`
can be used to
authenticate any clones of dependent repositories. For example:
```
```
shell
git clone https://gitlab-ci-token:
${
CI_JOB_TOKEN
}
@gitlab.com/<user>/<mydependentrepo>.git
```
It can also be used for system-wide authentication
(only do this in a docker container, it will overwrite ~/.netrc):
```
```
shell
echo
-e
"machine gitlab.com
\n
login gitlab-ci-token
\n
password
${
CI_JOB_TOKEN
}
"
>
~/.netrc
```
...
...
spec/frontend/diffs/components/diff_table_cell_spec.js
View file @
d94ed2a4
...
...
@@ -155,6 +155,10 @@ describe('DiffTableCell', () => {
});
});
it
(
'
renders the correct line number
'
,
()
=>
{
expect
(
findLineNumber
().
text
()).
toEqual
(
TEST_LINE_NUMBER
.
toString
());
});
it
(
'
on click, dispatches setHighlightedRow
'
,
()
=>
{
expect
(
store
.
dispatch
).
not
.
toHaveBeenCalled
();
...
...
spec/lib/marginalia_spec.rb
View file @
d94ed2a4
...
...
@@ -59,7 +59,6 @@ describe 'Marginalia spec' do
"application"
=>
"test"
,
"controller"
=>
"marginalia_test"
,
"action"
=>
"first_user"
,
"line"
=>
"/spec/support/helpers/query_recorder.rb"
,
"correlation_id"
=>
correlation_id
}
end
...
...
@@ -116,7 +115,6 @@ describe 'Marginalia spec' do
{
"application"
=>
"sidekiq"
,
"job_class"
=>
"MarginaliaTestJob"
,
"line"
=>
"/spec/support/sidekiq_middleware.rb"
,
"correlation_id"
=>
sidekiq_job
[
'correlation_id'
],
"jid"
=>
sidekiq_job
[
'jid'
]
}
...
...
@@ -145,7 +143,6 @@ describe 'Marginalia spec' do
let
(
:component_map
)
do
{
"application"
=>
"sidekiq"
,
"line"
=>
"/lib/gitlab/i18n.rb"
,
"jid"
=>
delivery_job
.
job_id
,
"job_class"
=>
delivery_job
.
arguments
.
first
}
...
...
spec/support_specs/helpers/active_record/query_recorder_spec.rb
View file @
d94ed2a4
...
...
@@ -14,9 +14,6 @@ describe ActiveRecord::QueryRecorder do
TestQueries
.
first
end
# Test first_only flag works as expected
expect
(
control
.
find_query
(
/.*query_recorder_spec.rb.*/
,
0
,
first_only:
true
))
.
to
eq
(
control
.
find_query
(
/.*query_recorder_spec.rb.*/
,
0
).
first
)
# Check #find_query
expect
(
control
.
find_query
(
/.*/
,
0
).
size
)
.
to
eq
(
control
.
data
.
keys
.
size
)
...
...
@@ -32,9 +29,7 @@ describe ActiveRecord::QueryRecorder do
# Ensure memoization value match the raw value above
expect
(
control
.
count
).
to
eq
(
control
.
log
.
size
)
# Ensure we have only two sources of queries
expect
(
control
.
data
.
keys
.
size
).
to
eq
(
2
)
# Ensure we detect only queries from this file
expect
(
control
.
data
.
keys
.
find_all
{
|
i
|
i
.
match
(
/query_recorder_spec.rb/
)
}.
count
).
to
eq
(
2
)
expect
(
control
.
data
.
keys
.
size
).
to
eq
(
1
)
end
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment