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

How to programmatically add tags? #245

Closed
mikeweltevrede opened this issue May 2, 2023 · 1 comment · Fixed by #272
Closed

How to programmatically add tags? #245

mikeweltevrede opened this issue May 2, 2023 · 1 comment · Fixed by #272
Labels
purview question A question more about Purview and less about PyApacheAtlas

Comments

@mikeweltevrede
Copy link

mikeweltevrede commented May 2, 2023

What is your desired outcome
I would provide a list of strings which would be added as tags with the same functionality as this UI action: https://learn.microsoft.com/en-us/azure/purview/catalog-asset-details#add-a-tag-to-an-asset. This way, we can filter on them in the browse view here:

EDIT: I found that we can use pyapacheatlas.core.client.PurviewClient.update_entity_labels(). This was unclear to me since Labels are also another term within Purview. Perhaps the name should be updated?

What have you tried so far

Screenshots
See screenshot of desired outcome here: https://learn.microsoft.com/en-us/azure/purview/catalog-asset-details#add-a-tag-to-an-asset

Desktop (please complete the following information):

  • OS: Windows
  • PyApacheAtlas Version (python -m pyapacheatlas --version): 0.15.0

Additional context
N/A

@mikeweltevrede mikeweltevrede added the purview question A question more about Purview and less about PyApacheAtlas label May 2, 2023
@wjohnson
Copy link
Owner

Thanks for this feedback, @mikeweltevrede ! I think adding a facade method that follows the Purview naming conventions would prevent others from having the same question. I'll work to add this into the next version!

wjohnson added a commit that referenced this issue Dec 23, 2023
… entity tags

a.k.a. labels.

Added sample for creating Purview Tags.

Closes #245
wjohnson added a commit that referenced this issue Dec 23, 2023
… entity tags

a.k.a. labels.

Added sample for creating Purview Tags.

Closes #245
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
purview question A question more about Purview and less about PyApacheAtlas
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants