Skip to content

Conversation

@heimwege
Copy link
Contributor

@heimwege heimwege commented Oct 10, 2025

spin-off from #3557 (comment)

And also no longer print the fetch error that lead to the fallback as error because its confusing. Changed this to debug.

@heimwege heimwege requested a review from a team as a code owner October 10, 2025 09:49
@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2025

🦋 Changeset detected

Latest commit: 433ef04

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@sap-ux-private/preview-middleware-client Patch
@sap-ux/preview-middleware Patch
@sap-ux/create Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@heimwege heimwege requested review from devinea and ytpo-lyne October 10, 2025 09:49
if (!version) {
Log.error('Could not get UI5 version of application. Using version: 1.130.0 as fallback.');
version = '1.130.0';
Log.error('Could not get UI5 version of application. Using version: 1.130.9 as fallback.');
Copy link
Contributor

Choose a reason for hiding this comment

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

Seems odd to have a hardcoded version here at all

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The fallback is being used in case requesting the version from the UI5 sources does not work. So If you know of any other option than to hard code it... I'm open for suggestions. As discussed in #3557 (comment) using ui5-info does not seem to be one.

Copy link
Contributor

@IainSAP IainSAP Oct 13, 2025

Choose a reason for hiding this comment

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

ui5-info does provide fallbacks but not patch version fallbacks. Why is a patch version necessary as a fallback?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ui5-info reads the UI5 version from UI5. So it is not a suitable fallback in case UI5 does not return a UI5 version (see #3557 (comment)).
Not sure why we need to discuss about who needs a patch version, but here we go:

…middleware/fallback-ui5-version

# Conflicts:
#	packages/preview-middleware/src/base/flp.ts
@sonarqubecloud
Copy link

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants