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

Do not show a notice if there is no resource state for schema #1300

Merged
merged 2 commits into from
Apr 30, 2024

Conversation

sultaniman
Copy link
Collaborator

This PR adjusts the UI in streamlit app to not show notice message if there is no resource state for the given schema.
Related to: #1264

@sultaniman sultaniman added the enhancement New feature or request label Apr 29, 2024
@sultaniman sultaniman self-assigned this Apr 29, 2024
Copy link

netlify bot commented Apr 29, 2024

Deploy Preview for dlt-hub-docs canceled.

Name Link
🔨 Latest commit e574beb
🔍 Latest deploy log https://app.netlify.com/sites/dlt-hub-docs/deploys/662fb70c5d91f200089e4ca8

@sh-rp
Copy link
Collaborator

sh-rp commented Apr 30, 2024

@sultaniman Is there some way of writing some tests for this?

@sultaniman
Copy link
Collaborator Author

@sh-rp unfortunately current testing support is not very pytest friendly streamlit/streamlit#5683 and I would say is incomplete for example if you would like to go beyond simply testing clicks and rendering it will be impossible to do because AppTest which streamlit has hides many things and overcoming them using workarounds turned bad when I tried, because it made testing things unreliable.

Copy link
Collaborator

@rudolfix rudolfix left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -24,9 +24,9 @@ def resource_state_info(
sources_state = pipeline.state.get("sources") or {}
Copy link
Collaborator

Choose a reason for hiding this comment

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

we need to start using helper methods to get source and resource state but OK for now

@sultaniman sultaniman merged commit 8fc9361 into devel Apr 30, 2024
50 checks passed
@sultaniman sultaniman deleted the fix/streamlit-improvements branch April 30, 2024 09:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants