Skip to content

Commit

Permalink
update app analytics tests
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 committed Oct 6, 2023
1 parent 90a77d3 commit 0135bdd
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down Expand Up @@ -1564,6 +1565,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down Expand Up @@ -2758,6 +2760,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -3925,6 +3928,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -5151,6 +5155,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -6318,6 +6323,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -7537,6 +7543,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -8641,6 +8648,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -9807,6 +9815,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down Expand Up @@ -10940,6 +10949,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down Expand Up @@ -12132,6 +12142,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -13299,6 +13310,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -14525,6 +14537,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -15692,6 +15705,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
/>
</div>
Expand Down Expand Up @@ -16920,6 +16934,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down Expand Up @@ -18169,6 +18184,7 @@ Object {
placeholder="Enter PPL query"
rows="6"
spellcheck="false"
style="margin-top: 0px; height: 18px; padding: 8px;"
type="search"
>
source = openserach_dashboard_sample_logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,13 @@ exports[`Log Config component renders empty log config 1`] = `
onKeyDown={[Function]}
placeholder="Enter PPL query"
spellCheck="false"
style={
Object {
"height": "18px",
"marginTop": "0px",
"padding": "8px",
}
}
type="search"
value=""
>
Expand All @@ -541,6 +548,13 @@ exports[`Log Config component renders empty log config 1`] = `
placeholder="Enter PPL query"
rows={6}
spellCheck="false"
style={
Object {
"height": "18px",
"marginTop": "0px",
"padding": "8px",
}
}
type="search"
value=""
/>
Expand Down Expand Up @@ -1126,6 +1140,13 @@ exports[`Log Config component renders with query 1`] = `
onKeyDown={[Function]}
placeholder="Enter PPL query"
spellCheck="false"
style={
Object {
"height": "18px",
"marginTop": "0px",
"padding": "8px",
}
}
type="search"
value="source = openserach_dashboard_sample_logs"
>
Expand All @@ -1151,6 +1172,13 @@ exports[`Log Config component renders with query 1`] = `
placeholder="Enter PPL query"
rows={6}
spellCheck="false"
style={
Object {
"height": "18px",
"marginTop": "0px",
"padding": "8px",
}
}
type="search"
value="source = openserach_dashboard_sample_logs"
/>
Expand Down
2 changes: 1 addition & 1 deletion public/components/event_analytics/explorer/explorer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ export const Explorer = ({
};

useEffect(() => {
if (explorerSearchMeta.datasources?.[0]?.type === 'DEFAULT_INDEX_PATTERNS') {
if (explorerSearchMeta.datasources?.[0]?.type !== 'DEFAULT_INDEX_PATTERNS') {
dispatch(
changeQuery({
tabId,
Expand Down

0 comments on commit 0135bdd

Please sign in to comment.