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

fix: do not show hidden calendars #6770

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

SebastianKrupinski
Copy link
Contributor

Resolves: #6767
Requires: nextcloud/server#51081

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Copy link

codecov bot commented Feb 27, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.01%. Comparing base (9d76c8c) to head (4b0ba0a).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #6770   +/-   ##
=========================================
  Coverage     23.00%   23.01%           
- Complexity      476      479    +3     
=========================================
  Files           252      252           
  Lines         12174    12176    +2     
  Branches       2330     2317   -13     
=========================================
+ Hits           2801     2802    +1     
- Misses         9034     9035    +1     
  Partials        339      339           
Flag Coverage Δ
javascript 14.58% <ø> (ø)
php 59.32% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SebastianKrupinski SebastianKrupinski added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Feb 27, 2025
@SebastianKrupinski
Copy link
Contributor Author

The failed tests are due to the missing class on server the required PR needs to be merged

@ChristophWurst
Copy link
Member

This app works with Nextcloud 30. CI for 30 and 31 will still fail even when the server PR is in. Just FYI.

@SebastianKrupinski
Copy link
Contributor Author

This app works with Nextcloud 30. CI for 30 and 31 will still fail even when the server PR is in. Just FYI.

Yes, the idea was to back port the server side to 30 and 31

@@ -124,6 +125,9 @@ public function getItems(string $userId, ?string $since = null, int $limit = 7):
];
$widgetItems = [];
foreach ($calendars as $calendar) {
if ($calendar instanceof ICalendarIsEnabled && $calendar->isEnabled() === false) {
Copy link
Member

@st3iny st3iny Feb 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needs to be guarded by if (interface_exists(ICalendarIsEnabled::class)) { ... } until we are sure that this interface is always available.

Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
Status: 🏗️ In progress
Development

Successfully merging this pull request may close these issues.

Calendar dashboard widget is showing me events of hidden calendars
3 participants