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: Do not rely on web components calling the license checker #14028

Merged
merged 8 commits into from Jun 23, 2022

Conversation

Artur-
Copy link
Member

@Artur- Artur- commented Jun 22, 2022

No description provided.

@Artur- Artur- requested a review from vursen June 22, 2022 09:53
@github-actions
Copy link

github-actions bot commented Jun 22, 2022

Unit Test Results

   980 files     980 suites   48m 27s ⏱️
6 315 tests 6 267 ✔️ 48 💤 0
6 577 runs  6 523 ✔️ 54 💤 0

Results for commit 9a20c38.

♻️ This comment has been updated with latest results.

if (failedLicenseCheck) {
// Has been checked and the check failed
const { connectedCallback } = constructor.prototype;
constructor.prototype.connectedCallback = function () {
Copy link
Contributor

@vursen vursen Jun 23, 2022

Choose a reason for hiding this comment

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

The connectedCallback should be also overridden in the case the license is not checked yet. Otherwise, the license fallback will never be shown if the license check fails while the component is still not in the DOM.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed so it is always overwritten

Use the same key for productMissingLicense and productCheckOk
@sonarcloud
Copy link

sonarcloud bot commented Jun 23, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 4 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@Artur- Artur- merged commit 60a8728 into master Jun 23, 2022
@Artur- Artur- deleted the trigger-license-check branch June 23, 2022 11:08
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 23.2.0.

@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 14.9.0.beta1 and is also targeting the upcoming stable 14.9.0 version.

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

Successfully merging this pull request may close these issues.

None yet

3 participants