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
df286558
Commit
df286558
authored
Feb 22, 2020
by
Jarka Košanová
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add confidential attribute to notes
- confidential s safe to export
parent
8076bb38
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
0 deletions
+19
-0
changelogs/unreleased/207468-note-confidential-attribute.yml
changelogs/unreleased/207468-note-confidential-attribute.yml
+5
-0
db/migrate/20200222055543_add_confidential_to_note.rb
db/migrate/20200222055543_add_confidential_to_note.rb
+12
-0
db/schema.rb
db/schema.rb
+1
-0
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+1
-0
No files found.
changelogs/unreleased/207468-note-confidential-attribute.yml
0 → 100644
View file @
df286558
---
title
:
Add confidential attribute to notes table
merge_request
:
author
:
type
:
other
db/migrate/20200222055543_add_confidential_to_note.rb
0 → 100644
View file @
df286558
# frozen_string_literal: true
class
AddConfidentialToNote
<
ActiveRecord
::
Migration
[
6.0
]
include
Gitlab
::
Database
::
MigrationHelpers
DOWNTIME
=
false
def
change
with_lock_retries
do
add_column
:notes
,
:confidential
,
:boolean
end
end
end
db/schema.rb
View file @
df286558
...
...
@@ -2805,6 +2805,7 @@ ActiveRecord::Schema.define(version: 2020_02_24_163804) do
t
.
text
"change_position"
t
.
boolean
"resolved_by_push"
t
.
bigint
"review_id"
t
.
boolean
"confidential"
t
.
index
[
"author_id"
],
name:
"index_notes_on_author_id"
t
.
index
[
"commit_id"
],
name:
"index_notes_on_commit_id"
t
.
index
[
"created_at"
],
name:
"index_notes_on_created_at"
...
...
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
df286558
...
...
@@ -72,6 +72,7 @@ Note:
-
resolved_by_push
-
discussion_id
-
original_discussion_id
-
confidential
LabelLink
:
-
id
-
target_type
...
...
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