Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

MUL-8472: feat(projects): enable private projects for everyone (#10273)

Bohan Jiang02ba30fb4d13
diff --git a/packages/core/api/client.ts b/packages/core/api/client.ts
index ae6ea8951f..88c212c258 100644
--- a/packages/core/api/client.ts
+++ b/packages/core/api/client.ts
@@ -4300,9 +4300,6 @@ export class ApiClient {
}
async createProject(data: CreateProjectRequest): Promise<Project> {
- if (data.visibility === "private" && configStore.getState().featureFlags.private_projects_v1 !== true) {
- throw new Error("Private projects are not enabled on this server.");
- }
const raw = await this.fetch<unknown>("/api/projects", {
method: "POST",
body: JSON.stringify(data),
diff --git a/packages/core/api/project-access.test.ts b/packages/core/api/project-access.test.ts
index e2b1381077..9f24c676f0 100644
--- a/packages/core/api/project-access.test.ts
+++ b/packages/core/api/project-access.test.ts
@@ -1,10 +1,9 @@
// @vitest-environment node
import { afterEach, describe, expect, it, vi } from "vitest";
import { ApiClient } from "./client";
-import { configStore } from "../config";
import { ProjectSchema, EMPTY_PROJECT } from "./schemas";
-afterEach(() => { vi.unstubAllGlobals(); configStore.getState().setFeatureFlags({}); });
+afterEach(() => { vi.unstubAllGlobals(); });
describe("project access API contracts", () => {
it("keeps old projects readable and treats unknown visibility as restricted", () => {
@@ -13,16 +12,7 @@ describe("project access API contracts", () => {
expect(ProjectSchema.parse({ ...EMPTY_PROJECT, visibility: null }).visibility).toBe("private");
});
- it("blocks private creation on an older server before it can drop access fields", async () => {
- const fetchMock = vi.fn();
- vi.stubGlobal("fetch", fetchMock);
- const client = new ApiClient("https://api.example.test");
- await expect(client.createProject({ title: "Secret", visibility: "private", member_ids: ["member-1"] })).rejects.toThrow(/not enabled/);
- expect(fetchMock).not.toHaveBeenCalled();
- });
-
it("sends private creation and member changes with their project-scoped contracts", async () => {
- configStore.getState().setFeatureFlags({ private_projects_v1: true });
const member = { project_id: "p1", user_id: "m1", name: "Alice", email: "[email protected]" };
const fetchMock = vi.fn()
.mockResolvedValueOnce(new Response(JSON.stringify({ ...EMPTY_PROJECT, id: "p1", visibility: "private" })))
diff --git a/packages/views/locales/en/projects.json b/packages/views/locales/en/projects.json
index 6518799f0e..eaf9cdb51a 100644
--- a/packages/views/locales/en/projects.json
+++ b/packages/views/locales/en/projects.json
@@ -225,7 +225,6 @@
"load_failed": "Could not load project members.",
"publish_title": "Make this project visible to the workspace?",
"publish_description": "All workspace members will be able to see this project and its issues, comments, and attachments.",
- "disabled": "Private projects are not enabled on this server.",
"done": "Done",
"retry": "Retry"
}
diff --git a/packages/views/locales/es/projects.json b/packages/views/locales/es/projects.json
index 6bef2d7de3..57bc00a5a7 100644
--- a/packages/views/locales/es/projects.json
+++ b/packages/views/locales/es/projects.json
@@ -225,7 +225,6 @@
"load_failed": "No se pudieron cargar los miembros.",
"publish_title": "¿Hacer visible el proyecto a todo el espacio de trabajo?",
"publish_description": "Todos los miembros podrán ver este proyecto, sus tareas, comentarios y archivos adjuntos.",
- "disabled": "Los proyectos privados no están activados en este servidor.",
"done": "Listo",
"retry": "Reintentar"
}
diff --git a/packages/views/locales/fr/projects.json b/packages/views/locales/fr/projects.json
index 946752e41d..21ef6ad950 100644
--- a/packages/views/locales/fr/projects.json
+++ b/packages/views/locales/fr/projects.json
@@ -225,7 +225,6 @@
"load_failed": "Impossible de charger les membres.",
"publish_title": "Rendre ce projet visible à tout l’espace de travail ?",
"publish_description": "Tous les membres pourront voir ce projet, ses tâches, commentaires et pièces jointes.",
- "disabled": "Les projets privés ne sont pas activés sur ce serveur.",
"done": "Terminé",
"retry": "Réessayer"
}
diff --git a/packages/views/locales/ja/projects.json b/packages/views/locales/ja/projects.json
index f809efc5bd..5db2739f8b 100644
--- a/packages/views/locales/ja/projects.json
+++ b/packages/views/locales/ja/projects.json
@@ -225,7 +225,6 @@
"load_failed": "メンバーを読み込めませんでした。",
"publish_title": "ワークスペース全体に公開しますか?",
"publish_description": "すべてのワークスペースメンバーがこのプロジェクトとタスク、コメント、添付ファイルを閲覧できるようになります。",
- "disabled": "このサーバーでは非公開プロジェクトが有効になっていません。",
"done": "完了",
"retry": "再試行"
}
diff --git a/packages/views/locales/ko/projects.json b/packages/views/locales/ko/projects.json
index 4ce4463e15..db68285c6f 100644
--- a/packages/views/locales/ko/projects.json
+++ b/packages/views/locales/ko/projects.json
@@ -225,7 +225,6 @@
"load_failed": "멤버를 불러올 수 없습니다.",
"publish_title": "전체 워크스페이스에 공개할까요?",
"publish_description": "모든 워크스페이스 멤버가 프로젝트와 해당 태스크, 댓글, 첨부 파일을 볼 수 있게 됩니다.",
- "disabled": "이 서버에서는 비공개 프로젝트가 활성화되지 않았습니다.",
"done": "완료",
"retry": "다시 시도"
}
diff --git a/packages/views/locales/ru/projects.json b/packages/views/locales/ru/projects.json
index 821cd2059e..69cad0da86 100644
--- a/packages/views/locales/ru/projects.json
+++ b/packages/views/locales/ru/projects.json
@@ -225,7 +225,6 @@
"load_failed": "Не удалось загрузить участников.",
"publish_title": "Открыть проект всему рабочему пространству?",
"publish_description": "Все участники смогут видеть проект, его задачи, комментарии и вложения.",
- "disabled": "На этом сервере приватные проекты не включены.",
"done": "Готово",
"retry": "Повторить"
}
diff --git a/packages/views/locales/zh-Hans/projects.json b/packages/views/locales/zh-Hans/projects.json
index 084a5976ca..622a50176a 100644
--- a/packages/views/locales/zh-Hans/projects.json
+++ b/packages/views/locales/zh-Hans/projects.json
@@ -225,7 +225,6 @@
"load_failed": "无法加载项目成员。",
"publish_title": "将项目设为整个工作区可见?",
"publish_description": "工作区所有成员都将能查看这个项目及其中的任务、评论和附件。",
- "disabled": "此服务器尚未启用私有项目。",
"done": "完成",
"retry": "重试"
}
diff --git a/packages/views/locales/zh-Hant/projects.json b/packages/views/locales/zh-Hant/projects.json
index 66f6a3f66f..97e6667c03 100644
--- a/packages/views/locales/zh-Hant/projects.json
+++ b/packages/views/locales/zh-Hant/projects.json
@@ -225,7 +225,6 @@
"load_failed": "無法載入專案成員。",
"publish_title": "讓整個工作區都能看到專案?",
"publish_description": "工作區所有成員都將能查看這個專案及其中的任務、評論和附件。",
- "disabled": "此伺服器尚未啟用私人專案。",
"done": "完成",
"retry": "重試"
}
diff --git a/packages/views/modals/create-project.tsx b/packages/views/modals/create-project.tsx
index c792581469..960fa3d84d 100644
--- a/packages/views/modals/create-project.tsx
+++ b/packages/views/modals/create-project.tsx
@@ -173,7 +173,6 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
const [dueDate, setDueDate] = useState<string>(draft.dueDate ?? "");
const [visibility, setVisibility] = useState<ProjectVisibility>(draft.visibility ?? "workspace");
const [memberIds, setMemberIds] = useState<string[]>(draft.memberIds ?? []);
- const privateEnabled = useConfigStore((s) => s.featureFlags.private_projects_v1 === true);
// Optional properties stay in the ⋯ menu until selected or opened.
const [startDatePickerOpen, setStartDatePickerOpen] = useState(false);
const [dueDatePickerOpen, setDueDatePickerOpen] = useState(false);
@@ -359,10 +358,6 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
// Checked here as well as on the button: TitleEditor's onSubmit calls this
// directly, so a disabled button alone leaves the keyboard path open.
if (!title.trim() || submitting) return;
- if (visibility === "private" && !privateEnabled) {
- toast.error(tProjects(($) => $.access.disabled));
- return;
- }
if (sourceMode === "repos" && hasRejectedRepoRef) return;
// `sourceMode` decides which side's stash gets persisted — the other
// side is silently dropped, so repos picked then abandoned for local
@@ -632,7 +627,7 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
</DropdownMenu>
<WorkflowPill value={workflowId} onChange={setWorkflowId} />
- {(privateEnabled || visibility === "private") && <ProjectAccessDraftPicker visibility={visibility} memberIds={memberIds} members={members}
+ {<ProjectAccessDraftPicker visibility={visibility} memberIds={memberIds} members={members}
leadId={leadType === "member" ? leadId : undefined}
onChange={(value, ids) => { setVisibility(value); setMemberIds(ids); setDraft({ visibility: value, memberIds: ids }); }} />}
@@ -1156,7 +1151,6 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
disabled={
!title.trim() ||
submitting ||
- (visibility === "private" && !privateEnabled) ||
(sourceMode === "repos" && hasRejectedRepoRef)
}
className="shrink-0"
diff --git a/packages/views/projects/components/project-access.test.tsx b/packages/views/projects/components/project-access.test.tsx
index 0758818b81..cce966b60d 100644
--- a/packages/views/projects/components/project-access.test.tsx
+++ b/packages/views/projects/components/project-access.test.tsx
@@ -2,7 +2,6 @@ import { afterEach, beforeEach, expect, it, vi } from "vitest";
import { screen, waitFor, within } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
-import { configStore } from "@multica/core/config";
import { setApiInstance } from "@multica/core/api";
import type { ApiClient } from "@multica/core/api/client";
import type { Project, MemberWithUser } from "@multica/core/types";
@@ -34,7 +33,6 @@ function renderControl(value: Project = project) {
beforeEach(() => {
state.viewer = "owner";
- configStore.getState().setFeatureFlags({ private_projects_v1: true });
qc = new QueryClient({ defaultOptions: { queries: { retry: false }, mutations: { retry: false } } });
ids = ["owner", "lead", "member"];
const response = () => ({ members: members.filter((m) => ids.includes(m.user_id)).map((m) => ({ ...m, project_id: "p1" })), total: ids.length });
@@ -48,7 +46,7 @@ beforeEach(() => {
};
setApiInstance(api as unknown as ApiClient);
});
-afterEach(() => { qc.clear(); configStore.getState().setFeatureFlags({}); });
+afterEach(() => { qc.clear(); });
it("loads the member list, finds people by email, and adds and removes only after success", async () => {
const user = userEvent.setup();
@@ -123,21 +121,6 @@ it("requires confirmation before making private content visible to the workspace
await waitFor(() => expect(api.updateProject).toHaveBeenCalledWith("p1", { visibility: "workspace", member_ids: ["owner", "lead", "member"] }));
});
-it("keeps existing private memberships manageable with the creation flag off", async () => {
- configStore.getState().setFeatureFlags({ private_projects_v1: false });
- const user = userEvent.setup();
- renderControl();
- await user.click(screen.getByRole("button", { name: "Access" }));
- await screen.findByText("member@test");
- expect(screen.getByRole("button", { name: "Add workspace member" })).toBeEnabled();
-});
-
-it("does not show private creation controls when the backend has not enabled them", () => {
- configStore.getState().setFeatureFlags({});
- renderControl({ ...project, visibility: "workspace" });
- expect(screen.queryByRole("button", { name: "Access" })).not.toBeInTheDocument();
-});
-
it("keeps new-project access in the draft until the project is created", async () => {
const changed = vi.fn();
const user = userEvent.setup();
diff --git a/packages/views/projects/components/project-access.tsx b/packages/views/projects/components/project-access.tsx
index 5211515b0d..eb90d947aa 100644
--- a/packages/views/projects/components/project-access.tsx
+++ b/packages/views/projects/components/project-access.tsx
@@ -5,7 +5,6 @@ import { useQuery } from "@tanstack/react-query";
import { Globe, Lock, Shield, UserPlus, X } from "@multica/ui/icons";
import type { MemberWithUser, Project, ProjectVisibility } from "@multica/core/types";
import { useAuthStore } from "@multica/core/auth";
-import { useConfigStore } from "@multica/core/config";
import { useWorkspaceId } from "@multica/core/hooks";
import { memberListOptions } from "@multica/core/workspace/queries";
import { projectMembersOptions } from "@multica/core/projects/queries";
@@ -109,24 +108,22 @@ function AccessFields({ visibility, onVisibilityChange, members, selected, leadI
export function ProjectAccessControl({ project }: { project: Project }) {
const { t } = useT("projects");
- const enabled = useConfigStore((s) => s.featureFlags.private_projects_v1 === true);
const [open, setOpen] = useState(false);
const wsId = useWorkspaceId();
const changeAccess = useProjectAccessMutation(wsId, project.id);
- if (!enabled && project.visibility !== "private") return null;
const Icon = project.visibility === "private" ? Lock : Globe;
return (
<Dialog open={open} onOpenChange={(value) => { if (!changeAccess.isPending) setOpen(value); }}>
<DialogTrigger render={<Button type="button" variant="ghost" size="sm" className="h-auto min-h-7 max-w-full justify-start px-0" aria-label={t(($) => $.access.label)}><Icon /><span className="truncate">{project.visibility === "private" ? t(($) => $.access.private) : t(($) => $.access.workspace)}</span></Button>} />
<DialogContent className="flex max-h-[90dvh] flex-col sm:max-w-lg">
<DialogHeader><DialogTitle>{t(($) => $.access.title, { title: project.title })}</DialogTitle><DialogDescription>{t(($) => $.access.description)}</DialogDescription></DialogHeader>
- {open ? <ProjectAccessEditor project={project} onClose={() => setOpen(false)} enabled={enabled} changeAccess={changeAccess} /> : null}
+ {open ? <ProjectAccessEditor project={project} onClose={() => setOpen(false)} changeAccess={changeAccess} /> : null}
</DialogContent>
</Dialog>
);
}
-function ProjectAccessEditor({ project, enabled, onClose, changeAccess }: { project: Project; enabled: boolean; onClose: () => void; changeAccess: ReturnType<typeof useProjectAccessMutation> }) {
+function ProjectAccessEditor({ project, onClose, changeAccess }: { project: Project; onClose: () => void; changeAccess: ReturnType<typeof useProjectAccessMutation> }) {
const { t } = useT("projects");
const { t: tc } = useT("common");
const wsId = useWorkspaceId();
@@ -162,7 +159,7 @@ function ProjectAccessEditor({ project, enabled, onClose, changeAccess }: { proj
<div role="alert" className="space-y-2 text-body"><p>{t(($) => $.access.load_failed)}</p><Button variant="outline" size="sm" onClick={() => { void workspaceMembers.refetch(); void projectMembers.refetch(); }}>{t(($) => $.access.retry)}</Button></div>
) : (
<AccessFields visibility={visibility} onVisibilityChange={setVisibility} members={members} selected={selected} userId={userId} leadId={leadId}
- disabled={pending} canChangeScope={canManage} canUsePrivate={enabled || project.visibility === "private"}
+ disabled={pending} canChangeScope={canManage} canUsePrivate
canAdd={canManage}
canRemove={(id) => canManage && id !== leadId}
onAdd={async (id) => { if (project.visibility === "private") return run({ type: "add", userId: id }); setDraftIds([...selected, id]); return true; }}
@@ -199,9 +196,7 @@ export function ProjectAccessDraftPicker({ visibility, memberIds, leadId, member
onChange: (visibility: ProjectVisibility, ids: string[]) => void;
}) {
const { t } = useT("projects");
- const enabled = useConfigStore((s) => s.featureFlags.private_projects_v1 === true);
const userId = useAuthStore((s) => s.user?.id);
- if (!enabled && visibility !== "private") return null;
const fixed = [userId, leadId].filter((id): id is string => !!id);
const selected = Array.from(new Set([...memberIds, ...fixed]));
const Icon = visibility === "private" ? Lock : Globe;
@@ -215,7 +210,7 @@ export function ProjectAccessDraftPicker({ visibility, memberIds, leadId, member
} />
<PopoverContent side="top" align="end" className="max-h-[70dvh] w-96 max-w-[calc(100vw-2rem)] overflow-y-auto">
<AccessFields visibility={visibility} onVisibilityChange={(value) => onChange(value, selected)} members={members} selected={selected} leadId={leadId} userId={userId}
- disabled={false} canChangeScope canUsePrivate={enabled} canAdd
+ disabled={false} canChangeScope canUsePrivate canAdd
canRemove={(id) => !fixed.includes(id)}
onAdd={(id) => onChange(visibility, [...selected, id])}
onRemove={(id) => onChange(visibility, selected.filter((value) => value !== id))} />
diff --git a/packages/views/projects/components/project-detail.tsx b/packages/views/projects/components/project-detail.tsx
index c16b9a4d3a..9f532a40f3 100644
--- a/packages/views/projects/components/project-detail.tsx
+++ b/packages/views/projects/components/project-detail.tsx
@@ -10,7 +10,6 @@ import { copyText } from "@multica/ui/lib/clipboard";
import { toast } from "sonner";
import type { Project, ProjectStatus, ProjectPriority } from "@multica/core/types";
import { useAuthStore } from "@multica/core/auth";
-import { useConfigStore } from "@multica/core/config";
import { canDeleteProject } from "@multica/core/projects/deletion-permissions";
import { canChangeProjectLead } from "@multica/core/projects/access";
import { projectDetailOptions } from "@multica/core/projects/queries";
@@ -124,7 +123,6 @@ export function ProjectDetail({ projectId }: { projectId: string }) {
const wsPaths = useWorkspacePaths();
const router = useNavigation();
const userId = useAuthStore((s) => s.user?.id);
- const privateProjectsEnabled = useConfigStore((s) => s.featureFlags.private_projects_v1 === true);
const deleteProject = useDeleteProject();
const deleted = deleteProject.isSuccess && deleteProject.variables === projectId;
const { data: project, isLoading } = useQuery({
@@ -381,7 +379,7 @@ export function ProjectDetail({ projectId }: { projectId: string }) {
</DropdownMenuContent>
</DropdownMenu>
</PropRow>
- {(privateProjectsEnabled || project.visibility === "private") && <PropRow label={t(($) => $.access.label)}>
+ {<PropRow label={t(($) => $.access.label)}>
<ProjectAccessControl project={project} />
</PropRow>}
<PropRow label={t(($) => $.table.lead)}>
diff --git a/server/internal/featureflags/keys.go b/server/internal/featureflags/keys.go
index de8bd8f4dd..bd24aa2122 100644
--- a/server/internal/featureflags/keys.go
+++ b/server/internal/featureflags/keys.go
@@ -35,11 +35,6 @@ const (
// makes those endpoints answer 404, so clients stop syncing and search
// through the server again without a client release.
LocalSearchIndex = "local_search_index"
- // PrivateProjectsV1 gates CREATING private projects (MUL-8472): a new
- // private project, or switching a project to private. It does not gate
- // enforcement: a project that is already private stays private when the
- // flag is off, and its members stay manageable. Off by default.
- PrivateProjectsV1 = "private_projects_v1"
// agentBuilderCompat is no longer a release flag. Keep publishing the key
// as enabled so installed desktop clients that still gate the AI creation
// entry on this config decision receive the permanently enabled behavior.
@@ -64,7 +59,6 @@ var frontendPublicFlags = []string{
BillingWorkspaceSubscriptions,
ComposioMCPApps,
PluginsV1,
- PrivateProjectsV1,
}
func BillingWorkspaceSubscriptionsEnabled(ctx context.Context, flags *featureflag.Service) bool {
@@ -83,10 +77,6 @@ func TriageV1Enabled(ctx context.Context, flags *featureflag.Service) bool {
return flags.IsEnabled(ctx, TriageV1, false)
}
-func PrivateProjectsV1Enabled(ctx context.Context, flags *featureflag.Service) bool {
- return flags.IsEnabled(ctx, PrivateProjectsV1, false)
-}
-
func LocalSearchIndexEnabled(ctx context.Context, flags *featureflag.Service) bool {
return flags.IsEnabled(ctx, LocalSearchIndex, true)
}
diff --git a/server/internal/handler/private_project_test.go b/server/internal/handler/private_project_test.go
index aaef2f92df..008fc16515 100644
--- a/server/internal/handler/private_project_test.go
+++ b/server/internal/handler/private_project_test.go
@@ -13,7 +13,6 @@ import (
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
- "github.com/multica-ai/multica/server/internal/featureflags"
"github.com/multica-ai/multica/server/internal/middleware"
"github.com/multica-ai/multica/server/internal/projectaccess"
"github.com/multica-ai/multica/server/internal/service"
@@ -280,12 +279,6 @@ func TestPrivateProjectVisibilityAndMembersAPI(t *testing.T) {
}), f.insider))
}
- withFeatureFlag(t, testHandler, featureflags.PrivateProjectsV1, false)
- if got := createPrivate().Want(http.StatusForbidden).Map()["code"]; got != "private_projects_disabled" {
- t.Fatalf("flag off: code = %v", got)
- }
-
- withFeatureFlag(t, testHandler, featureflags.PrivateProjectsV1, true)
var project ProjectResponse
createPrivate().Want(http.StatusCreated).JSON(&project)
t.Cleanup(func() {
@@ -330,9 +323,6 @@ func TestPrivateProjectVisibilityAndMembersAPI(t *testing.T) {
remove(f.outsider, f.insider).Want(http.StatusForbidden)
remove(f.outsider, f.outsider).Want(http.StatusForbidden)
members(f.outsider).Want(http.StatusOK)
- withFeatureFlag(t, testHandler, featureflags.PrivateProjectsV1, false)
- remove(f.outsider, f.outsider).Want(http.StatusForbidden)
- members(f.outsider).Want(http.StatusOK)
remove(testUserID, f.outsider).Want(http.StatusNoContent)
members(f.outsider).Want(http.StatusNotFound)
@@ -638,7 +628,6 @@ func TestPrivateProjectLeadChangeRequiresAccessManager(t *testing.T) {
// (or agent) may set it, as before private projects. Leading one therefore
// grants nothing; in particular it does not let a member make it private.
func TestWorkspaceProjectLeadStaysOpenButGrantsNoAccess(t *testing.T) {
- withFeatureFlag(t, testHandler, featureflags.PrivateProjectsV1, true)
f := newPrivateProjectFixture(t)
dbfx.Exec(t, `UPDATE project SET visibility = 'workspace' WHERE id = $1`, f.projectID)
update := func(body map[string]any) *testutil.Response {
diff --git a/server/internal/handler/project.go b/server/internal/handler/project.go
index 9be2917a53..6ed7ef6d49 100644
--- a/server/internal/handler/project.go
+++ b/server/internal/handler/project.go
@@ -14,7 +14,6 @@ import (
"github.com/go-chi/chi/v5"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
- "github.com/multica-ai/multica/server/internal/featureflags"
"github.com/multica-ai/multica/server/internal/issuestatus"
"github.com/multica-ai/multica/server/internal/logger"
"github.com/multica-ai/multica/server/internal/projectaccess"
@@ -132,8 +131,7 @@ type CreateProjectRequest struct {
StartDate *string `json:"start_date"`
DueDate *string `json:"due_date"`
Resources []CreateProjectResourceRequestPayload `json:"resources,omitempty"`
- // Visibility "private" creates a private project (MUL-8472, behind
- // private_projects_v1). MemberIDs seeds its member list; the creator is
+ // Visibility "private" creates a private project (MUL-8472). MemberIDs seeds its member list; the creator is
// always added.
Visibility *string `json:"visibility,omitempty"`
MemberIDs []string `json:"member_ids,omitempty"`
@@ -446,10 +444,6 @@ func (h *Handler) CreateProject(w http.ResponseWriter, r *http.Request) {
if !h.requireHumanProjectAccessActor(w, r, workspaceID) {
return
}
- if !featureflags.PrivateProjectsV1Enabled(r.Context(), h.FeatureFlags) {
- writeFeatureDisabled(w, "private_projects_disabled", "private projects are not enabled")
- return
- }
ids, ok := parseProjectMemberIDs(w, req.MemberIDs, "member_ids")
if !ok {
return
diff --git a/server/internal/handler/project_access.go b/server/internal/handler/project_access.go
index ab7812258b..772fde4aa5 100644
--- a/server/internal/handler/project_access.go
+++ b/server/internal/handler/project_access.go
@@ -19,10 +19,6 @@ import (
// hiddenProjects returns the private projects (MUL-8472) this request may not
// see. A member request is bounded by the member; an agent request by the
// run's originator and the agent's owner together (projectaccess.RunPrincipals).
-//
-// Enforcement does not read the private_projects_v1 flag: the flag gates
-// creating private projects, and a project that is already private stays
-// private whatever the flag says.
func (h *Handler) hiddenProjects(r *http.Request, workspaceID string) (projectaccess.Hidden, error) {
ctx := r.Context()
wsUUID, err := util.ParseUUID(workspaceID)
diff --git a/server/internal/handler/project_member.go b/server/internal/handler/project_member.go
index ca1ca0f3de..a1c22257e1 100644
--- a/server/internal/handler/project_member.go
+++ b/server/internal/handler/project_member.go
@@ -8,7 +8,6 @@ import (
"github.com/go-chi/chi/v5"
"github.com/jackc/pgx/v5/pgtype"
- "github.com/multica-ai/multica/server/internal/featureflags"
"github.com/multica-ai/multica/server/internal/logger"
"github.com/multica-ai/multica/server/internal/projectaccess"
"github.com/multica-ai/multica/server/internal/util"
@@ -22,10 +21,6 @@ import (
// owner/admin, or the project's member lead
// - ordinary project members: read-only membership, no self-removal
// - agents: none of these; an agent's access is derived from humans
-//
-// Only switching a project TO private is behind private_projects_v1. Making
-// a private project public and managing members keep working with the flag
-// off, so turning the flag off never strands an existing private project.
type ProjectMemberResponse struct {
ProjectID string `json:"project_id"`
@@ -137,10 +132,6 @@ func (h *Handler) prepareProjectAccessUpdate(w http.ResponseWriter, r *http.Requ
writeError(w, http.StatusForbidden, "only workspace admins and the project lead can change project visibility")
return projectAccessUpdate{}, false
}
- if target == projectaccess.VisibilityPrivate && !featureflags.PrivateProjectsV1Enabled(r.Context(), h.FeatureFlags) {
- writeFeatureDisabled(w, "private_projects_disabled", "private projects are not enabled")
- return projectAccessUpdate{}, false
- }
update := projectAccessUpdate{visibility: target}
if target == projectaccess.VisibilityPrivate {
ids, ok := parseProjectMemberIDs(w, rawMemberIDs, "member_ids")