Skip to content

Conversation

@sfc-gh-nbellante
Copy link
Contributor

@sfc-gh-nbellante sfc-gh-nbellante commented Dec 12, 2024

Describe your changes

These changes are needed for the public notebooks project and accomplishes two main things:

  1. Introduces ForwardMsgList allowing us to store all of the protobuf messages as 1 protobuf message.
  2. Adds a new lifecycle method that if set, will be called with the message before it is enqueued.

But Nico! Why not utilize the newly added ForwardMsgList and avoid this base64 tomfoolery? Great question! It boils down wanting to be able to write the message as its enqueued. Why? For starters, it simplifies the code a bit to be able to just append these base64 lines, but more importantly, as we're recording these protobufs, we're watching this file and waiting for it to stop getting updates and using that to determine that the app is "done" rendering.

Testing Plan

Added a unit test for this new method.


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-nbellante sfc-gh-nbellante changed the title changes needed for public notebooks [WIP] changes needed for public notebooks Dec 12, 2024
@sfc-gh-nbellante sfc-gh-nbellante added security-assessment-completed Security assessment has been completed for PR change:feature PR contains new feature or enhancement implementation impact:internal PR changes only affect internal code labels Jan 6, 2025
@sfc-gh-nbellante sfc-gh-nbellante marked this pull request as ready for review January 6, 2025 22:36
@sfc-gh-nbellante sfc-gh-nbellante requested a review from a team as a code owner January 6, 2025 22:36
@sfc-gh-nbellante sfc-gh-nbellante changed the title [WIP] changes needed for public notebooks Changes needed for public notebooks Jan 6, 2025
@sfc-gh-nbellante sfc-gh-nbellante changed the title Changes needed for public notebooks Changes needed for public notebooks to record protobufs Jan 6, 2025
@sfc-gh-nbellante sfc-gh-nbellante enabled auto-merge (squash) January 9, 2025 21:41
@sfc-gh-nbellante sfc-gh-nbellante merged commit 70becc0 into develop Jan 9, 2025
33 checks passed
edegp pushed a commit to edegp/streamlit that referenced this pull request Jan 19, 2025
)

## Describe your changes

These changes are needed for the public notebooks project and
accomplishes two main things:

1. Introduces `ForwardMsgList` allowing us to store all of the protobuf
messages as 1 protobuf message.
2. Adds a new lifecycle method that if set, will be called with the
message before it is enqueued.

But Nico! Why not utilize the newly added `ForwardMsgList` and avoid
this base64 tomfoolery? Great question! It boils down wanting to be able
to write the message as its enqueued. Why? For starters, it simplifies
the code a bit to be able to just append these base64 lines, but more
importantly, as we're recording these protobufs, we're watching this
file and waiting for it to stop getting updates and using that to
determine that the app is "done" rendering.


## Testing Plan
Added a unit test for this new method.

---

**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-nbellante sfc-gh-nbellante deleted the nico/public-notebooks branch March 10, 2025 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:feature PR contains new feature or enhancement implementation impact:internal PR changes only affect internal code security-assessment-completed Security assessment has been completed for PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants