Skip to content

Conversation

@nickvergessen
Copy link
Member

Backport #39937

st3iny and others added 2 commits August 22, 2023 10:38
This API enables the dashboard to render all widgets from the API data
alone without having apps to provide their own bundles. This saves a lot
of traffic and execution time as a lot less javascript has to be parsed
on the frontend.

Signed-off-by: Richard Steinmetz <[email protected]>
Signed-off-by: Joas Schilling <[email protected]>
foreach ($widgets as $widget) {
if ($widget instanceof IAPIWidgetV2) {
$items[$widget->getId()] = $widget
->getItemsV2($this->userId, $sinceIds[$widget->getId()] ?? null, $limit)

Check notice

Code scanning / Psalm

PossiblyNullArgument

Argument 1 of OCP\Dashboard\IAPIWidgetV2::getItemsV2 cannot be null, possibly null value provided
@nickvergessen nickvergessen merged commit 7d795d0 into stable27 Aug 22, 2023
@nickvergessen nickvergessen deleted the backport/39937/stable27 branch August 22, 2023 12:21
@skjnldsv skjnldsv mentioned this pull request Aug 24, 2023
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants