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
fe22a652
Commit
fe22a652
authored
6 years ago
by
Madhan Neethiraj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ATLAS-3058: fix for failure in saved-search
parent
b9642b62
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
AtlasSavedSearchDTO.java
...he/atlas/repository/ogm/profiles/AtlasSavedSearchDTO.java
+1
-1
AtlasUserProfileDTO.java
...he/atlas/repository/ogm/profiles/AtlasUserProfileDTO.java
+5
-0
No files found.
repository/src/main/java/org/apache/atlas/repository/ogm/profiles/AtlasSavedSearchDTO.java
View file @
fe22a652
...
@@ -44,7 +44,7 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
...
@@ -44,7 +44,7 @@ public class AtlasSavedSearchDTO extends AbstractDataTransferObject<AtlasUserSav
private
static
final
String
PROPERTY_UNIQUE_NAME
=
"uniqueName"
;
private
static
final
String
PROPERTY_UNIQUE_NAME
=
"uniqueName"
;
private
static
final
String
PROPERTY_SEARCH_TYPE
=
"searchType"
;
private
static
final
String
PROPERTY_SEARCH_TYPE
=
"searchType"
;
private
static
final
String
PROPERTY_UI_PARAMETERS
=
"uiParameters"
;
private
static
final
String
PROPERTY_UI_PARAMETERS
=
"uiParameters"
;
p
rivate
static
final
String
PROPERTY_USER_PROFILE
=
"userProfile"
;
p
ublic
static
final
String
PROPERTY_USER_PROFILE
=
"userProfile"
;
@Inject
@Inject
public
AtlasSavedSearchDTO
(
AtlasTypeRegistry
typeRegistry
)
{
public
AtlasSavedSearchDTO
(
AtlasTypeRegistry
typeRegistry
)
{
...
...
This diff is collapsed.
Click to expand it.
repository/src/main/java/org/apache/atlas/repository/ogm/profiles/AtlasUserProfileDTO.java
View file @
fe22a652
...
@@ -93,11 +93,16 @@ public class AtlasUserProfileDTO extends AbstractDataTransferObject<AtlasUserPro
...
@@ -93,11 +93,16 @@ public class AtlasUserProfileDTO extends AbstractDataTransferObject<AtlasUserPro
AtlasEntity
entity
=
toEntity
(
obj
);
AtlasEntity
entity
=
toEntity
(
obj
);
AtlasEntityWithExtInfo
entityWithExtInfo
=
new
AtlasEntityWithExtInfo
(
entity
);
AtlasEntityWithExtInfo
entityWithExtInfo
=
new
AtlasEntityWithExtInfo
(
entity
);
AtlasObjectId
userProfileId
=
new
AtlasObjectId
(
entity
.
getGuid
(),
AtlasUserProfileDTO
.
ENTITY_TYPE_NAME
,
Collections
.
singletonMap
(
AtlasUserProfileDTO
.
PROPERTY_USER_NAME
,
obj
.
getName
()));
List
<
AtlasObjectId
>
objectIds
=
new
ArrayList
<>();
List
<
AtlasObjectId
>
objectIds
=
new
ArrayList
<>();
for
(
AtlasUserSavedSearch
ss
:
obj
.
getSavedSearches
())
{
for
(
AtlasUserSavedSearch
ss
:
obj
.
getSavedSearches
())
{
AtlasEntity
ssEntity
=
savedSearchDTO
.
toEntity
(
ss
);
AtlasEntity
ssEntity
=
savedSearchDTO
.
toEntity
(
ss
);
ssEntity
.
setAttribute
(
AtlasSavedSearchDTO
.
PROPERTY_USER_PROFILE
,
userProfileId
);
entityWithExtInfo
.
addReferredEntity
(
ssEntity
);
entityWithExtInfo
.
addReferredEntity
(
ssEntity
);
objectIds
.
add
(
new
AtlasObjectId
(
ssEntity
.
getGuid
(),
savedSearchDTO
.
getEntityType
().
getTypeName
(),
savedSearchDTO
.
getUniqueAttributes
(
ss
)));
objectIds
.
add
(
new
AtlasObjectId
(
ssEntity
.
getGuid
(),
savedSearchDTO
.
getEntityType
().
getTypeName
(),
savedSearchDTO
.
getUniqueAttributes
(
ss
)));
...
...
This diff is collapsed.
Click to expand it.
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