Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
atlas
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dataplatform
atlas
Commits
ba5b2dba
Commit
ba5b2dba
authored
Mar 11, 2020
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3614: added configuration to specify default classification-propagation flag
parent
c6cac030
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
AtlasConfiguration.java
intg/src/main/java/org/apache/atlas/AtlasConfiguration.java
+2
-0
AtlasClassification.java
.../org/apache/atlas/model/instance/AtlasClassification.java
+4
-0
EntityGraphMapper.java
...he/atlas/repository/store/graph/v2/EntityGraphMapper.java
+4
-2
No files found.
intg/src/main/java/org/apache/atlas/AtlasConfiguration.java
View file @
ba5b2dba
...
...
@@ -56,6 +56,8 @@ public enum AtlasConfiguration {
RELATIONSHIP_WARN_NO_RELATIONSHIPS
(
"atlas.relationships.warnOnNoRelationships"
,
false
),
ENTITY_CHANGE_NOTIFY_IGNORE_RELATIONSHIP_ATTRIBUTES
(
"atlas.entity.change.notify.ignore.relationship.attributes"
,
true
),
CLASSIFICATION_PROPAGATION_DEFAULT
(
"atlas.classification.propagation.default"
,
true
),
//search configuration
SEARCH_MAX_LIMIT
(
"atlas.search.maxlimit"
,
10000
),
SEARCH_DEFAULT_LIMIT
(
"atlas.search.defaultlimit"
,
100
),
...
...
intg/src/main/java/org/apache/atlas/model/instance/AtlasClassification.java
View file @
ba5b2dba
...
...
@@ -104,6 +104,10 @@ public class AtlasClassification extends AtlasStruct implements Serializable {
return
propagate
;
}
public
Boolean
getPropagate
()
{
return
propagate
;
}
public
void
setPropagate
(
Boolean
propagate
)
{
this
.
propagate
=
propagate
;
}
...
...
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
View file @
ba5b2dba
...
...
@@ -126,6 +126,7 @@ public class EntityGraphMapper {
private
static
final
int
CUSTOM_ATTRIBUTE_VALUE_MAX_LENGTH
=
AtlasConfiguration
.
CUSTOM_ATTRIBUTE_VALUE_MAX_LENGTH
.
getInt
();
private
static
final
boolean
ENTITY_CHANGE_NOTIFY_IGNORE_RELATIONSHIP_ATTRIBUTES
=
AtlasConfiguration
.
ENTITY_CHANGE_NOTIFY_IGNORE_RELATIONSHIP_ATTRIBUTES
.
getBoolean
();
private
static
final
boolean
CLASSIFICATION_PROPAGATION_DEFAULT
=
AtlasConfiguration
.
CLASSIFICATION_PROPAGATION_DEFAULT
.
getBoolean
();
private
final
GraphHelper
graphHelper
=
GraphHelper
.
getInstance
();
private
final
AtlasGraph
graph
;
...
...
@@ -1861,10 +1862,11 @@ public class EntityGraphMapper {
if
(
reqContext
.
isImportInProgress
()
||
reqContext
.
isInNotificationProcessing
())
{
propagateTags
=
false
;
classification
.
setPropagate
(
propagateTags
);
}
else
{
propagateTags
=
true
;
propagateTags
=
CLASSIFICATION_PROPAGATION_DEFAULT
;
}
classification
.
setPropagate
(
propagateTags
);
}
if
(
removePropagations
==
null
)
{
...
...
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