Skip to content

Conversation

@schloerke
Copy link
Collaborator

Related: #1924 (comment)

Also apply to Bookmark classes

@schloerke schloerke changed the title chore(session): Rename ._parent to ._root_session in Session objects chore(session): Rename ._parent to ._root_session in Session objects Mar 17, 2025
@schloerke schloerke changed the title chore(session): Rename ._parent to ._root_session in Session objects chore(session): Rename ._parent to ._root_session in Session classes Mar 17, 2025
@schloerke schloerke requested a review from Copilot March 17, 2025 18:17
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 renames the internal variable from "._parent" to "._root_session" in Session classes and applies similar changes in Bookmark classes to improve naming consistency.

  • Updated construction of SessionProxy by replacing the "parent" parameter with "root_session"
  • Adjusted attribute names and method calls in BookmarkApp and BookmarkProxy to use the new "root_session" naming
  • Revised SessionProxy implementation in the session module accordingly

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
shiny/express/_stub_session.py Updated make_scope to use "root_session=self" when instantiating SessionProxy
shiny/bookmark/_bookmark.py Renamed variables and updated references from _session to _root_session in Bookmark classes
shiny/session/_session.py Modified SessionProxy to use "root_session" instead of "parent" and updated relevant calls

@schloerke schloerke merged commit 3f03f93 into main Mar 17, 2025
56 checks passed
@schloerke schloerke deleted the bookmark_root_session branch March 17, 2025 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants