Hi <@UV0M2EB8Q>, I am building a custom action for tag propagation. (I started here with your code: https://github.com/acryldata/datahub-actions/blob/5d881b5c1de2d754b6bb843e261bd2a8e1839e73/datahub-actions/src/datahub_actions/plugin/action/tag/tag_propagation_action.py|https://github.com/acryldata/datahub-actions/blob/5d881b5c1de2d754b6bb843e261bd2a8[…]src/datahub_actions/plugin/action/tag/tag_propagation_action.py). I always like to try to reuse as much as I can, thanks! This code only add tags to datasets. I need the ability to add tags to charts and dashboards as well. Since this code only pulls in the action:
config parameters tag_prefixes:
from the yaml (see below). The issue I run into is this, I would need to define an emitter via REST, and need the gms_server and token in order to run the emitter, how do I pull in the datahub:
information from the yaml in order to use it? The PipelineContext
class does not have an emit
method that I can use. Thanks for any direction.
#type: "tag_propagation"
type: "custom-tag-prop:CustomTagPropagationAction"
config:
tag_prefixes:
- SourcesSDP
datahub:
server: "https://<my-server>/api/gms"
token: "<my-token>"```