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

[POC] Feat/update filter options actions #554

Closed
wants to merge 6 commits into from

Conversation

antonymilne
Copy link
Contributor

Description

Screenshot

Notice

  • I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":

    • I submit this contribution under the Apache 2.0 license and represent that I am entitled to do so on behalf of myself, my employer, or relevant third parties, as applicable.
    • I certify that (a) this contribution is my original creation and / or (b) to the extent it is not my original creation, I am authorized to submit this contribution on behalf of the original creator(s) or their licensees.
    • I certify that the use of this contribution as authorized by the Apache 2.0 license does not violate the intellectual property rights of anyone else.
    • I have not referenced individuals, products or companies in any commits, directly or indirectly.
    • I have not added data or restricted code in any commits, directly or indirectly.

}
}
)
figures_outputs[filter.id] = filter.build()
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will currently be nesting infinitely?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Need general "rebuild" action that calls pre_build again and then replaces whole build?

Comment on lines +43 to +49
filter._set_categorical_selectors_options(
force_update=True,
data_load_kwargs={
target_id: {
"points": ctx.args_grouping["external"]["parameters"][0]["value"]
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is pre_build in general

targets=target_ids,
ctds_filter=ctx.args_grouping["external"]["filters"],
ctds_filter_interaction=ctx.args_grouping["external"]["filter_interaction"],
ctds_parameters=ctx.args_grouping["external"]["parameters"],
)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also need to handle case of no parameter, which means adding more complexity here. Need to reload all relevant dataframes and effectively treat filter like a figure.

Should controls be treated like figures too? e.g. how to enable filter_interaction to update filter in control panel?

@petar-qb petar-qb self-requested a review June 27, 2024 11:26
@antonymilne
Copy link
Contributor Author

Superseded by #850 and following PRs.

@antonymilne antonymilne closed this Nov 4, 2024
@antonymilne antonymilne deleted the feat/update_filter_options_actions branch November 4, 2024 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants