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
a5a87db6
Commit
a5a87db6
authored
Mar 15, 2019
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
23d60ad9
4860b2b9
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
14 deletions
+45
-14
app/models/note.rb
app/models/note.rb
+8
-0
changelogs/unreleased/57330-fix-comment-edited.yml
changelogs/unreleased/57330-fix-comment-edited.yml
+5
-0
doc/api/namespaces.md
doc/api/namespaces.md
+6
-6
doc/ci/yaml/README.md
doc/ci/yaml/README.md
+5
-8
doc/install/requirements.md
doc/install/requirements.md
+3
-0
spec/models/note_spec.rb
spec/models/note_spec.rb
+18
-0
No files found.
app/models/note.rb
View file @
a5a87db6
...
...
@@ -313,6 +313,14 @@ class Note < ActiveRecord::Base
!
system
?
end
# Since we're using `updated_at` as `last_edited_at`, it could be touched by transforming / resolving a note.
# This makes sure it is only marked as edited when the note body is updated.
def
edited?
return
false
if
updated_by
.
blank?
super
end
def
cross_reference_not_visible_for?
(
user
)
cross_reference?
&&
!
all_referenced_mentionables_allowed?
(
user
)
end
...
...
changelogs/unreleased/57330-fix-comment-edited.yml
0 → 100644
View file @
a5a87db6
---
title
:
Fix notes being marked as edited after resolving
merge_request
:
26143
author
:
type
:
fixed
doc/api/namespaces.md
View file @
a5a87db6
...
...
@@ -65,9 +65,9 @@ Get all namespaces that match a string in their name or path.
GET /namespaces?search=foobar
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`search`
| string | no | Returns a list of namespaces the user is authorized to see based on the search criteria |
| Attribute | Type
| Required | Description |
| --------- | ----
--
| -------- | ----------- |
|
`search`
| string | no
| Returns a list of namespaces the user is authorized to see based on the search criteria |
Example request:
...
...
@@ -99,9 +99,9 @@ Get a namespace by ID.
GET /namespaces/:id
```
| Attribute | Type | Required | Description |
| --------- | ---- | -------- | ----------- |
|
`id`
| integer/string | yes
| ID or path of the namespace
|
| Attribute | Type
| Required | Description |
| --------- | ----
----------
| -------- | ----------- |
|
`id`
| integer/string | yes
| ID or
[
URL-encoded path of the namespace
](
README.md#namespaced-path-encoding
)
|
Example request:
...
...
doc/ci/yaml/README.md
View file @
a5a87db6
...
...
@@ -1703,6 +1703,11 @@ of using YAML anchors, you can use the [`extends` keyword](#extends).
See
[
usage examples
](
#include-examples
)
.
NOTE:
**Note:**
`.gitlab-ci.yml`
configuration included by all methods is evaluated at pipeline creation.
The configuration is a snapshot in time and persisted in the database. Any changes to
referenced
`.gitlab-ci.yml`
configuration will not be reflected in GitLab until the next pipeline is created.
#### `include:local`
`include:local`
includes a file from the same repository as
`.gitlab-ci.yml`
.
...
...
@@ -1793,14 +1798,6 @@ include:
All nested includes will be executed without context as public user, so only another remote,
or public project, or template is allowed.
NOTE:
**Note:**
Changes to remote includes will not have effect on already created pipelines,
because the include is being evaluated at the time of pipeline creation.
This is when full definition of CI yaml is being expanded in order to create
pipeline with stages with jobs. You always retry job that is already created,
thus created after pipeline creation. To re-include all (thus re-evaluate the
configuration), you have to re-create pipeline.
#### Nested includes
> [Introduced](https://gitlab.com/gitlab-org/gitlab-ce/issues/56836) in GitLab 11.9.
...
...
doc/install/requirements.md
View file @
a5a87db6
...
...
@@ -219,6 +219,9 @@ We support the current and the previous major release of:
-
Microsoft Edge
-
Internet Explorer 11
The browser vendors release regular minor version updates with important bug fixes and security updates.
Support is only provided for the current minor version of the major version you are running.
Each time a new browser version is released, we begin supporting that version and stop supporting the third most recent version.
Note: We do not support running GitLab with JavaScript disabled in the browser and have no plans of supporting that
...
...
spec/models/note_spec.rb
View file @
a5a87db6
...
...
@@ -208,6 +208,24 @@ describe Note do
end
end
describe
"edited?"
do
let
(
:note
)
{
build
(
:note
,
updated_by_id:
nil
,
created_at:
Time
.
now
,
updated_at:
Time
.
now
+
5
.
hours
)
}
context
"with updated_by"
do
it
"returns true"
do
note
.
updated_by
=
build
(
:user
)
expect
(
note
.
edited?
).
to
be_truthy
end
end
context
"without updated_by"
do
it
"returns false"
do
expect
(
note
.
edited?
).
to
be_falsy
end
end
end
describe
"confidential?"
do
it
"delegates to noteable"
do
issue_note
=
build
(
:note
,
:on_issue
)
...
...
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