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

[Deets in Sheets]: Relationships tab #52057

Merged
merged 3 commits into from
Jan 22, 2025
Merged

[Deets in Sheets]: Relationships tab #52057

merged 3 commits into from
Jan 22, 2025

Conversation

rafpaf
Copy link
Contributor

@rafpaf rafpaf commented Jan 13, 2025

This PR adds a Relationships tab to the question info sidesheet that shows where the question/model is used, and which tables are linked to it.

image

@rafpaf rafpaf changed the title Move relationships from model details page to sidesheet [Deets in Sheet]: Relationships tab Jan 13, 2025
Copy link
Contributor Author

rafpaf commented Jan 13, 2025

This stack of pull requests is managed by Graphite. Learn more about stacking.

@metabase-bot metabase-bot bot added the .Team/AdminWebapp Admin and Webapp team label Jan 13, 2025
@rafpaf rafpaf changed the title [Deets in Sheet]: Relationships tab 🚧 WIP [Deets in Sheets]: Relationships tab 🚧 Jan 13, 2025
@rafpaf rafpaf marked this pull request as ready for review January 13, 2025 20:12
Copy link

graphite-app bot commented Jan 13, 2025

Graphite Automations

"Warn authors when publishing large PRs" took an action on this PR • (01/13/25)

1 teammate was notified to this PR based on Raphael Krut-Landau's automation.

Copy link

trunk-io bot commented Jan 13, 2025

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@rafpaf rafpaf force-pushed the mdeets/relationships branch 2 times, most recently from 935561e to 5f48d31 Compare January 18, 2025 00:18
@rafpaf rafpaf force-pushed the mdeets/relationships branch 2 times, most recently from 74cdf05 to 5eb7e4b Compare January 20, 2025 19:03
@rafpaf rafpaf changed the title 🚧 WIP [Deets in Sheets]: Relationships tab 🚧 🚧 WIP [Deets in Sheets]: Relationships tab Jan 20, 2025
@rafpaf rafpaf force-pushed the mdeets/relationships branch from 505bfc6 to 9f301fd Compare January 20, 2025 23:31
@rafpaf rafpaf added the no-backport Do not backport this PR to any branch label Jan 20, 2025 — with Graphite App
@rafpaf rafpaf changed the title 🚧 WIP [Deets in Sheets]: Relationships tab [Deets in Sheets]: Relationships tab Jan 20, 2025
@rafpaf rafpaf force-pushed the mdeets/relationships branch from 6983233 to 8031e0e Compare January 21, 2025 01:33
@rafpaf rafpaf requested review from kdoh and a team January 21, 2025 13:49
@rafpaf rafpaf force-pushed the mdeets/relationships branch from 8031e0e to 983f713 Compare January 21, 2025 17:28
export const ToggleFullList = ({
isExpanded,
toggle,
sliceLength,
Copy link
Contributor

Choose a reason for hiding this comment

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

!nit sliceLength feels a bit odd to me

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added a bit of documentation

@@ -19,3 +22,26 @@ export const getIconPropsForSource = (
const iconProps = iconModel ? getIcon({ model: iconModel }) : undefined;
return iconProps;
};

export const getJoinedTablesWithIcons = (question: Question) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

you might someone else to double check you on this part...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alex P helped me with this part

@rafpaf rafpaf force-pushed the mdeets/relationships branch from 983f713 to c6aefd4 Compare January 21, 2025 19:43
@rafpaf rafpaf requested a review from sloansparger January 21, 2025 20:36
@rafpaf rafpaf removed the request for review from kdoh January 21, 2025 21:21
@rafpaf rafpaf force-pushed the mdeets/relationships branch from e237636 to 5a60e06 Compare January 22, 2025 14:50
Copy link
Contributor

e2e tests failed on 625f7302d0f40f32f746f0b3b4c452d707a16a27-1

e2e test run

File Test Name
metrics-dashboard.cy.spec.js scenarios > metrics > dashboard > should be possible to add metrics to a dashboard

@rafpaf rafpaf merged commit 1ba4aba into master Jan 22, 2025
135 checks passed
Copy link
Contributor Author

rafpaf commented Jan 22, 2025

Merge activity

  • Jan 22, 4:30 PM EST: A user merged this pull request with Graphite.

@rafpaf rafpaf deleted the mdeets/relationships branch January 22, 2025 21:30
@github-actions github-actions bot added this to the 0.53 milestone Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-backport Do not backport this PR to any branch .Team/AdminWebapp Admin and Webapp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants