Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jiangpli
Copy link
Contributor

@jiangpli jiangpli commented Dec 4, 2024

Describe your changes

I added more checks to fix the issue describe in #9342 so that Streamlit now throws an StreamlitValueAboveMaxError/StreamlitValueBelowMinError if a value is set out of bounds for st.number_input or st.slider via st.session_state. Let me know if I'm on the right track, or what other requirements I need to change for my code. Thank you!

GitHub Issue Link (if applicable)

#9342

Testing Plan

  • Unit Tests (JS and/or Python): Added ✅
  • Manual Testing: ✅

Contribution License Agreement

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

@sfc-gh-lwilby sfc-gh-lwilby self-assigned this Jan 6, 2025
@kmcgrady kmcgrady assigned kmcgrady and unassigned sfc-gh-lwilby Jan 27, 2025
@kmcgrady
Copy link
Collaborator

Hey @jiangpli Sorry for the delay! This must've gotten lost in the holidays. And thank you for helping us resolve the bug.

Overall the code looks great. I'm trying to get the tests to run but I think we might need to rebase off develop. Would you mind doing that? Assuming the tests all pass, happy to merge in this change.

@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:bugfix PR contains bug fix implementation impact:users PR changes affect end users labels Mar 4, 2025
@mayagbarnes mayagbarnes enabled auto-merge (squash) March 8, 2025 00:43
@mayagbarnes mayagbarnes disabled auto-merge March 8, 2025 00:44
@mayagbarnes mayagbarnes merged commit 1585ce4 into streamlit:develop Mar 8, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:bugfix PR contains bug fix implementation 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.

4 participants