Files
zeekay e59a79d167 ee: remove the enterprise-licensed features this fork does not carry
Upstream's LICENSE carves out ee/ by LOCATION: everything under that directory is
enterprise-licensed, everything outside it is MIT. ee/ is absent from this tree, so
nothing here is enterprise-licensed -- but the code that imported it was a dangling
dependency on source we deliberately do not ship, and every one of those imports is a
request-path failure.

Deleted rather than ported: billing, salesforce enrichment, subscriptions, the eval
harness, session summaries, and the enterprise models behind them.

materialized_columns is the exception that is NOT a product feature. Column lookups now
always report none, so the engine reads the property out of the JSON blob instead of a
dedicated column. That is correct, just slower on large event tables.
2026-08-02 12:00:03 -07:00

34 lines
1.3 KiB
Python

from insights.api import sharing
from insights.api.routing import RouterRegistry
from products.dashboards.backend.api import dashboard, dashboard_templates
def register_routes(routers: RouterRegistry) -> None:
# Legacy flat endpoints — should be unused, but kept until callers are confirmed dead.
routers.root.register(r"dashboard", dashboard.LegacyDashboardsViewSet, "legacy_dashboards")
routers.root.register(r"dashboard_item", dashboard.LegacyInsightViewSet, "legacy_insights")
routers.projects.register(
r"dashboard_templates",
dashboard_templates.DashboardTemplateViewSet,
"project_dashboard_templates",
["project_id"],
)
dashboards_router = routers.projects.register(
r"dashboards", dashboard.DashboardsViewSet, "project_dashboards", ["team_id"]
)
# SharingConfigurationViewSet is shared (core), but the route lives under
# dashboards/<id>/sharing — the dashboards product owns the sub-route.
dashboards_router.register(
r"sharing",
sharing.SharingConfigurationViewSet,
"project_dashboard_sharing",
["team_id", "dashboard_id"],
)
# Per-dashboard collaborators were an enterprise-only sub-route, so dashboards register no
# collaborator endpoint here.