Skip to content

Conversation

iambriccardo
Copy link
Contributor

@iambriccardo iambriccardo commented Sep 4, 2025

This PR introduces a new endpoint that returns version information for a pipeline.
The response includes:

  • the current version under version, and
  • a new_version field, populated when a newer version is available. A newer version is defined as a default image different from the current one.

The frontend can use this information to prompt the customer to update the pipeline version whenever an upgrade is possible, showing them the version information.

The endpoint also returns the version id to ensure that any update procedure is based on the version explicitly returned, rather than naively defaulting to the latest available version which could cause race conditions.

In the design we purposefully hide any mention of images, since we want to abstract the running environment of the pipeline and mentioning images might confuse people not familiar with K8S.

@coveralls
Copy link

coveralls commented Sep 4, 2025

Pull Request Test Coverage Report for Build 17463404362

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 76 of 77 (98.7%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 80.154%

Changes Missing Coverage Covered Lines Changed/Added Lines %
etl-api/src/utils.rs 41 42 97.62%
Totals Coverage Status
Change from base Build 17459033077: 0.1%
Covered Lines: 10735
Relevant Lines: 13393

💛 - Coveralls

@iambriccardo iambriccardo changed the title feat(api): Add endpoint for returning image version feat(api): Add endpoint for returning pipeline version Sep 4, 2025
@iambriccardo iambriccardo marked this pull request as ready for review September 4, 2025 12:03
@iambriccardo iambriccardo requested a review from a team as a code owner September 4, 2025 12:03
@iambriccardo iambriccardo merged commit 75c1b20 into main Sep 4, 2025
9 checks passed
@iambriccardo iambriccardo deleted the riccardobusetti/etl-277-implement-the-backend-endpoints-for-returning-image branch September 4, 2025 12:29
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.

3 participants