Skip to content

Commit

Permalink
version not deployed fix
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-crespo-fdc committed Oct 24, 2024
1 parent be81ff9 commit 5e2423e
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion services/cd-service/pkg/service/overview.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type OverviewServiceServer struct {
func (o *OverviewServiceServer) GetAppDetails(
ctx context.Context,
in *api.GetAppDetailsRequest) (*api.GetAppDetailsResponse, error) {

span, ctx := tracer.StartSpanFromContext(ctx, "GetAppDetails")
defer span.Finish()

Expand Down
2 changes: 2 additions & 0 deletions services/frontend-service/src/ui/Pages/Home/Home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ export const Home: React.FC = () => {
const teamsParam = (params.get('teams') || '').split(',').filter((val) => val !== '');

const searchedApp = useApplicationsFilteredAndSorted(teamsParam, hideWithoutWarnings(params), appNameParam);

const apps = Object.values(searchedApp);

const element = useGlobalLoadingState();
if (element) {
return element;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ export type EnvironmentListItemProps = {
};

type CommitIdProps = {
deployment: Deployment;
deployment: Deployment | undefined;
app: string;
env: Environment;
otherRelease?: Release;
Expand Down Expand Up @@ -290,9 +290,7 @@ export const EnvironmentListItem: React.FC<EnvironmentListItemProps> = ({
'. ' +
(release.undeployVersion ? undeployTooltipExplanation : '')
}>
{deployment && (
<DeployedVersion app={app} env={env} deployment={deployment} otherRelease={otherRelease} />
)}
<DeployedVersion app={app} env={env} deployment={deployment} otherRelease={otherRelease} />
</div>
{queueInfo}
<div className={classNames('env-card-data')}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,16 @@ exports[`Release Dialog Renders the environment locks normal release 1`] = `
<div
class="env-card-data"
title="Shows the version that is currently deployed on prod. "
/>
>
<span>
"
test1
" has no version deployed on "
prod
"
</span>
)
</div>
<div
class="env-card-data"
>
Expand Down Expand Up @@ -530,7 +539,16 @@ exports[`Release Dialog Renders the environment locks normal release with deploy
<div
class="env-card-data"
title="Shows the version that is currently deployed on prod. "
/>
>
<span>
"
test1
" has no version deployed on "
prod
"
</span>
)
</div>
<div
class="env-card-data"
>
Expand Down Expand Up @@ -844,6 +862,7 @@ exports[`Release Dialog Renders the environment locks two envs release 1`] = `
</span>
the other commit message 2
</span>
)
</div>
<div
class="env-card-data"
Expand Down Expand Up @@ -998,6 +1017,7 @@ exports[`Release Dialog Renders the environment locks two envs release 1`] = `
</span>
the other commit message 3
</span>
)
</div>
<div
class="env-card-data env-card-data-queue"
Expand Down

0 comments on commit 5e2423e

Please sign in to comment.