Skip to content

Conversation

@mayagbarnes
Copy link
Collaborator

@mayagbarnes mayagbarnes commented Aug 2, 2024

Describe your changes

Update the GUEST_READY message payload to provide more information on Streamlit load time
See JIRA ticket here

Testing Plan

  • JS Unit Tests: ✅ Updated
  • Manual Testing: ✅

Copy link
Contributor

@sfc-gh-pfinnigan sfc-gh-pfinnigan left a comment

Choose a reason for hiding this comment

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

This is looking like what we need. Thanks for adding!

@mayagbarnes mayagbarnes changed the title [WIP] Update GUEST_READY message Update GUEST_READY message Aug 7, 2024
@mayagbarnes mayagbarnes added security-assessment-completed Security assessment has been completed for PR change:other PR contains other type of change impact:internal PR changes only affect internal code labels Aug 7, 2024
@mayagbarnes mayagbarnes marked this pull request as ready for review August 7, 2024 08:10
Copy link
Collaborator

@raethlein raethlein left a comment

Choose a reason for hiding this comment

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

LGTM! I have left a comment about the naming of ReactLoad that I feel stronger about to avoid clashes, and a not-so-strong sanity-check about the date type. In general looks good 🙂

Comment on lines 31 to 32
// Timestamp when React is loaded for GUEST_READY message
window.streamlitReactLoad = Date.now()
Copy link
Contributor

Choose a reason for hiding this comment

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

[nit] should this go even earlier - above line 29. Or even above the imports?

Copy link
Contributor

Choose a reason for hiding this comment

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

streamlitExecutionStartedAt?

Copy link
Contributor

Choose a reason for hiding this comment

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

This could be a prop passed to Themed app. But seems ok to use a window variable.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If its possible to pass somewhere and not having it as a window variable would be even nicer (for testing, reasoning of code flow etc.) 🙂 👍

@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Aug 27, 2024
@mayagbarnes mayagbarnes marked this pull request as draft August 27, 2024 02:16
@mayagbarnes mayagbarnes removed the stale label Aug 27, 2024
@github-actions
Copy link
Contributor

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

change:other PR contains other type of change 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.

4 participants