-
Notifications
You must be signed in to change notification settings - Fork 147
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
Conversation
} | ||
} | ||
) | ||
figures_outputs[filter.id] = filter.build() |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
?
filter._set_categorical_selectors_options( | ||
force_update=True, | ||
data_load_kwargs={ | ||
target_id: { | ||
"points": ctx.args_grouping["external"]["parameters"][0]["value"] | ||
} | ||
} |
There was a problem hiding this comment.
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"], | ||
) | ||
|
There was a problem hiding this comment.
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?
Superseded by #850 and following PRs. |
Description
Screenshot
Notice
I acknowledge and agree that, by checking this box and clicking "Submit Pull Request":