-
Notifications
You must be signed in to change notification settings - Fork 8.5k
[Obs AI Assistant] Archiving conversations #216012
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
|
Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant) |
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
Flaky Test Runner Stats🎉 All tests passed! - kibana-flaky-test-suite-runner#8118[✅] x-pack/test/api_integration/deployment_agnostic/configs/stateful/oblt.stateful.config.ts: 25/25 tests passed. |
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/conversation_list.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/conversation_list.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/conversation_list.tsx
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx
Outdated
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_context_menu.tsx
Show resolved
Hide resolved
x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/conversation_list.tsx
Outdated
Show resolved
Hide resolved
...tion/deployment_agnostic/apis/observability/ai_assistant/conversations/conversations.spec.ts
Outdated
Show resolved
Hide resolved
...tion/deployment_agnostic/apis/observability/ai_assistant/conversations/conversations.spec.ts
Show resolved
Hide resolved
sorenlouv
left a comment
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.
Looks great! Just small nits
|
|
||
| try { | ||
| const archivedConversation = await service.callApi( | ||
| `PATCH /internal/observability_ai_assistant/conversation/{conversationId}`, |
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.
While PATCH is semantically the correct verb for partial updates I would stick to PUT for the majority of use cases. It's just dead simple and guaranteed to work in any environment.
If you want do avoid sending the full conversation it's also possible to add separate APIs like
POST /internal/observability_ai_assistant/conversation/{conversationId}/_archive
POST /internal/observability_ai_assistant/conversation/{conversationId}/_unarchive
(same goes for the public property)
That being said, don't change this. It's fine as it is. Just thinking out loud (and also so I can point to this if we ever get an SDH with somebody complaining that their old school proxy doesn't support PATCH requests :D )
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.
Thanks @sorenlouv
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]Public APIs missing comments
Async chunks
Page load bundle
Unknown metric groupsAPI count
History
cc @viduni94 |
|
Starting backport for target branches: 8.x |
💔 All backports failed
Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
Closes elastic#209386 ## Summary 1. The option to archive conversations are enabled via the conversation contextual menu. 2. Archived conversations can be viewed under the "Archived" section of the conversation list. 3. Only the owner of the conversation can archive and unarchive. 4. Once archived, the conversation cannot be continued until unarchived. 5. If the archived conversation is shared, other users (who are not the owner) can duplicate the conversation, if they wish to continue the conversation. 6. The archived section of the conversation list is collapsed by default. 7. Updating the conversation such as title updates, regenerating, providing chat feedback are disabled for archived conversations ### Checklist - [x] Any text added follows [EUI's writing guidelines](https://elastic.github.io/eui/#/guidelines/writing), uses sentence case text and includes [i18n support](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md) - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] [Flaky Test Runner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was used on any tests changed - [x] The PR description includes the appropriate Release Notes section, and the correct `release_note:*` label is applied per the [guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 3aa036d) # Conflicts: # x-pack/platform/packages/shared/kbn-ai-assistant/src/chat/chat_body.tsx
# Backport This will backport the following commits from `main` to `8.x`: - [[Obs AI Assistant] Archiving conversations (#216012)](#216012) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-04-08T14:42:20Z","message":"[Obs AI Assistant] Archiving conversations (#216012)\n\nCloses https://github.com/elastic/kibana/issues/209386\n\n## Summary\n\n1. The option to archive conversations are enabled via the conversation\ncontextual menu.\n2. Archived conversations can be viewed under the \"Archived\" section of\nthe conversation list.\n3. Only the owner of the conversation can archive and unarchive.\n4. Once archived, the conversation cannot be continued until unarchived.\n5. If the archived conversation is shared, other users (who are not the\nowner) can duplicate the conversation, if they wish to continue the\nconversation.\n6. The archived section of the conversation list is collapsed by\ndefault.\n7. Updating the conversation such as title updates, regenerating,\nproviding chat feedback are disabled for archived conversations\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"3aa036d5156b3833307d0805f8b564f998b35d0c","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:feature","Team:Obs AI Assistant","ci:project-deploy-observability","backport:version","v9.1.0","v8.19.0"],"title":"[Obs AI Assistant] Archiving conversations","number":216012,"url":"https://github.com/elastic/kibana/pull/216012","mergeCommit":{"message":"[Obs AI Assistant] Archiving conversations (#216012)\n\nCloses https://github.com/elastic/kibana/issues/209386\n\n## Summary\n\n1. The option to archive conversations are enabled via the conversation\ncontextual menu.\n2. Archived conversations can be viewed under the \"Archived\" section of\nthe conversation list.\n3. Only the owner of the conversation can archive and unarchive.\n4. Once archived, the conversation cannot be continued until unarchived.\n5. If the archived conversation is shared, other users (who are not the\nowner) can duplicate the conversation, if they wish to continue the\nconversation.\n6. The archived section of the conversation list is collapsed by\ndefault.\n7. Updating the conversation such as title updates, regenerating,\nproviding chat feedback are disabled for archived conversations\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"3aa036d5156b3833307d0805f8b564f998b35d0c"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/216012","number":216012,"mergeCommit":{"message":"[Obs AI Assistant] Archiving conversations (#216012)\n\nCloses https://github.com/elastic/kibana/issues/209386\n\n## Summary\n\n1. The option to archive conversations are enabled via the conversation\ncontextual menu.\n2. Archived conversations can be viewed under the \"Archived\" section of\nthe conversation list.\n3. Only the owner of the conversation can archive and unarchive.\n4. Once archived, the conversation cannot be continued until unarchived.\n5. If the archived conversation is shared, other users (who are not the\nowner) can duplicate the conversation, if they wish to continue the\nconversation.\n6. The archived section of the conversation list is collapsed by\ndefault.\n7. Updating the conversation such as title updates, regenerating,\nproviding chat feedback are disabled for archived conversations\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] [Flaky Test\nRunner](https://ci-stats.kibana.dev/trigger_flaky_test_runner/1) was\nused on any tests changed\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"3aa036d5156b3833307d0805f8b564f998b35d0c"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->
Closes #209386
Summary
Checklist
release_note:*label is applied per the guidelines