mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-12-28 07:58:31 +00:00
fix user asset not comming in mydata and widget (#17234)
This commit is contained in:
parent
f52e93f88f
commit
3606d47a7d
@ -206,7 +206,7 @@ const AssetsTabs = forwardRef(
|
||||
return `(dataProducts.fullyQualifiedName:"${encodedFqn}")`;
|
||||
|
||||
case AssetsOfEntity.TEAM:
|
||||
return `(owner.fullyQualifiedName:"${escapeESReservedCharacters(
|
||||
return `(owners.fullyQualifiedName:"${escapeESReservedCharacters(
|
||||
fqn
|
||||
)}")`;
|
||||
|
||||
|
||||
@ -55,8 +55,8 @@ const MyDataWidgetInternal = ({
|
||||
try {
|
||||
const teamsIds = (currentUser.teams ?? []).map((team) => team.id);
|
||||
const mergedIds = [
|
||||
...teamsIds.map((id) => `owner.id:${id}`),
|
||||
`owner.id:${currentUser.id}`,
|
||||
...teamsIds.map((id) => `owners.id:${id}`),
|
||||
`owners.id:${currentUser.id}`,
|
||||
].join(' OR ');
|
||||
|
||||
const queryFilter = `(${mergedIds})`;
|
||||
|
||||
@ -90,7 +90,7 @@ describe('MyDataWidget component', () => {
|
||||
'',
|
||||
1,
|
||||
10,
|
||||
'(owner.id:113)',
|
||||
'(owners.id:113)',
|
||||
'',
|
||||
'',
|
||||
'all'
|
||||
|
||||
@ -226,7 +226,7 @@ describe('Test Teams Page', () => {
|
||||
'',
|
||||
0,
|
||||
0,
|
||||
'owner.id:f9578f16-363a-4788-80fb-d05816c9e169',
|
||||
'owners.id:f9578f16-363a-4788-80fb-d05816c9e169',
|
||||
'',
|
||||
'',
|
||||
'all'
|
||||
|
||||
@ -200,7 +200,7 @@ const TeamsPage = () => {
|
||||
``,
|
||||
0,
|
||||
0,
|
||||
`owner.id:${selectedTeam.id}`,
|
||||
`owners.id:${selectedTeam.id}`,
|
||||
'',
|
||||
'',
|
||||
SearchIndex.ALL
|
||||
|
||||
@ -78,8 +78,8 @@ const UserPage = () => {
|
||||
const myDataQueryFilter = useMemo(() => {
|
||||
const teamsIds = (userData.teams ?? []).map((team) => team.id);
|
||||
const mergedIds = [
|
||||
...teamsIds.map((id) => `owner.id:${id}`),
|
||||
`owner.id:${userData.id}`,
|
||||
...teamsIds.map((id) => `owners.id:${id}`),
|
||||
`owners.id:${userData.id}`,
|
||||
].join(' OR ');
|
||||
|
||||
return `(${mergedIds})`;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user