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

use topological_sort for summary table datasets #1277

Conversation

m7pr
Copy link
Contributor

@m7pr m7pr commented Jul 29, 2024

Part of #1253

@m7pr m7pr added the core label Jul 29, 2024
@m7pr m7pr mentioned this pull request Jul 29, 2024
63 tasks
ordered_datanames <- intersect(ordered_datanames, datanames)

rows <- lapply(
ordered_datanames,
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd apply this to teal_data_datanames function so that we keep this order consistent in whole teal application.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gogonzo do you mean teal.data::datanames() ? https://github.com/insightsengineering/teal.data/blob/main/R/teal_data-datanames.R#L34

Sure, that would make sense. So each time datanames(teal_data) is called we already get names in the topological sort order. So let's abandon this branch and I'll provide a PR in teal.data

Copy link
Contributor

Choose a reason for hiding this comment

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

I mean teal:::teal_data_datanames

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created a small PR in teal.data package. Still WIP. Asked @averissimo for the review insightsengineering/teal.data#318

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ignore my PR, I will investigate teal:::teal_data_datanames

@m7pr
Copy link
Contributor Author

m7pr commented Jul 30, 2024

Closing in favour of #1280

@m7pr m7pr closed this Jul 30, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2024
@m7pr m7pr deleted the summary_sort@data_module_as_tab@669_insertUI@main branch July 30, 2024 12:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants