-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Security Assistant] Conversation pagination refactor #211831
Changes from 78 commits
5d6161c
4453b31
35933e4
840869f
5640671
465f5ae
b4a9ad8
768fcee
2c4a586
e2ddd2d
bbc762c
584ef5a
9af0a98
984805f
3ae8d77
734395d
adb6708
4647797
6a0ff13
a3339bb
624872c
49fce1c
ec79d13
a891f48
85e319c
c6e83ee
0b0a84d
65323ba
26c8f89
b586e99
0d523a9
8d59721
ca47324
37cc51a
eea73d1
d2f0085
acdc2c9
87c4494
e3ccc69
8966acf
126bbd8
f173681
521281a
8961f2f
ae45ca0
ee46ab3
66c2444
c27ddbe
d8d74e3
f9aa064
7b241c2
b2a646b
753eca6
a98afcf
950a97e
3786f91
51b3495
8c48cde
c4ba41c
45b48cf
8c36b93
5237974
1066feb
012a26a
946525c
2df74c4
263e838
1fa102e
a01aad0
c756d20
f7ed3da
0ba887c
4e4c963
62d6e91
958dbbc
2136e97
8c8a77b
d7e6ad6
397fa53
4657855
0d8876b
f7f905c
bc10348
f92589a
b7e23af
134d9dc
767e766
a47544e
c3b0d44
3dc557f
bb88cd9
00cfadb
d7a240b
3eb4780
f7d1eb1
deeadfe
8347cd8
97d1b18
d73450f
93d8e62
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,5 @@ components: | |
type: string | ||
enum: | ||
- 'created_at' | ||
- 'is_default' | ||
- 'title' | ||
- 'updated_at' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,11 +19,8 @@ import { defaultAssistantFeatures } from '@kbn/elastic-assistant-common'; | |
const http = { | ||
fetch: jest.fn().mockResolvedValue(defaultAssistantFeatures), | ||
}; | ||
const onFetch = jest.fn(); | ||
|
||
const defaultProps = { | ||
http, | ||
onFetch, | ||
isAssistantEnabled: true, | ||
} as unknown as UseFetchCurrentUserConversationsParams; | ||
|
||
|
@@ -48,14 +45,16 @@ describe('useFetchCurrentUserConversations', () => { | |
method: 'GET', | ||
query: { | ||
page: 1, | ||
per_page: 99, | ||
fields: ['id', 'title', 'apiConfig', 'updatedAt'], | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: due to this change in only returning a subset of fields, the Discussed w/ @stephmilovic, and we may want to remove |
||
filter: undefined, | ||
per_page: 28, | ||
sort_field: 'updated_at', | ||
sort_order: 'desc', | ||
}, | ||
version: '2023-10-31', | ||
signal: undefined, | ||
} | ||
); | ||
|
||
expect(onFetch).toHaveBeenCalled(); | ||
}); | ||
}); | ||
}); |
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.
WRT API breaking changes since the Conversations API is already public -- this is only an issue if it's still included as request validation with fail, correct? This seems fine given adoption and functionality here, so if anything maybe we just make a note to mention in the release notes?