mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-30 03:46:10 +00:00
Remove data product from glossary assets (#15527)
* filter data products from glossary assets * fix glossary path * revert
This commit is contained in:
parent
6344782ac5
commit
9135b8faaf
@ -10,6 +10,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
import { EntityType } from '../enums/entity.enum';
|
||||
import {
|
||||
MOCKED_GLOSSARY_TERMS,
|
||||
MOCKED_GLOSSARY_TERMS_1,
|
||||
@ -41,12 +42,17 @@ describe('Glossary Utils', () => {
|
||||
must_not: [
|
||||
{
|
||||
term: {
|
||||
entityType: 'glossaryTerm',
|
||||
entityType: EntityType.GLOSSARY_TERM,
|
||||
},
|
||||
},
|
||||
{
|
||||
term: {
|
||||
entityType: 'tag',
|
||||
entityType: EntityType.TAG,
|
||||
},
|
||||
},
|
||||
{
|
||||
term: {
|
||||
entityType: EntityType.DATA_PRODUCT,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
@ -13,6 +13,7 @@
|
||||
|
||||
import { StatusType } from '../components/common/StatusBadge/StatusBadge.interface';
|
||||
import { FQN_SEPARATOR_CHAR } from '../constants/char.constants';
|
||||
import { EntityType } from '../enums/entity.enum';
|
||||
import { Glossary } from '../generated/entity/data/glossary';
|
||||
import { GlossaryTerm, Status } from '../generated/entity/data/glossaryTerm';
|
||||
import { EntityReference } from '../generated/type/entityReference';
|
||||
@ -93,12 +94,17 @@ export const getQueryFilterToExcludeTerm = (fqn: string) => ({
|
||||
must_not: [
|
||||
{
|
||||
term: {
|
||||
entityType: 'glossaryTerm',
|
||||
entityType: EntityType.GLOSSARY_TERM,
|
||||
},
|
||||
},
|
||||
{
|
||||
term: {
|
||||
entityType: 'tag',
|
||||
entityType: EntityType.TAG,
|
||||
},
|
||||
},
|
||||
{
|
||||
term: {
|
||||
entityType: EntityType.DATA_PRODUCT,
|
||||
},
|
||||
},
|
||||
],
|
||||
|
Loading…
x
Reference in New Issue
Block a user