Mavenomics / MavenWorks

Agile Dashboarding, anywhere
https://mavenworks.com
GNU General Public License v3.0
18 stars 2 forks source link

Replace DashboardLink magical URLs with a literal or UDF #69

Closed quigleyj-mavenomics closed 4 years ago

quigleyj-mavenomics commented 4 years ago

Right now, DashboardLinks are magical fake URLs that work in weird, absurd ways across the Lab, Viewer, and Standalone. It'd be nice to replace this with machinery that decouples the underlying intent of the DashboardLinks (link to a dashboard at some path with these dimensions and these params) from what the framework needs to resolve that link (what type of path, where does the dashboard live, what URL should be passed to the hover, etc).

We should have the DashboardLink UDF return an object with all the properties that the SlickGrid needs to resolve and render the dashboard instead.

A note on "literals"

In the C# engine, custom MQL literals could be defined using a very Clojure-like syntax, eg: #DateTime'<ISO string>'. To my knowledge we don't have anything in the JS engine that implements this, but the construct exists in the grammar and can be parsed correctly.