You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add URI support and api associated with widget to useWidget (#2509)
Part of DH-19001. Tested with my VM `mattrunyon-gplus` which has the
updated dh.ui and DHE web UI as well. Used the notebook w/ the ticket
number as several examples, and the `Demo` and `DemoDashboard` queries
w/ different users with different permissions to view those queries.
Tested using tables/figures/pickers and restarting the queries to ensure
they restarted and could continue being used.
This is mostly type changes to augment the object fetcher stuff to
accept a URI.
Also adds the associated `api` to the `useWidget` hook needed for PQ
URIs in DHE.
Renamed `useTableClose` to `useWidgetClose` as a more generic util and
deprecated `useTableClose`. They are the same, just more permissive
types since this can apply to non-tables
/** Function for unsubscribing from a given subscription */
5
6
exporttypeUnsubscribeFunction=()=>void;
@@ -42,12 +43,12 @@ export type ObjectFetchManager = {
42
43
* Subscribe to the fetch function for an object using a variable descriptor.
43
44
* It's possible that the fetch function changes over time, due to disconnection/reconnection, starting/stopping of applications that the object may be associated with, etc.
44
45
*
45
-
* @param descriptor Descriptor object of the object to fetch. Can be extended by a specific implementation to include more details necessary for the ObjectManager.
46
+
* @param descriptor Descriptor object or URI of the object to fetch. Can be extended by a specific implementation to include more details necessary for the ObjectManager.
46
47
* @param onUpdate Callback function to be called when the object is updated.
47
48
* @returns An unsubscribe function to stop listening for fetch updates and clean up the object.
0 commit comments