Skip to content

Commit

Permalink
updated linter
Browse files Browse the repository at this point in the history
Signed-off-by: sumukhswamy <[email protected]>
  • Loading branch information
sumukhswamy committed Oct 19, 2024
1 parent 548b611 commit 0b00ea0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ export function ServiceView(props: ServiceViewProps) {
name: 'View logs',
'data-test-subj': 'viewLogsButton',
onClick: () => {
isNewNavEnabled
? coreRefs?.application!.navigateToApp('data-explorer', {
if (isNewNavEnabled) {
coreRefs?.application!.navigateToApp('data-explorer', {
path: `discover#?_a=(discover:(columns:!(_source),isDirty:!f,sort:!()),metadata:(view:discover))&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:${
props.startTime
},to:${props.endTime}))&_q=(filters:!(),query:(dataset:(dataSource:(id:'${
Expand All @@ -189,8 +189,9 @@ export function ServiceView(props: ServiceViewProps) {
}::ss4o_logs-*',timeFieldName:'time',title:'ss4o_logs-*',type:INDEXES),language:PPL,query:'source%20%3D%20ss4o_logs-%2A%20%7C%20where%20serviceName%20%3D%20%22${
props.serviceName
}%22'))`,
})
: coreRefs?.application!.navigateToApp(observabilityLogsID, {
});
} else {
coreRefs?.application!.navigateToApp(observabilityLogsID, {
path: `#/explorer`,
state: {
DEFAULT_DATA_SOURCE_NAME,
Expand All @@ -200,6 +201,7 @@ export function ServiceView(props: ServiceViewProps) {
endTimeRange: props.endTime,
},
});
}
},
},
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ export function SpanDetailPanel(props: {
closeFlyout={() => setCurrentSpan('')}
addSpanFilter={addSpanFilter}
mode={mode}
dataSourceMDSId={props.dataSourceMDSId}
dataSourceMDSLabel={props.dataSourceMDSLabel} />
dataSourceMDSId={props.dataSourceMDSId}
dataSourceMDSLabel={props.dataSourceMDSLabel}
/>
)}
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export function TraceView(props: TraceViewProps) {
data={ganttData}
setData={setGanttData}
dataSourceMDSId={props.dataSourceMDSId[0].id}
dataSourceMDSLabel={props.dataSourceMDSId[0].label }
dataSourceMDSLabel={props.dataSourceMDSId[0].label}
/>
</EuiFlexItem>
</EuiFlexGroup>
Expand Down
2 changes: 1 addition & 1 deletion public/components/trace_analytics/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export const Home = (props: HomeProps) => {
// Get existing query params
const queryParamsOnLoad = new URLSearchParams(window.location.href.split('?')[1]);
const dsFromURL = queryParamsOnLoad.get('datasourceId');

const [dataSourceMDSId, setDataSourceMDSId] = useState([
{ id: dsFromURL ?? undefined, label: undefined },
]);
Expand Down

0 comments on commit 0b00ea0

Please sign in to comment.