Automatically retrieve latest Nextcloud server version for stale app detection

Open
#1,906 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
52/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
django, python
Domain
backend

Research direction

Start in nextcloudappstore/core/models.py at the is_outdated function and trace how the hardcoded Nextcloud server version is used. Review nearby tests or callers if present, then establish how the latest server release will be obtained and verify that the app detail warning uses that value or the agreed age-based rule.

Written by the indexing model from the issue text.

Description

enhancement technical debt
How to use GitHub
  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Feature request

Is your feature request related to a problem? Please describe.
The goal of the is_outdated function at https://github.com/nextcloud/appstore/blob/729a6c5003938349b40946f08b993b78bbceb1d9/nextcloudappstore/core/models.py#L403 is to determine whether or not to display a warning banner in an app's details page for being outdated. However, the Nextcloud server version being compared to is hardcoded to a constant value and doesn't update on new Nextcloud releases. Previously, the intention was to display the banner when the last app release is 3 major versions behind the latest Nextcloud version.

Describe the solution you'd like
Add a way to detect the latest release version of the Nextcloud server, and base the check around that value.

Describe alternatives you've considered
Now that major Nextcloud versions have switched to a seasonal release schedule, maybe it would be sufficient to just detect whether the last app release is more than a year old (regardless of server version).

Dominant language
Python
Stars
392
Forks
177
Avg merge
1d 2h
Merged PRs (30d)
29

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nextcloud/appstore

All issues in nextcloud/appstore

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.