Skip to content

fix(amazonq): do not model types that are directly passthrough to chat ui #5702

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

Merged
merged 9 commits into from
May 9, 2025

Conversation

rli
Copy link
Contributor

@rli rli commented May 9, 2025

Due to mix of Jackson and Gson, history is not rendered correctly due to incorrect deserialization of enums

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

…t ui

Due to mix of Jackson and Gson, history is not rendered correctly due to incorrect deserialization of enums
@rli rli requested review from a team as code owners May 9, 2025 00:55
…-history-restore

 Conflicts:
	plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/AmazonQLanguageClientImpl.kt
Copy link

github-actions bot commented May 9, 2025

Qodana Community for JVM

21 new problems were found

Inspection name Severity Problems
Unused symbol 🔶 Warning 21

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at qodana-support@jetbrains.com


enum class AuthFollowupType(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class AuthFollowupType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@JsonProperty("calendar")
CALENDAR,
@JsonAdapter(EnumJsonValueAdapter::class)
enum class IconType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@JsonAdapter(EnumJsonValueAdapter::class)
enum class IconType(@JsonValue val repr: String) {
FILE("file"),
FOLDER("folder"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "FOLDER" is never used
FILE("file"),
FOLDER("folder"),
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "LIST_ADD" is never used
FOLDER("folder"),
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),
MAGIC("magic"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "MAGIC" is never used
CODE_BLOCK("code-block"),
LIST_ADD("list-add"),
MAGIC("magic"),
HELP("help"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "HELP" is never used
LIST_ADD("list-add"),
MAGIC("magic"),
HELP("help"),
TRASH("trash"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "TRASH" is never used
MAGIC("magic"),
HELP("help"),
TRASH("trash"),
SEARCH("search"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "SEARCH" is never used
HELP("help"),
TRASH("trash"),
SEARCH("search"),
CALENDAR("calendar"),

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "CALENDAR" is never used
}

enum class ConversationAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class ConversationAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used

enum class SerializedChatFormat(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class SerializedChatFormat(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "SerializedChatFormat" is never used

enum class SerializedChatFormat(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class SerializedChatFormat(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used

enum class TabBarAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TabBarAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Class "TabBarAction" is never used

enum class TabBarAction(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TabBarAction(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
// https://github.com/aws/language-server-runtimes/blob/main/chat-client-ui-types/src/uiContracts.ts#L27
enum class TriggerType(val value: String) {
@JsonAdapter(EnumJsonValueAdapter::class)
enum class TriggerType(@JsonValue val repr: String) {

Check warning

Code scanning / QDJVMC

Unused symbol Warning

Property "repr" is never used
@rli rli merged commit 25ee578 into feature/q-lsp-chat May 9, 2025
13 of 16 checks passed
@rli rli deleted the rli/fix-history-restore branch May 9, 2025 21:18
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.

2 participants