* Allow dashboardDS to run in mixedDS
* Make mixedDS panel wait for dashboardDS panel to load first
* cleanup
* cleanup
* refresh dashboardDS queries within mixedDS when source panel changes
* more tests
* fix
* fixes scenario where source returns an error
* do not allow dashboardDS references to mixedDS targets that contain other dashboardDS panels
* test
* lint
* Show invalid panels as invalid and with a message
* refactor
* avoid bunching shared dashboard queries
* skip instead of debouncing to avoid stale data
* debouce dashboard ds result stream when coming from mixed ds
* restore unnecessarily touched files
* fix import
* increase debounce interval value to account for slower machines
---------
Co-authored-by: Sergej-Vlasov <sergej.s.vlasov@gmail.com>
it('does not show a panel with either SHARED_DASHBOARD_QUERY datasource or MixedDS with SHARED_DASHBOARD_QUERY as an option in the dropdown',async()=>{
render(
<DashboardQueryEditor
datasource={{}asDashboardDatasource}
query={mockQueries[0]}
data={mockPanelData}
onChange={mockOnChange}
onRunQuery={mockOnRunQueries}
/>
);
constselect=screen.getByText('Choose panel');
awaituserEvent.click(select);
constmyFirstPanel=awaitscreen.findByText('My first panel');