Skip to content

feat(projects): make duplicating shares opt-in#2932

Merged
kolaente merged 2 commits into
mainfrom
feat-duplicate-shares-opt-in
Jun 19, 2026
Merged

feat(projects): make duplicating shares opt-in#2932
kolaente merged 2 commits into
mainfrom
feat-duplicate-shares-opt-in

Conversation

@tink-bot

Copy link
Copy Markdown
Collaborator

Duplicating a project always copied its user, team and link shares, with no way to opt out — so a copy meant for personal use silently inherited every collaborator and public link.

Shares are now only copied when the new duplicate_shares flag is set (defaults to false). This applies to both /api/v1 and /api/v2, which share the model. The frontend duplicate dialog gains a checkbox, pre-checked, so the default UX is unchanged.

Test plan

  • Duplicate a shared project from the UI with the checkbox left checked → shares are copied.
  • Duplicate again with the checkbox unchecked → no users/teams/link shares on the copy.

When duplicating a project, user, team and link shares are no longer
copied by default. Set the new duplicate_shares flag to true to copy
them. The frontend duplicate dialog gains a checkbox (pre-checked) so
the default UX is unchanged.
@github-actions github-actions Bot added area/api REST API surface, endpoint design, request/response shapes area/api-v2 Huma-backed /api/v2 API surface area/frontend Frontend-only code or UI work area/projects Project CRUD, sub-projects, project tree, archiving, templates concern/ux UX polish, ergonomics, workflow complaints without a clear bug labels Jun 17, 2026
@github-actions

github-actions Bot commented Jun 17, 2026

Copy link
Copy Markdown

Preview Deployment

Preview deployments for this PR are available at:

URL Tag Commit
https://pr-2932.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:pr-2932 latest
https://sha-bf175dde6db559ac4e4ae374d69eafdd4471c87f.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:sha-bf175dde6db559ac4e4ae374d69eafdd4471c87f bf175dd
https://sha-7b7c850dd85292b379ad821c9eed6fa30be77bd5.preview.vikunja.dev ghcr.io/go-vikunja/vikunja:sha-7b7c850dd85292b379ad821c9eed6fa30be77bd5 7b7c850

The preview environment will start automatically on first visit. Subsequent pushes to this PR will update the pr-2932 image — the preview picks up the new version on restart. The per-commit URLs point to a specific version and will not change.

Run locally with Docker
docker pull ghcr.io/go-vikunja/vikunja:pr-2932
docker run -p 3456:3456 ghcr.io/go-vikunja/vikunja:pr-2932

Last updated for commit bf175dd

@kolaente kolaente merged commit f3c6312 into main Jun 19, 2026
11 checks passed
@kolaente kolaente deleted the feat-duplicate-shares-opt-in branch June 19, 2026 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/api REST API surface, endpoint design, request/response shapes area/api-v2 Huma-backed /api/v2 API surface area/frontend Frontend-only code or UI work area/projects Project CRUD, sub-projects, project tree, archiving, templates concern/ux UX polish, ergonomics, workflow complaints without a clear bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants