Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assets improvements part 2 #14255

Merged
merged 32 commits into from
Dec 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
c475bf8
fix: make filters consistent
karanh37 Dec 5, 2023
a15f228
disable if no selection
karanh37 Dec 6, 2023
9c8db63
fix: hide notification
karanh37 Dec 6, 2023
3258b01
fix: failed status data
karanh37 Dec 6, 2023
e72ada2
localization
karanh37 Dec 6, 2023
051c10e
fix notification loading
chirag-madlani Dec 6, 2023
081cdbe
Merge branch 'assets-filters2' of https://github.com/open-metadata/Op…
chirag-madlani Dec 6, 2023
82ee401
remove close icon here
chirag-madlani Dec 6, 2023
c5c1d63
fix: cypress
karanh37 Dec 6, 2023
9559693
update error alert design
karanh37 Dec 6, 2023
d2d7417
fix alert styling
karanh37 Dec 6, 2023
f125cb2
fix: minor issues
karanh37 Dec 6, 2023
f84c972
fix: redirect link of data product
karanh37 Dec 6, 2023
2f6c177
fix: minor suggestion prompt
karanh37 Dec 6, 2023
f1bb196
Merge branch 'main' into assets-filters2
karanh37 Dec 6, 2023
b034472
complete user flow
chirag-madlani Dec 6, 2023
2957fc2
fix: glossary cypress
karanh37 Dec 6, 2023
acc2af3
update alert view
chirag-madlani Dec 6, 2023
88c6639
Merge branch 'assets-filters2' of https://github.com/open-metadata/Op…
chirag-madlani Dec 6, 2023
b4260da
fix tags manipulation
chirag-madlani Dec 6, 2023
4f465d9
fix: domain reload fixes
karanh37 Dec 6, 2023
87b25a1
fix: minor loading issue on delete
karanh37 Dec 6, 2023
d6f1ca1
fix: add admin check for activity feed
karanh37 Dec 6, 2023
e7df356
fix: minor css fixes
karanh37 Dec 6, 2023
f5ffbf3
fix: localisation
karanh37 Dec 6, 2023
c12ce7f
Merge branch 'main' into assets-filters2
karanh37 Dec 6, 2023
ae171bb
fix: minor issue
karanh37 Dec 6, 2023
55df614
Merge remote-tracking branch 'origin/main' into assets-filters2
ShaileshParmar11 Dec 6, 2023
b6f82ed
miner cypress fix
ShaileshParmar11 Dec 6, 2023
b084157
add mlmodelservice as mlmodel parent
07Himank Dec 6, 2023
7b732c6
Merge branch 'main' into assets-filters2
karanh37 Dec 6, 2023
04bf5e9
fix: added null checks
karanh37 Dec 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,8 @@ public void propagateInheritedFieldsToChildren(
if (changeDescription != null) {
Pair<String, Map<String, Object>> updates = getInheritedFieldChanges(changeDescription);
Pair<String, String> parentMatch;
if (updates.getValue().get("type").toString().equalsIgnoreCase("domain")
if (!updates.getValue().isEmpty()
&& updates.getValue().get("type").toString().equalsIgnoreCase("domain")
&& (entityType.equalsIgnoreCase(Entity.DATABASE_SERVICE)
|| entityType.equalsIgnoreCase(Entity.DASHBOARD_SERVICE)
|| entityType.equalsIgnoreCase(Entity.MESSAGING_SERVICE)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
"indexName": "mlmodel_service_search_index",
"indexMappingFile": "/elasticsearch/%s/mlmodel_service_index_mapping.json",
"alias": "mlModelService",
"parentAliases": ["all"]
"parentAliases": ["all","mlModelService"]
},
"testCaseResolutionStatus": {
"indexName": "test_case_resolution_status_search_index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export const NEW_GLOSSARY = {
reviewer: 'Aaron Johnson',
addReviewer: true,
tag: 'PersonalData.Personal',
isMutually: true,
};
export const NEW_GLOSSARY_1 = {
name: 'Cypress Product%Glossary',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,11 @@ const createGlossary = (glossaryData) => {
.should('be.visible')
.type(glossaryData.description);

cy.get('[data-testid="mutually-exclusive-button"]').scrollIntoView().click();
if (glossaryData.isMutually) {
cy.get('[data-testid="mutually-exclusive-button"]')
.scrollIntoView()
.click();
}

if (glossaryData.tag) {
// Add tag
Expand Down Expand Up @@ -311,10 +315,12 @@ const removeAssetsFromGlossaryTerm = (glossaryTerm, glossary) => {
cy.get('[data-testid="delete-button"]').click();
cy.get("[data-testid='save-button']").click();

interceptURL('GET', '/api/v1/search/query*', 'assetTab');
cy.get('[data-testid="overview"]').click();
cy.get('[data-testid="assets"]').click();

// go assets tab
goToAssetsTab(glossaryTerm.name, glossaryTerm.fullyQualifiedName, true);
verifyResponseStatusCode('@assetTab', 200);
verifyResponseStatusCode('@searchAssets', 200);

checkAssetsCount(glossaryTerm.assets.length - (index + 1));
});
};
Expand Down Expand Up @@ -719,7 +725,7 @@ describe('Glossary page should work properly', () => {

const ProductTerms = Object.values(NEW_GLOSSARY_1_TERMS);
ProductTerms.forEach((term) =>
createGlossaryTerm(term, NEW_GLOSSARY_1, 'Approved')
createGlossaryTerm(term, NEW_GLOSSARY_1, 'Approved', false)
);
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ describe('Postgres Ingestion', () => {

cy.get('#root\\/filterCondition')
.scrollIntoView()
.type(`s.query like '%${tableName}%'`);
.type(`s.query like '%%${tableName}%%'`);
cy.get('[data-testid="submit-btn"]')
.scrollIntoView()
.should('be.visible')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import {
ThreadTaskStatus,
ThreadType,
} from '../../../generated/entity/feed/thread';
import { useAuth } from '../../../hooks/authHooks';
import { useElementInView } from '../../../hooks/useElementInView';
import { getAllFeeds, getFeedCount } from '../../../rest/feedsAPI';
import { getCountBadge, getEntityDetailLink } from '../../../utils/CommonUtils';
Expand Down Expand Up @@ -81,6 +82,7 @@ export const ActivityFeedTab = ({
});
const { subTab: activeTab = ActivityFeedTabs.ALL } =
useParams<{ subTab: ActivityFeedTabs }>();
const { isAdminUser } = useAuth();
const [taskFilter, setTaskFilter] = useState<TaskFilter>('open');
const [allCount, setAllCount] = useState(0);
const [tasksCount, setTasksCount] = useState(0);
Expand Down Expand Up @@ -162,7 +164,7 @@ export const ActivityFeedTab = ({
undefined,
undefined,
ThreadType.Task,
FeedFilter.OWNER,
isAdminUser ? undefined : FeedFilter.OWNER,
undefined,
userId
).then((res) => {
Expand All @@ -178,7 +180,7 @@ export const ActivityFeedTab = ({
undefined,
undefined,
ThreadType.Conversation,
FeedFilter.OWNER,
isAdminUser ? undefined : FeedFilter.OWNER,
undefined,
userId
).then((res) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

import { Typography } from 'antd';
import { AxiosError } from 'axios';
import { isEmpty } from 'lodash';
import React, { useCallback, useEffect, useRef, useState } from 'react';
import { useTranslation } from 'react-i18next';
import Loader from '../../components/Loader/Loader';
Expand Down Expand Up @@ -239,7 +240,7 @@ const Suggestions = ({
return <Loader />;
}

if (options.length === 0 && !isTourOpen) {
if (options.length === 0 && !isTourOpen && !isEmpty(searchText)) {
return (
<Typography.Text>
<Transi18next
Expand Down

This file was deleted.

This file was deleted.

Loading
Loading