-
Notifications
You must be signed in to change notification settings - Fork 170
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
Preconfig conditional format #1259
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Should this be a preprocessing Step?Because the preprocessing steps are particularly ordered (they rely on each other's previous results to create dataframes for the passed args and finally return the df_names and dataframe args) it doesn't make sense to treat this as the same sort of preprocessing step as it causes additional complexity that is not obvious by just reading the step_managers. Not really sure what the advantage of it being a preprocessing step vs just something that happens in the setup of the steps manager. The second approach is cleaner cause there is infrastructure overhead like passing the args, df_names around, and setting the execution data... Proposal
This will give us more type safety, (we can actually pass the dfs as a list of dataframes to do additional validation of the column definitions), and make the order of operations obvious in the steps manager. In addition, it's even kinda of weird to have this as a step performer because its just setting the df_formats step performer and not actually generating any code / comments, etc. I don't think we gain anything by explicitly making this a preprocessing step, right? |
mitosheet/mitosheet/code_chunks/postprocessing/set_dataframe_format_code_chunk.py
Outdated
Show resolved
Hide resolved
mitosheet/mitosheet/code_chunks/postprocessing/set_dataframe_format_code_chunk.py
Outdated
Show resolved
Hide resolved
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.
Code is really clean and looks nice. LGTM once you fix up the minor review here!
mitosheet/mitosheet/streamlit/v1/apps/column_definitions_app.py
Outdated
Show resolved
Hide resolved
|
Description
Preconfigure conditional formatting in a Streamlit / Enterprise app.
Testing
See the tests + use the sample app I created in
streamlit/v1/apps
Documentation
Note if any new documentation needs to addressed or reviewed.