Skip to content

Add Dashboard entity and TimeDayDimension OLAP entity#721

Open
moqui-industrial wants to merge 2 commits into
moqui:masterfrom
moqui-industrial:feat/entities-additions
Open

Add Dashboard entity and TimeDayDimension OLAP entity#721
moqui-industrial wants to merge 2 commits into
moqui:masterfrom
moqui-industrial:feat/entities-additions

Conversation

@moqui-industrial

Copy link
Copy Markdown

Summary

Two additive entity additions:

1. Dashboard entity (moqui.screen.dashboard)

Stores references to embedded dashboards (Grafana, Kibana, custom iframes) in the database:

  • dashboardId (PK), dashboardName, dashboardTypeEnumId, dashboardUrl, description
  • Allows screens to render the correct dashboard URL by looking it up from the DB rather than hardcoding it in screen definitions
  • Enables runtime reconfiguration of dashboard URLs without redeployment

2. TimeDayDimension entity (moqui.olap.TimeDayDimension)

Time-of-day dimension table for analytics star schemas:

  • timeMinuteId (PK, HHMM format), hourOfDay, minuteOfHour, timeOfDayPeriod (Morning/Afternoon/Evening/Night), workShift
  • Companion to the existing TimeDimension (date-level) for sub-day analytics slicing
  • Pre-populated with all 1440 minutes of the day via seed data

…bedding

New Dashboard entity (moqui.screen.dashboard) stores dashboard URLs, types and
descriptions in the database. Screens can load the appropriate dashboard URL at
runtime (e.g. a per-device Grafana dashboard rendered in an iframe) rather than
hard-coding locations in screen definitions.

DashboardType enum type with seed values: DashScreenWidgets, DashKibana, DashGrafana.
GrafanaRemote UserPermission added for controlling Grafana proxy access.
TimeDayDimension (moqui.olap) provides a time-of-day dimension table for analytics
star schemas: hour, minute, second, military hour, quarter-hour, AM/PM, day period.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant