thingsboard: [Bug] dashboardService.getCustomerDashboards displays wrong parameters for it to work

Describe the bug

According to the dashboard.service.ts it says its:

public getCustomerDashboards(customerId: string, pageLink: PageLink, config?: RequestConfig): Observable<PageData<DashboardInfo>> {
    return this.http.get<PageData<DashboardInfo>>(`/api/customer/${customerId}/dashboards${pageLink.toQuery()}`,
      defaultHttpOptionsFromConfig(config));
  }

Therefore p1 customerId, p2 pageLink and optional p3 being a config.

But console.logging dashboardService reveals its parameters are:

getCustomerDashboards: function getCustomerDashboards(f, y, C, s)

So a 4th parameter that is missing in the info-window about getCustomerDashboards. That fourth parameter is a boolean for

&includeCustomers=boolean

Our Thingsboardversion:

Thingsboard Version PE 3.6

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Comments: 15 (8 by maintainers)

Most upvoted comments

Yes you are right, the example was for PE but the includeCustomer boolean was put in the wrong place and I read it like the CE version which has the optional config parameter. Apologies there.

this is the issue though in that we are just having to reverse engineer all of the methods because the autocomplete is the only docs we have to go on and its for the wrong version. I have requested a bug be raised for this too.

Thanks for your support. Its appreciated.

It would be historical day)))