Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: v2 qa for semantic date range version limitation #2561

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

nahmed22
Copy link
Member

restrict the 'Semantic Date Range" in filter bar quick-action for certain UI5 versions which are not supported for V2 application.

@nahmed22 nahmed22 requested a review from a team as a code owner November 13, 2024 14:01
Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: 16042ca

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

@nahmed22 nahmed22 added the control-property-editor @sap-ux/control-property-editor label Nov 13, 2024
const version = await getUi5Version();
const isUI5VersionNotSupported =
isLowerThanMinimalUi5Version(version, { major: 1, minor: 128 }) ||
(version.major === 1 && (version.minor === 96 || version.minor === 108 || version.minor === 120));
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't 1.96, 1.108 and 1.120 should be also supported? Currently it looks like all the versions below 1.128 are not supported.

Copy link
Member Author

Choose a reason for hiding this comment

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

adapted the logic with test (with exact version 1.96). the condition was not handling it correctly.

@nahmed22 nahmed22 requested a review from voicis November 14, 2024 08:12
Copy link

sonarcloud bot commented Nov 14, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
control-property-editor @sap-ux/control-property-editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants