Skip to content

Commit

Permalink
fix: Try fix wrong success oidc auth (#516) (#517)
Browse files Browse the repository at this point in the history
  • Loading branch information
callmevladik authored Dec 11, 2024
1 parent 4e2141d commit 7b48b2b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM epamedp/headlamp:0.22.40
FROM epamedp/headlamp:0.22.41

COPY --chown=100:101 assets/ /headlamp/frontend
COPY --chown=100:101 dist/main.js /headlamp/plugins/edp/main.js
Expand Down
17 changes: 13 additions & 4 deletions src/pages/pipeline-details/view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const PageView = () => {
const theme = useTheme();

const renderPageContent = React.useCallback(() => {
const hasReserveLogs = !logs.isLoading && (!logs.error || !logs.data.all.length);
const hasReserveLogs = !logs.isLoading && !logs.error && !!logs?.data?.all?.length;

if (pipelineRun.error) {
return (
Expand All @@ -54,9 +54,18 @@ export const PageView = () => {
fontSize={theme.typography.pxToRem(14)}
color="#596D80"
>
{hasReserveLogs
? 'No pipeline runs were found for the requested resource. Logs have been retrieved from OpenSearch.'
: 'No logs were found for the requested pipeline run. This might have been caused by environment cleanup. Please ensure you have checked the correct resource.'}
{hasReserveLogs ? (
'No pipeline runs were found for the requested resource. Logs have been retrieved from OpenSearch.'
) : (
<>
<p>
No logs were found for the requested pipeline run. This might have been
caused by environment cleanup. Please ensure you have checked the correct
resource.
</p>
{logs.error && logs.error?.message}
</>
)}
</Typography>
</Stack>
</Stack>
Expand Down

0 comments on commit 7b48b2b

Please sign in to comment.