Skip to content

[RFC] in BI integration docs, move from translators to map_asset_specs #24802

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

sryza
Copy link
Contributor

@sryza sryza commented Sep 26, 2024

Summary & Motivation

How I Tested These Changes

Changelog

NOCHANGELOG

branch-name: literal-tag-set
branch-name: power-bi-asset-type-tag
@graphite-app graphite-app bot added the area: docs Related to documentation in general label Sep 26, 2024
@sryza sryza requested a review from schrockn September 26, 2024 15:31

def get_dashboard_spec(self, data: PowerBIContentData) -> AssetSpec:
return super().get_dashboard_spec(data)._replace(owners=["my_team"])
def customize_powerbi_asset(spec: AssetSpec) -> AssetSpec:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

Copy link
Member

@schrockn schrockn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is even more glorious than I anticipated

# We prefix all dashboard asset keys with "powerbi" for organizational
# purposes
return super().get_dashboard_asset_key(data).with_prefix("powerbi")
return spec._replace(key=key, owners="my_team")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an interesting decision point where we leak the implementation detail that we inherit from NamedTuple in a heavy way. We probably can't change things at this point, but worth nothing that we are telling users to use _replace when the might expect dataclass or pydantic variants of object copies.

Copy link
Contributor

graphite-app bot commented Sep 28, 2024

Graphite Automations

"Label and add CE on all Docs" took an action on this PR • (09/28/24)

3 reviewers were added to this PR based on Pedram Navid's automation.

Base automatically changed from power-bi-asset-type-tag to master October 7, 2024 19:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: docs Related to documentation in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants