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
37d64be5
Commit
37d64be5
authored
Mar 30, 2020
by
chaitali borole
Committed by
nixonrodrigues
Mar 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3699 : Update authorization for Update-Entity for audit logs for DENY policy
Signed-off-by:
nixonrodrigues
<
nixon@apache.org
>
parent
4d0f5ce2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
AtlasEntityStoreV2.java
...e/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
+1
-3
EntityGraphMapper.java
...he/atlas/repository/store/graph/v2/EntityGraphMapper.java
+2
-0
No files found.
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java
View file @
37d64be5
...
...
@@ -1070,7 +1070,7 @@ public class AtlasEntityStoreV2 implements AtlasEntityStore {
}
}
private
EntityMutationResponse
createOrUpdate
(
EntityStream
entityStream
,
boolean
isPartialUpdate
,
boolean
replaceClassifications
,
boolean
replaceBusinessAttributes
)
throws
AtlasBaseException
{
private
EntityMutationResponse
createOrUpdate
(
EntityStream
entityStream
,
boolean
isPartialUpdate
,
boolean
replaceClassifications
,
boolean
replaceBusinessAttributes
)
throws
AtlasBaseException
{
if
(
LOG
.
isDebugEnabled
())
{
LOG
.
debug
(
"==> createOrUpdate()"
);
}
...
...
@@ -1274,8 +1274,6 @@ public class AtlasEntityStoreV2 implements AtlasEntityStore {
requestContext
.
recordEntityGuidUpdate
(
entity
,
guid
);
}
entityGraphMapper
.
setCustomAttributes
(
vertex
,
entity
);
context
.
addUpdated
(
guid
,
entity
,
entityType
,
vertex
);
}
else
{
graphDiscoverer
.
validateAndNormalize
(
entity
);
...
...
repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
View file @
37d64be5
...
...
@@ -273,6 +273,7 @@ public class EntityGraphMapper {
mapRelationshipAttributes
(
createdEntity
,
entityType
,
vertex
,
CREATE
,
context
);
mapAttributes
(
createdEntity
,
entityType
,
vertex
,
CREATE
,
context
);
setCustomAttributes
(
vertex
,
createdEntity
);
resp
.
addEntity
(
CREATE
,
constructHeader
(
createdEntity
,
entityType
,
vertex
));
addClassifications
(
context
,
guid
,
createdEntity
.
getClassifications
());
...
...
@@ -292,6 +293,7 @@ public class EntityGraphMapper {
mapRelationshipAttributes
(
updatedEntity
,
entityType
,
vertex
,
UPDATE
,
context
);
mapAttributes
(
updatedEntity
,
entityType
,
vertex
,
UPDATE
,
context
);
setCustomAttributes
(
vertex
,
updatedEntity
);
if
(
isPartialUpdate
)
{
resp
.
addEntity
(
PARTIAL_UPDATE
,
constructHeader
(
updatedEntity
,
entityType
,
vertex
));
...
...
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