OpenMetadata icon indicating copy to clipboard operation
OpenMetadata copied to clipboard

issue with approving Glossary terms after (re-)importing them via CSV

Open ManKo78 opened this issue 2 years ago • 3 comments

Affected module not sure, maybe ingestion

Describe the bug I have an issue with approving Glossary terms after (re-)importing them via CSV.

Two Glossary Terms were created in our system, one was already approved, one still in status Draft. I’ve exported them to get the structure I need to import more terms.

In addition to the 2 existing Glossary Terms, I added 4 additional terms and imported all 6 via the CSV file into the system. All 6 Glossary Terms were in status draft now (even the one which was already approved). For the 4 added terms I could proceed with the approval task and approve the Glossary Terms.

For the 2 former existing terms NO new approval was triggered. And the remaining approval task did not work anymore. Here I get the error „GlossaryTerm instance for Gross Merchandise Volume.Gross Merchandise Volume not found“.

There is a reviewer set (directly with the imported data) for all assets (also the existing ones).

To Reproduce

Create Glossary Terms. Export the existing terms, import to a sheet and add more Glossary Terms (fill all fields). Import the file into OpenMetadata again.

Expected behavior My expectation would be that the import doesn't work for pre-existing Glossary Terms, or that if they are overwritten, approval tasks will be triggered again.

Version: OS: Ubuntu Python version: 3.11 OpenMetadata version: 1.2.4 Ingestion package version: 1.2.4

Additional context In the logs we don’t see an error.

ManKo78 avatar Jan 29 '24 09:01 ManKo78

@harshach , we experienced the same behavior in OM v1.13.2, so why is it happening again? I thought this issue had already been fixed. Could you please clarify whether this is the expected behavior for glossaries in this version or if it is a regression?

AbanoubSamir004 avatar Oct 15 '26 09:10 AbanoubSamir004

7. @harshach , we experienced the same behavior in OM v1.13.2, so why is it happening again? I thought this issue had already been fixed. Could you please clarify whether this is the expected behavior for glossaries in this version or if it is a regression?

@AbanoubSamir004 on 1.13.x an empty status cell in the CSV is treated as Draft, so existing approved terms get reset on re-import. Fixed on main in #34541, and will be part of next major release(2.1). For now keep the status column filled (Approved) for existing terms when you re-import.

Vishnuujain avatar Oct 15 '26 10:10 Vishnuujain

@Vishnuujain Thanks for letting me know! But if I keep the status column set to Approved while user is importing the csv, will it skip the reviewer approval step for user requests?

AbanoubSamir004 avatar Oct 15 '26 14:10 AbanoubSamir004