Skip to content

Conversation

@antgamdia
Copy link
Contributor

@antgamdia antgamdia commented Jan 12, 2026

Description

While debugging some CI issues in #3948, I noticed we had some old unversioned endpoints out there.

It should not affect anything, as the default behavior is to use the latest available API version, but, for the sake of consistency, I don't think it's a bad idea to reflect the proper API endpoints.

Related TRNT-4139

How was this tested?

CI

Additional information

When tests used unversioned /api/collect, there was a 307 redirect, which added some latency and allowed the beforeEach to work after having loaded the scenario with Photofinish.
This PR adds a per-loaded-scenario visitSelectedHost() call, ensuring the page always fetches fresh data after the scenario loads rather than relying on real-time event timing.

Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>

Use v2/clusters

Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>

Use v2/clusters

Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>

Fix

Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>
@antgamdia antgamdia force-pushed the TRNT-4139-versioned-paths branch from 71f2c29 to 95a82e3 Compare January 12, 2026 18:58
Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>
Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>
Signed-off-by: Antonio Gamez Diaz <antonio.gamez@suse.com>
@antgamdia antgamdia marked this pull request as ready for review January 13, 2026 08:37
@antgamdia antgamdia requested a review from vicenteqa January 13, 2026 08:38
@antgamdia antgamdia merged commit 6bdeb53 into main Jan 13, 2026
105 of 110 checks passed
@antgamdia antgamdia deleted the TRNT-4139-versioned-paths branch January 13, 2026 15:56
@antgamdia
Copy link
Contributor Author

FTR, we triggered a flakiness analysis (see https://github.com/trento-project/web/actions/runs/20961496708), and tests seem to be consistently passing!

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants