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
28acc1c0
Commit
28acc1c0
authored
Dec 17, 2019
by
nmilojevic1
Committed by
Stan Hu
Dec 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add discussion_id to AllowedReferences
parent
3a8e52d5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
21 deletions
+1
-21
lib/gitlab/import_export/attribute_cleaner.rb
lib/gitlab/import_export/attribute_cleaner.rb
+1
-1
lib/gitlab/import_export/import_export.yml
lib/gitlab/import_export/import_export.yml
+0
-1
spec/lib/gitlab/import_export/safe_model_attributes.yml
spec/lib/gitlab/import_export/safe_model_attributes.yml
+0
-19
No files found.
lib/gitlab/import_export/attribute_cleaner.rb
View file @
28acc1c0
...
...
@@ -3,7 +3,7 @@
module
Gitlab
module
ImportExport
class
AttributeCleaner
ALLOWED_REFERENCES
=
RelationFactory
::
PROJECT_REFERENCES
+
RelationFactory
::
USER_REFERENCES
+
%w[group_id commit_id]
ALLOWED_REFERENCES
=
RelationFactory
::
PROJECT_REFERENCES
+
RelationFactory
::
USER_REFERENCES
+
%w[group_id commit_id
discussion_id
]
PROHIBITED_REFERENCES
=
Regexp
.
union
(
/\Acached_markdown_version\Z/
,
/_id\Z/
,
/_ids\Z/
,
/_html\Z/
).
freeze
def
self
.
clean
(
*
args
)
...
...
lib/gitlab/import_export/import_export.yml
View file @
28acc1c0
...
...
@@ -256,7 +256,6 @@ excluded_attributes:
-
:merge_request_id
notes
:
-
:noteable_id
-
:discussion_id
-
:review_id
label_links
:
-
:label_id
...
...
spec/lib/gitlab/import_export/safe_model_attributes.yml
View file @
28acc1c0
...
...
@@ -33,7 +33,6 @@ Issue:
Event
:
-
id
-
target_type
-
target_id
-
project_id
-
group_id
-
created_at
...
...
@@ -60,7 +59,6 @@ Note:
-
attachment
-
line_code
-
commit_id
-
noteable_id
-
system
-
st_diff
-
updated_by_id
...
...
@@ -73,11 +71,8 @@ Note:
-
resolved_by_push
-
discussion_id
-
original_discussion_id
-
review_id
LabelLink
:
-
id
-
label_id
-
target_id
-
target_type
-
created_at
-
updated_at
...
...
@@ -130,13 +125,11 @@ Release:
-
released_at
Evidence
:
-
id
-
release_id
-
summary
-
created_at
-
updated_at
Releases::Link:
-
id
-
release_id
-
url
-
name
-
created_at
...
...
@@ -144,7 +137,6 @@ Releases::Link:
ProjectMember
:
-
id
-
access_level
-
source_id
-
source_type
-
user_id
-
notification_level
...
...
@@ -600,7 +592,6 @@ AwardEmoji:
LabelPriority
:
-
id
-
project_id
-
label_id
-
priority
-
created_at
-
updated_at
...
...
@@ -608,7 +599,6 @@ Timelog:
-
id
-
time_spent
-
merge_request_id
-
issue_id
-
user_id
-
spent_at
-
created_at
...
...
@@ -623,7 +613,6 @@ ProjectAutoDevops:
-
updated_at
IssueAssignee
:
-
user_id
-
issue_id
ProjectCustomAttribute
:
-
id
-
created_at
...
...
@@ -679,7 +668,6 @@ ProtectedEnvironment::DeployAccessLevel:
ResourceLabelEvent
:
-
id
-
action
-
issue_id
-
merge_request_id
-
label_id
-
user_id
...
...
@@ -691,11 +679,9 @@ ErrorTracking::ProjectErrorTrackingSetting:
-
organization_name
SentryIssue
:
-
id
-
issue_id
-
sentry_issue_identifier
Suggestion
:
-
id
-
note_id
-
relative_order
-
applied
-
commit_id
...
...
@@ -750,21 +736,16 @@ ExternalPullRequest:
DesignManagement::Design:
-
id
-
project_id
-
issue_id
-
filename
DesignManagement::Action:
-
design_id
-
event
-
version_id
DesignManagement::Version:
-
id
-
created_at
-
sha
-
issue_id
-
author_id
ZoomMeeting
:
-
id
-
issue_id
-
project_id
-
issue_status
-
url
...
...
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