Skip to content

Workspace Sync for every user - #201

Open
t0mdavid-m wants to merge 3 commits into
mainfrom
claude/project-thread-dm69w3-sync
Open

t0mdavid-m wants to merge 3 commits into
mainfrom
claude/project-thread-dm69w3-sync

Conversation

@t0mdavid-m

Copy link
Copy Markdown
Member

Requested by Tom · project thread

What it does

Large studies come as many raw files, too big for the browser uploader. The template's Workspace Sync already lets the desktop app push a local workspace's inputs into an online workspace, run the workflow there and pull the results back, but OpenDDA kept it behind the developer password. This turns it on for every user:

  • settings.json: workspace_sync.developer_only is now false (enabled stays on; workflows maps topp-workflow to src.WorkflowTest:WorkflowTest).
  • app.py registers content/workspace_sync.py and hides its menu entry, as the template does. Users open it from the Workspace Sync panel in the sidebar. Without the page registered, the panel's link raised StreamlitPageNotFoundError on every page once sync was enabled. Nobody saw this before because the panel was only drawn for developers.
  • Tests that load one page without navigation (test_gui.py per-page launches, test_insight_image_format, test_workspace_selector, test_captcha_pages) turn the panel off, since a page link cannot resolve there. tests/test_workspace_sync_settings.py checks the settings, the workflow mapping and the page registration.
  • CLAUDE.app.md describes it.

The prod overlay already routes /sync to the sync service, so nothing changes in k8s/. Whether it goes live in production with the next release is the maintainer's call.

Screenshots

Sidebar panel (light, dark):

sidebar light
sidebar dark

Workspace Sync page (light, dark):

page light
page dark

Tests

python -m pytest test_gui.py tests/: 1566 passed, 14 skipped. Pylint (errors only) is clean on the changed files.


Generated by Claude Code

Turn on Workspace Sync without the developer password, so anyone with the
desktop app can push large raw files into an online workspace, run there
and pull the results back. Register content/workspace_sync.py in app.py
(menu entry hidden, opened from the sidebar panel): with sync enabled the
sidebar links to that page, and without the registration every page
failed with StreamlitPageNotFoundError.

Tests that load one page without navigation turn the panel off, since its
page link cannot resolve there; a new test checks the settings and the
page registration.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FkEGepShSG5cNRTqoCXFo1
@t0mdavid-m t0mdavid-m self-assigned this Nov 28, 2026
@coderabbitai

coderabbitai Bot commented Nov 28, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 98d08ef6-e3b8-44c6-865c-78a6129c49d1
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

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