Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable27] feat(dashboard): implement widget item api v2 #39993

Merged
merged 3 commits into from
Aug 22, 2023

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 <richard@steinmetz.cloud>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
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 Note

Argument 1 of OCP\Dashboard\IAPIWidgetV2::getItemsV2 cannot be null, possibly null value provided
@nickvergessen nickvergessen merged commit 7d795d0 into stable27 Aug 22, 2023
37 checks passed
@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.

4 participants