Remove data product from glossary assets (#15527)

* filter data products from glossary assets

* fix glossary path

* revert
This commit is contained in:
Karan Hotchandani 2024-03-12 18:57:14 +05:30 committed by GitHub
parent 6344782ac5
commit 9135b8faaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 4 deletions

View File

@ -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,
},
},
],

View File

@ -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,
},
},
],