Skip to content

Commit 1dc0098

Browse files
authored
Merge branch 'main' into mg/OPS-3112-oss
2 parents 773d8ab + d79539f commit 1dc0098

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

packages/server/api/src/app/authentication/context/create-project-auth-context.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { accessTokenManager } from './access-token-manager';
1515
export async function getProjectAndToken(
1616
user: User,
1717
tablesRefreshToken: string,
18+
expiresInSeconds?: number,
1819
): Promise<{
1920
user: User;
2021
project: Project;
@@ -38,15 +39,18 @@ export async function getProjectAndToken(
3839
project.organizationId,
3940
);
4041

41-
const token = await accessTokenManager.generateToken({
42-
id: user.id,
43-
externalId: user.externalId,
44-
type: PrincipalType.USER,
45-
projectId: project.id,
46-
organization: {
47-
id: organization.id,
42+
const token = await accessTokenManager.generateToken(
43+
{
44+
id: user.id,
45+
externalId: user.externalId,
46+
type: PrincipalType.USER,
47+
projectId: project.id,
48+
organization: {
49+
id: organization.id,
50+
},
4851
},
49-
});
52+
expiresInSeconds,
53+
);
5054

5155
return {
5256
user: updatedUser,

packages/ui-components/src/components/flow-template/domain-icons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {
22
AlertTriangle,
3+
FileBadge,
34
Gauge,
45
LucideIcon,
56
PieChart,
@@ -11,4 +12,5 @@ export const DOMAIN_ICON_SUGGESTIONS: Record<string, LucideIcon> = {
1112
'Anomaly Management': AlertTriangle,
1213
'Rate Optimization': TrendingUp,
1314
'Workload Optimization': Gauge,
15+
'Policy & Governance': FileBadge,
1416
};

0 commit comments

Comments
 (0)