Skip to content

Investigate incremental processing for GitHub-based URL updaters #2917

Done
0 of 1 issue completed
Done

Description

@capg-leo

Task summary

After adding pagination to the GitHub-based URL updaters, repositories with many or frequently published releases may require multiple GitHub API requests on every updater run.

We should investigate whether the existing status.json mechanism could be used to remember the last successfully processed GitHub release or tag and avoid processing already known results again.

Tasks

  • Check which identifiers or metadata are available for GitHub releases and tags, such as IDs or timestamps.
  • Check whether the GitHub API supports filtering or sorting results based on these values.
  • Investigate whether pagination can stop once a previously processed item is reached.
  • Check how the required state could be persisted in status.json.
  • Consider differences between GitHub releases and tags.
  • Define fallback behavior when no previous state is available.
  • Document a proposed solution and determine whether it is worth implementing.

Additional context

Notes

The goal of this task is to evaluate the approach first. The actual implementation should be handled separately once a reliable solution has been identified.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added theissue type on Nov 22, 2026
  2. added
    enhancement
    on Nov 22, 2026
  3. self-assigned this
    on Nov 23, 2026
  4. capg-leo commented on Nov 25, 2026

    @capg-leo
    ContributorAuthor

    Investigation result

    The incremental processing approach appears to be feasible.

    GitHub does not provide a suitable created_at filter for the API endpoints used by the GitHub-based URL updaters. Therefore, storing a timestamp would not reduce the number of API requests, as the pages would still have to be retrieved.

    However, as discussed with @hohwille , the results can be processed from the newest entries towards older entries. This allows pagination to stop as soon as a version that was already processed during a previous run is reached.

    Further investigation showed that we do not need additional state in status.json for this. The versions already present in the IDEasy URL repository can be used as the known state.

    Proposed approach:

    Load the versions already present in the URL repository before requesting the GitHub API pages.
    Retrieve the GitHub results page by page.
    Apply the existing mapVersion() logic before comparing a GitHub result with the known versions.
    Stop requesting additional pages as soon as an already known version is encountered.
    If no previous versions exist, or no known version can be found, fall back to the current behavior and retrieve all pages.
    The same mechanism can be applied to release- and tag-based GitHub URL updaters.

    I also validated the approach with tests: when an already known version is encountered on page 2, page 3 is no longer requested.

    Therefore, I think the optimization is worth implementing. Since this issue is intended for investigation only, I suggest handling the actual implementation in a separate follow-up issue.

  5. moved this from 🆕 New to ✅ Done in IDEasy boardon Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions