Skip to content

Conversation

@lukasmasuch
Copy link
Collaborator

@lukasmasuch lukasmasuch commented Nov 20, 2025

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: #13063

GitHub Issue Link (if applicable)

Testing Plan

  • Added unit test.

Contribution License Agreement

By submitting this pull request you agree that all contributions to this project are made under the Apache 2.0 license.

@lukasmasuch lukasmasuch changed the title Add deprecation note to add_rows command [WIP] Add deprecation note to add_rows command Nov 20, 2025
@snyk-io
Copy link
Contributor

snyk-io bot commented Nov 20, 2025

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 20, 2025

✅ PR preview is ready!

Name Link
📦 Wheel file https://core-previews.s3-us-west-2.amazonaws.com/pr-13080/streamlit-1.51.0-py3-none-any.whl
📦 @streamlit/component-v2-lib Download from artifacts
🕹️ Preview app pr-13080.streamlit.app (☁️ Deploy here if not accessible)

@lukasmasuch lukasmasuch added security-assessment-completed Security assessment has been completed for PR change:other PR contains other type of change change:breaking PR contains breaking change that affects backwards compatibility impact:users PR changes affect end users labels Nov 20, 2025
@lukasmasuch lukasmasuch marked this pull request as ready for review November 20, 2025 22:50
@lukasmasuch lukasmasuch changed the title [WIP] Add deprecation note to add_rows command add deprecation note to add_rows command Nov 20, 2025
@lukasmasuch lukasmasuch changed the title add deprecation note to add_rows command Add deprecation note to add_rows command Nov 20, 2025
@lukasmasuch lukasmasuch requested a review from Copilot November 20, 2025 22:50
Copy link
Contributor

Copilot AI left a 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_rows is 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

Copy link
Contributor

@sfc-gh-nbellante sfc-gh-nbellante left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@lukasmasuch lukasmasuch merged commit df0bc86 into develop Nov 24, 2025
39 checks passed
@lukasmasuch lukasmasuch deleted the deprecate-add-rows branch November 24, 2025 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:breaking PR contains breaking change that affects backwards compatibility change:other PR contains other type of change impact:users PR changes affect end users security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants