fix: 5891 rum issue v2 (#6006)

This commit is contained in:
Bhargav
2025-02-18 16:42:13 +05:30
committed by GitHub
parent ab44c16a8b
commit e6ccaea91d
3 changed files with 25 additions and 5 deletions
+7 -2
View File
@@ -723,7 +723,14 @@ const useLogs = () => {
true,
true,
);
searchObj.data.stream.selectedStreamFields = streamData.schema;
if(!searchObj.data.stream.selectedStreamFields || searchObj.data.stream.selectedStreamFields.length == 0) {
searchObj.data.stream.selectedStreamFields = [];
searchObj.loading = false;
return false;
}
}
const streamFieldNames: any =
@@ -1063,8 +1070,6 @@ const useLogs = () => {
return req;
} catch (e: any) {
// showErrorNotification("Invalid SQL Syntax");
console.log(e);
notificationMsg.value =
"An error occurred while constructing the search query.";
return "";
+15
View File
@@ -187,6 +187,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
enhance search.
</h6>
</div>
<div
v-else-if="
(!searchObj.data.stream.selectedStreamFields ||
searchObj.data.stream.selectedStreamFields.length == 0) &&
searchObj.loading == false
"
class="row q-mt-lg"
>
<h6
data-test="logs-search-no-stream-selected-text"
class="text-center col-10 q-mx-none"
>
<q-icon name="info" color="primary" size="md" /> No field found in selected stream.
</h6>
</div>
<div
v-else-if="
searchObj.data.queryResults.hasOwnProperty('hits') &&
+3 -3
View File
@@ -395,13 +395,13 @@ const getDefaultEvent = (event: any) => {
const handleErrorEvent = (event: any) => {
const _event = getDefaultEvent(event);
_event.name = event.error_message;
_event.name = event?.error_message || "--";
return _event;
};
const handleActionEvent = (event: any) => {
const _event = getDefaultEvent(event);
_event.name = event.action_type + ' on "' + event.action_target_name + '"';
_event.name = event?.action_type + ' on "' + event?.action_target_name + '"' || "--";
// if (event.event.custom.error) {
// _event.name = event.event.custom.error.message;
// }
@@ -416,7 +416,7 @@ const handleViewEvent = (event: any) => {
// " error " +
// event.event.custom.error.stack;
// }
_event.name = event.view_loading_type + " : " + event.view_url;
_event.name = event?.view_loading_type + " : " + event?.view_url || "--";
return _event;
};