Skip to content

Fix for Desktop Creating Metadata Files - #10115

Merged
AndrewMcClain merged 2 commits into
mainfrom
bugfix/desktop-producing-metadata-files
Dec 16, 2021
Merged

AndrewMcClain merged 2 commits into
mainfrom
bugfix/desktop-producing-metadata-files

Conversation

@AndrewMcClain

Copy link
Copy Markdown
Contributor

Empty Sessions should not have a storage backing, and this was causing
desktop to produce metadata files

Intent

Desktop uses an empty session, which should not be connected to s storage backend.

Approach

Drop the call to the scratchpath constructor for empty sessions.

Automated Tests

None added.

QA Notes

Run a desktop session, then investigate your user directory, rstudion/sessions/active should contain no metadata files now.

Checklist

  • If this PR adds a new feature, or fixes a bug in a previously released version, it includes an entry in NEWS.md
  • If this PR adds or changes UI, the updated UI meets accessibility standards
  • A reviewer is assigned to this PR (if unsure who to assign, check Area Owners list)
  • This PR passes all local unit tests

Empty Sessions should not have a storage backing, and this was causing
desktop to produce metadata files
Reformated empty session constructor.
Reintroduce Explicit for 2 arch constructor, apparently that can also be
used as a converting constructor.

@jeffvroom jeffvroom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

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