Skip to content

Commit 44a4e3c

Browse files
hotlongCopilot
andcommitted
debug(platform-sso): admin endpoint dumps sample rows
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 9f4e988 commit 44a4e3c

11 files changed

Lines changed: 23 additions & 213 deletions

File tree

apps/cloud/wrangler.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ compatibility_flags = ["nodejs_compat"]
4545
# rebuild + re-push to ship a new version, then run `wrangler deploy`.
4646
[[containers]]
4747
class_name = "CloudContainer"
48-
image = "registry.cloudflare.com/2846eb40a60f4738e292b90dcd8cce10/objectstack-cloud:836fcfa7"
48+
image = "registry.cloudflare.com/2846eb40a60f4738e292b90dcd8cce10/objectstack-cloud:0396a5bf"
4949
max_instances = 3
5050
instance_type = "standard-1"
5151

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
22

33
export { SETUP_APP } from './setup.app.js';
4-
export * from './views/index.js';
54
export * from './dashboards/index.js';

packages/platform-objects/src/apps/views/audit_logs.view.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/platform-objects/src/apps/views/index.ts

Lines changed: 0 additions & 13 deletions
This file was deleted.

packages/platform-objects/src/apps/views/organizations.view.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/platform-objects/src/apps/views/package_installations.view.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

packages/platform-objects/src/apps/views/roles.view.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/platform-objects/src/apps/views/sessions.view.ts

Lines changed: 0 additions & 29 deletions
This file was deleted.

packages/platform-objects/src/apps/views/users.view.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

packages/plugins/plugin-auth/src/auth-plugin.ts

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,6 @@ import {
66
SETUP_APP,
77
SystemOverviewDashboard,
88
SecurityOverviewDashboard,
9-
UsersView,
10-
OrganizationsView,
11-
RolesView,
12-
SessionsView,
13-
AuditLogsView,
14-
PackageInstallationsView,
159
} from '@objectstack/platform-objects/apps';
1610
import { AuthManager } from './auth-manager.js';
1711
import {
@@ -135,18 +129,15 @@ export class AuthPlugin implements Plugin {
135129
// owner of its registration since it loads first among the trio
136130
// (auth + security + audit) that supplies the underlying objects.
137131
apps: [SETUP_APP],
138-
// Curated list views and dashboards consumed by the Setup App's
139-
// navigation entries. The manifest service does NOT auto-discover
140-
// these from the app definition — they must be registered as
141-
// explicit top-level arrays per ObjectStackDefinitionSchema.
142-
views: [
143-
UsersView,
144-
OrganizationsView,
145-
RolesView,
146-
SessionsView,
147-
AuditLogsView,
148-
PackageInstallationsView,
149-
],
132+
// List views for each Setup-nav object are defined on the schema
133+
// itself via the canonical `listViews` map (e.g.
134+
// sys_user.listViews.{all_users,unverified,two_factor}). Registering
135+
// top-level views here is the legacy pre-M10.30c pattern — it caused
136+
// duplicate "Users"/"Roles"/"Sessions" tabs to appear alongside the
137+
// schema-derived ones, sometimes referencing nonexistent fields
138+
// (e.g. legacy `users.view` had phone/status/active columns that do
139+
// not exist on sys_user). Schema-embedded listViews is the single
140+
// source of truth.
150141
dashboards: [SystemOverviewDashboard, SecurityOverviewDashboard],
151142
});
152143

0 commit comments

Comments
 (0)