Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workspaces as windows drives #1159

Merged
merged 42 commits into from Jun 8, 2020
Merged

Workspaces as windows drives #1159

merged 42 commits into from Jun 8, 2020

Conversation

vxgmichel
Copy link
Contributor

@vxgmichel vxgmichel commented May 12, 2020

Replacing: #1142
Fixing: #928, #1058, #1081, #1082, #925, #913, #914, #912, #1126

Todo:

  • Use reader role to mark the drive as read only (with remounting if necessary)
  • Use parsec icon as drive icon
  • Implement a mecanism to enable/disable workspaces in the GUI
  • Add enabled/disabled workspace status to the configuration
  • Update tests

@vxgmichel vxgmichel force-pushed the windows-workspace-drives branch 2 times, most recently from 6ac08e7 to eb41170 Compare May 13, 2020 13:08
@vxgmichel vxgmichel requested a review from Max-7 May 13, 2020 17:45
@codecov
Copy link

codecov bot commented May 20, 2020

Codecov Report

Merging #1159 into master will increase coverage by 0.36%.
The diff coverage is 73.34%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1159      +/-   ##
==========================================
+ Coverage   79.69%   80.06%   +0.36%     
==========================================
  Files         280      281       +1     
  Lines       23606    23726     +120     
==========================================
+ Hits        18813    18996     +183     
+ Misses       4793     4730      -63     
Impacted Files Coverage Δ
parsec/core/cli/run.py 61.76% <0.00%> (+1.76%) ⬆️
parsec/core/fs/userfs/userfs.py 83.90% <ø> (-0.65%) ⬇️
parsec/core/gui/central_widget.py 76.47% <ø> (-0.26%) ⬇️
parsec/core/gui/settings_widget.py 31.42% <ø> (+2.85%) ⬆️
parsec/core/logged_core.py 97.56% <ø> (ø)
parsec/core/gui/main_window.py 54.54% <50.00%> (+0.22%) ⬆️
parsec/core/win_registry.py 58.26% <58.26%> (ø)
parsec/core/gui/workspaces_widget.py 68.68% <70.88%> (+2.21%) ⬆️
parsec/core/fs/workspacefs/workspacefs.py 96.20% <75.00%> (-0.28%) ⬇️
parsec/core/mountpoint/manager.py 70.21% <76.47%> (-0.34%) ⬇️
... and 25 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f8f7f9e...d308cd3. Read the comment docs.

parsec/core/fs/userfs/userfs.py Outdated Show resolved Hide resolved
parsec/core/gui/main_window.py Show resolved Hide resolved
parsec/core/gui/settings_widget.py Outdated Show resolved Hide resolved
parsec/core/gui/tr/parsec_en.po Show resolved Hide resolved
parsec/core/gui/workspace_button.py Outdated Show resolved Hide resolved
parsec/core/mountpoint/winfsp_runner.py Outdated Show resolved Hide resolved
parsec/core/mountpoint/winfsp_runner.py Show resolved Hide resolved
parsec/core/mountpoint/winfsp_runner.py Show resolved Hide resolved
parsec/core/mountpoint/winfsp_runner.py Show resolved Hide resolved
tests/core/mountpoint/test_base.py Outdated Show resolved Hide resolved
@vxgmichel vxgmichel merged commit 3a0ac11 into master Jun 8, 2020
@vxgmichel vxgmichel deleted the windows-workspace-drives branch June 8, 2020 16:36
self.reset_timer = QTimer()
self.reset_timer.setInterval(1000)
self.reset_timer.setInterval(self.RESET_TIMER_THRESHOLD)
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we use signals (fs.entry.updated I guess) instead of polling ?

If needed, the change would be for another PR of course ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This timer is not used for polling, it is used for throttling the requests to reset the GUI.

parsec/core/gui/main_window.py Show resolved Hide resolved
parsec/core/gui/workspace_button.py Show resolved Hide resolved
assert await bar_txt.exists()


@pytest.mark.trio
@pytest.mark.mountpoint
@pytest.mark.skipif(os.name == "nt", reason="Windows uses drive")
Copy link
Member

Choose a reason for hiding this comment

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

Is there a test "drive already used" for windows ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll add one!

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.

None yet

3 participants