Skip to content

feat(services): add lifecycle and connectivity services#984

Open
karlitschek wants to merge 1 commit into
masterfrom
split/07-services-lifecycle-connectivity
Open

feat(services): add lifecycle and connectivity services#984
karlitschek wants to merge 1 commit into
masterfrom
split/07-services-lifecycle-connectivity

Conversation

@karlitschek
Copy link
Copy Markdown
Member

Adds four read-only service classes used by the upcoming admin dashboard cards. None are wired into existing controllers yet, so this change is a pure addition with no behavior change.

  • EolInfo - PHP and Nextcloud end-of-life date warnings
  • OsUpdates - reads /var/lib/update-notifier/updates-available
    and /var/run/reboot-required (no sudo, no shell)
  • AppStoreReachability - cached HEAD probe to apps.nextcloud.com
  • FederationStats - sent / received / trusted-server counts

Adds four read-only service classes used by the upcoming admin
dashboard cards. None are wired into existing controllers yet, so
this change is a pure addition with no behavior change.

* EolInfo              - PHP and Nextcloud end-of-life date warnings
* OsUpdates            - reads /var/lib/update-notifier/updates-available
                         and /var/run/reboot-required (no sudo, no shell)
* AppStoreReachability - cached HEAD probe to apps.nextcloud.com
* FederationStats      - sent / received / trusted-server counts

Signed-off-by: Frank Karlitschek <frank@nextcloud.com>
Comment thread lib/EolInfo.php
Comment on lines +22 to +30
private const PHP_EOL = [
'7.4' => '2022-11-28',
'8.0' => '2023-11-26',
'8.1' => '2025-12-31',
'8.2' => '2026-12-31',
'8.3' => '2027-12-31',
'8.4' => '2028-12-31',
'8.5' => '2029-12-31',
];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This list/data …

Comment thread lib/EolInfo.php
Comment on lines +38 to +48
private const NC_EOL = [
'27' => '2024-06-30',
'28' => '2024-12-31',
'29' => '2025-06-30',
'30' => '2025-12-31',
'31' => '2026-06-30',
'32' => '2026-12-31',
'33' => '2027-06-30',
'34' => '2028-06-30',
'35' => '2028-12-31',
];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

… and this list/data is external information that has no update mechanism. I'm clarifying how we want to cope with this.

Copy link
Copy Markdown
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Comment thread lib/EolInfo.php
private const NC_EOL = [
'27' => '2024-06-30',
'28' => '2024-12-31',
'29' => '2025-06-30',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
'29' => '2025-06-30',
'29' => '2025-04-30',

Comment thread lib/EolInfo.php
'27' => '2024-06-30',
'28' => '2024-12-31',
'29' => '2025-06-30',
'30' => '2025-12-31',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
'30' => '2025-12-31',
'30' => '2025-10-31',

Comment thread lib/EolInfo.php
'28' => '2024-12-31',
'29' => '2025-06-30',
'30' => '2025-12-31',
'31' => '2026-06-30',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
'31' => '2026-06-30',
'31' => '2026-02-28',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants