-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: add Enter Enterprise License Key action #7159
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR adds license key functionality for the IntelliJ extension. The implementation has a critical logic error where success and error notifications are swapped, and there are several other issues including potential null pointer exceptions, missing EOF newlines, and hardcoded values that should be constants.
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
Code Review Summary✅ Strengths
|
|
@sestinj, I've decided to end with Restart IDE just so we can ship this quickly (I'm absent tomorrow), but we can think next week about improving that. |
|
I fixed a few things. The bot caught a few potential problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR adds license key functionality to the IntelliJ extension. The implementation has several issues that need attention, including missing error handling, potential NPE risks, lack of input validation, and missing newlines at EOF.
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Outdated
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Outdated
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
...ij/src/main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKey.kt
Show resolved
Hide resolved
.../main/kotlin/com/github/continuedev/continueintellijextension/license/AddLicenseKeyDialog.kt
Show resolved
Hide resolved
Code Review Summary✅ Strengths
|
Solves CON-3473 Notes: * I don't have a license key, so I haven't fully tested this, but looking at the TypeScript: true in the response means it's valid, and false means it's not * Extra: I added Try Again because I noticed that searching for the action every time the key is invalid is inconvenient * I wasn't sure if restarting the IDE is safe without more testing, so I ended with Restart IDE action (it was much faster to implement)
|
🎉 This PR is included in version 1.5.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 1.7.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Solves CON-3473
Notes:
truein the response means it's valid, andfalsemeans it's notGIFs
Invalid
Valid
Summary by cubic
Added an "Enter Enterprise License Key" action to IntelliJ for setting and validating license keys. Users get instant feedback, with options to retry or restart the IDE as needed.