-
Notifications
You must be signed in to change notification settings - Fork 273
fix(amazonq): /doc add suppoort for uploading infrastructure diagrams #5357
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
9e5289b to
9308cd1
Compare
.../jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonqDoc/DocConstants.kt
Fixed
Show fixed
Hide fixed
...ains-community/src/software/aws/toolkits/jetbrains/services/amazonqDoc/session/DocSession.kt
Fixed
Show fixed
Hide fixed
...mmunity/src/software/aws/toolkits/jetbrains/services/amazonqDoc/session/DocSessionContext.kt
Fixed
Show fixed
Hide fixed
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUp | ||
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUpStatusType | ||
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUpTypes | ||
| import software.aws.toolkits.resources.message |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
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.
please address
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.
AmazonQ bundle doesn't have those messages yet
|
|
||
| val NEW_SESSION_FOLLOWUPS: List<FollowUp> = listOf( | ||
| FollowUp( | ||
| pillText = message("amazonqDoc.prompt.reject.new_task"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
| status = FollowUpStatusType.Info | ||
| ), | ||
| FollowUp( | ||
| pillText = message("amazonqDoc.prompt.reject.close_session"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols Warning
9308cd1 to
0a24b17
Compare
| const val DIAGRAM_SVG_EXT = "svg" | ||
| const val DIAGRAM_DOT_EXT = "dot" | ||
| val SUPPORTED_DIAGRAM_EXT_SET: Set<String> = setOf(DIAGRAM_SVG_EXT, DIAGRAM_DOT_EXT) | ||
| val SUPPORTED_DIAGRAM_FILE_NAME_SET: Set<String> = SUPPORTED_DIAGRAM_EXT_SET.map { "infra." + it }.toSet() |
Check notice
Code scanning / QDJVMC
String concatenation that can be converted to string template
| var context: DocSessionContext | ||
| val sessionStartTime = System.currentTimeMillis() | ||
|
|
||
| var state: SessionState? |
Check notice
Code scanning / QDJVMC
Join declaration and assignment
| */ | ||
| override fun getAdditionalGitIgnoreBinaryFilesRules(): Set<String> { | ||
| val ignoreRules = super.getAdditionalGitIgnoreBinaryFilesRules() | ||
| val diagramExtRulesInGitIgnoreFormatSet = SUPPORTED_DIAGRAM_EXT_SET.map { "*." + it }.toSet() |
Check notice
Code scanning / QDJVMC
String concatenation that can be converted to string template
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUp | ||
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUpStatusType | ||
| import software.aws.toolkits.jetbrains.services.amazonqDoc.messages.FollowUpTypes | ||
| import software.aws.toolkits.resources.message |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols
|
|
||
| val NEW_SESSION_FOLLOWUPS: List<FollowUp> = listOf( | ||
| FollowUp( | ||
| pillText = message("amazonqDoc.prompt.reject.new_task"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols
| status = FollowUpStatusType.Info | ||
| ), | ||
| FollowUp( | ||
| pillText = message("amazonqDoc.prompt.reject.close_session"), |
Check warning
Code scanning / QDJVMC
Usage of redundant or deprecated syntax or deprecated symbols
| const val DIAGRAM_SVG_EXT = "svg" | ||
| const val DIAGRAM_DOT_EXT = "dot" | ||
| val SUPPORTED_DIAGRAM_EXT_SET: Set<String> = setOf(DIAGRAM_SVG_EXT, DIAGRAM_DOT_EXT) | ||
| val SUPPORTED_DIAGRAM_FILE_NAME_SET: Set<String> = SUPPORTED_DIAGRAM_EXT_SET.map { "infra." + it }.toSet() |
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.
how does the user know this magic name will cause it to be included in the context?
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.
moved magic word into constant
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.
see internal discussion
77d5577 to
fec3b27
Compare
Upload infrastructure diagram image files during documentation generation
Types of changes
Description
Upload infrastructure diagram image files during documentation generation
Checklist
License
I confirm that my contribution is made under the terms of the Apache 2.0 license.