feat: POST /conversations to companion backend#3691
feat: POST /conversations to companion backend#3691mrCherry97 merged 23 commits intokyma-project:mainfrom
Conversation
…st-conversations
…st-conversations
…st-conversations
…st-conversations
backend/companion/TokenManager.js
Outdated
| try { | ||
| // Split the token and get the payload | ||
| const payload = JSON.parse( | ||
| Buffer.from(token.split('.')[1], 'base64').toString(), |
There was a problem hiding this comment.
Use const like PAYLOAD_INDEX instead of magic number?
backend/companion/companionRouter.js
Outdated
| req.body.toString(), | ||
| ); | ||
| const clusterUrl = req.headers['x-cluster-url']; | ||
| const clusterToken = req.headers['x-k8s-authorization'].replace( |
There was a problem hiding this comment.
yes this is the cleanest approach
|
Hey Damian, thanks for the review. |
mrCherry97
left a comment
There was a problem hiding this comment.
It will be nice to have some Loader/Spinner when Busola is loading suggestions, because I was confused in first couple seconds that it's not working.
is it intended, that if I go on PersistentVolumes -> Open AI -> I have suggestions for PV -> Go to StorageClasses or somewhere else -> suggestions are not refreshed, shouldn't suggestions get refreshed on the screen change?
mrCherry97
left a comment
There was a problem hiding this comment.
Could you also change js files to ts? like TokenManager, router and gettoken?
There was a problem hiding this comment.
-
Suggestions are only refreshed when you close and open joule again. It should refresh if you go to different page. If it is not possible to start/change resource then maybe close joule?
-
It would be good to have some indicator if suggestions are loading, and some message if there is no suggestions to show (on modules).
-
On the button opening Joule we popup saying what this button is about. It would be good to have the same on buttons in Joule window

…st-conversations
…st-conversations
…st-conversations


Description
Changes proposed in this pull request:
Related issue(s)
#3602
Definition of done
backlog#4567