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

Add streamlit entities #1934

Merged
merged 10 commits into from
Dec 19, 2024
Merged

Add streamlit entities #1934

merged 10 commits into from
Dec 19, 2024

Conversation

sfc-gh-jsikorski
Copy link
Contributor

@sfc-gh-jsikorski sfc-gh-jsikorski commented Dec 9, 2024

Pre-review checklist

  • I've confirmed that instructions included in README.md are still correct after my changes in the codebase.
  • I've added or updated automated unit tests to verify correctness of my new code.
  • I've added or updated integration tests to verify correctness of my new code.
  • I've confirmed that my changes are working by executing CLI's commands manually on MacOS.
  • I've confirmed that my changes are working by executing CLI's commands manually on Windows.
  • I've confirmed that my changes are up-to-date with the target branch.
  • I've described my changes in the release notes.
  • I've described my changes in the section below.

Changes description

Added streamlit entity outline for introducing composability in PRDF v2

@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from 015c955 to 3d36227 Compare December 11, 2024 09:45
@sfc-gh-jsikorski sfc-gh-jsikorski marked this pull request as ready for review December 11, 2024 09:52
@sfc-gh-jsikorski sfc-gh-jsikorski requested review from a team as code owners December 11, 2024 09:52
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from 33999ec to 6bdb1af Compare December 11, 2024 11:50
…ntities

# Conflicts:
#	tests/streamlit/__snapshots__/test_commands.ambr
#	tests/test_data/projects/example_streamlit_v2/snowflake.yml
from snowflake.cli.api.entities.common import EntityBase
from snowflake.cli._plugins.workspace.context import ActionContext
from snowflake.cli.api.entities.common import EntityBase, get_sql_executor
from snowflake.connector.cursor import SnowflakeCursor


class StreamlitEntity(EntityBase[StreamlitEntityModel]):
Copy link
Contributor

Choose a reason for hiding this comment

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

I added a temporary mock implementation of StreamlitEntity for composability with Native Apps in #1856.
The fake logic will be replaced by your PR, but please take a look at the proposed ApplicationPackageChildInterface contract.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Renamed some methods to allign it with your interface.
Bundle and deploy actions are left intact, as they will have to be heavily remodeled, after introducing project-wide bundle map and other changes to output files management

…ntities

# Conflicts:
#	src/snowflake/cli/_plugins/streamlit/streamlit_entity.py
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from 07ccf39 to c6fe394 Compare December 12, 2024 19:57
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch 2 times, most recently from 9de1ca8 to 83af4d1 Compare December 16, 2024 13:22
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from 83af4d1 to 46f4447 Compare December 16, 2024 14:10
@sfc-gh-jsikorski sfc-gh-jsikorski requested review from sfc-gh-gbloom and a team December 16, 2024 14:25
Co-authored-by: Patryk Czajka <patryk.czajka@snowflake.com>
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from cb2d9fe to 423eff7 Compare December 17, 2024 17:13
sfc-gh-pczajka
sfc-gh-pczajka previously approved these changes Dec 18, 2024
Co-authored-by: Guy Bloom <guy.bloom@snowflake.com>
sfc-gh-jsikorski and others added 2 commits December 19, 2024 14:31
…age.py

Co-authored-by: Guy Bloom <guy.bloom@snowflake.com>
@sfc-gh-jsikorski sfc-gh-jsikorski force-pushed the jsikorski/streamlit_entities branch from ab412a9 to 619288f Compare December 19, 2024 13:56
@sfc-gh-jsikorski sfc-gh-jsikorski merged commit 3009e8b into main Dec 19, 2024
20 checks passed
@sfc-gh-jsikorski sfc-gh-jsikorski deleted the jsikorski/streamlit_entities branch December 19, 2024 15:55
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.

3 participants