-
Notifications
You must be signed in to change notification settings - Fork 4k
Add deprecation note to add_rows command
#13080
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
Conversation
add_rows commandadd_rows command
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
✅ PR preview is ready!
|
add_rows commandadd_rows command
add_rows commandadd_rows command
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.
Pull Request Overview
This PR implements a soft deprecation of the add_rows command by adding deprecation warnings and documentation notes. The purpose is to gather user feedback on whether this feature is still valuable before considering full removal.
Key Changes:
- Added deprecation warning that logs to console (not shown in browser) when
add_rowsis called - Updated docstring with an
.. important::directive noting the deprecation and linking to GitHub issue #13063 - Added unit test to verify the deprecation warning is triggered correctly
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
lib/streamlit/elements/arrow.py |
Added deprecation warning call and docstring note to the add_rows method |
lib/tests/streamlit/elements/arrow_add_rows_test.py |
Added unit test to verify deprecation warning is logged when add_rows is called |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
sfc-gh-nbellante
left a comment
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.
LGTM 👍
Describe your changes
Soft deprecation of
add_rows(showing logs + note on docs) to gather more feedback on the value and use-cases of the feature. More context: #13063GitHub Issue Link (if applicable)
add_rows#13063Testing Plan
Contribution License Agreement
By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.