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

feat: reset license text #2726

Merged
merged 1 commit into from
Jan 30, 2025
Merged

feat: reset license text #2726

merged 1 commit into from
Jan 30, 2025

Conversation

mstykow
Copy link
Member

@mstykow mstykow commented Jan 28, 2025

Summary of changes

  • ensure that the license text is reset whenever a new license expression is selected
  • reset does not occur if a new license expression is typed instead of selected from the available options
  • new behavior prevents accidental mismatches between expression and text

Context and reason for change

Closes #2724

How can the changes be tested

Open an opossum file that has a license with custom license text. Then select another suggested license from the autocomplete and notice that the custom license text disappears.

@mstykow mstykow assigned mstykow and unassigned mstykow Jan 28, 2025
@@ -5,6 +5,4 @@
#
# SPDX-License-Identifier: Apache-2.0

. "$(dirname -- "$0")/_/husky.sh"
Copy link
Member Author

Choose a reason for hiding this comment

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

warning in console that this line is deprecated and should be removed

Copy link
Member Author

@mstykow mstykow Jan 28, 2025

Choose a reason for hiding this comment

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

these changes address some deprecation warnings in the MUI Autocomplete component.

- ensure that the license text is reset whenever a new license expression is selected
- reset does not occur if a new license expression is typed instead of selected from the available options
- new behavior prevents accidental mismatches between expression and text
- adjust e2e tests to always write a trace even when successful
@mstykow mstykow force-pushed the feat-reset-license-text branch from bd0f9f9 to 85661cb Compare January 29, 2025 12:54
Comment on lines +98 to +100
path: info.outputPath(
`${data?.inputData.metadata.projectId || 'app'}.trace.zip`,
),
Copy link
Member Author

Choose a reason for hiding this comment

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

create trace even if test succeeds

@alexzurbonsen alexzurbonsen self-requested a review January 30, 2025 09:14
textOverflow: 'ellipsis',
'&::placeholder': {
opacity: 1,
},
Copy link
Contributor

Choose a reason for hiding this comment

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

I am assuming this just is another (preferrable) way to use the API and doesn't change anything.

@mstykow mstykow merged commit 58480eb into main Jan 30, 2025
5 checks passed
@mstykow mstykow deleted the feat-reset-license-text branch January 30, 2025 12:26
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.

Reset license text if the user selects a suggested license expression
3 participants