List deployer LRNs in deployment configuration step (#11)

Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75)

- Fix request Id being set to `null` while fetching build logs
- Populate deployer LRNs dropdown with LRNs fetched from registry in configure delpoyment step

![image](/attachments/ff421bdf-6e0b-443e-9dc8-455bde481b4f)

![image](/attachments/87c9bce3-3743-4f4a-a997-a02a3504e61e)

![image](/attachments/dd442fe6-ad30-4723-a2bb-0723ad3eb3c9)

![image](/attachments/37f0da01-671f-4e3a-92e4-b34e25566a0d)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Co-authored-by: Neeraj <neeraj.rtly@gmail.com>
Reviewed-on: cerc-io/snowballtools-base#11
This commit is contained in:
2024-10-23 15:36:19 +00:00
co-authored by IshaVenikar Neeraj
parent 096318cf13
commit 3d9aedeb7e
17 changed files with 273 additions and 161 deletions
+8
View File
@@ -424,4 +424,12 @@ export class GQLClient {
return data.getAuctionData;
}
async getDeployers(): Promise<types.GetDeployersResponse> {
const { data } = await this.client.query({
query: queries.getDeployers,
});
return data;
}
}
+18 -8
View File
@@ -25,9 +25,9 @@ query ($projectId: String!) {
prodBranch
auctionId
deployers {
deployerApiUrl
deployerId
deployerLrn
deployerId
deployerApiUrl
}
fundsReleased
framework
@@ -81,9 +81,9 @@ query ($organizationSlug: String!) {
framework
auctionId
deployers {
deployerApiUrl
deployerId
deployerLrn
deployerId
deployerApiUrl
}
fundsReleased
prodBranch
@@ -145,9 +145,9 @@ query ($projectId: String!) {
commitMessage
url
deployer {
deployerLrn
deployerId
deployerLrn,
deployerApiUrl,
deployerApiUrl
}
environment
isCurrent
@@ -208,9 +208,9 @@ query ($searchText: String!) {
framework
auctionId
deployers {
deployerApiUrl
deployerId
deployerLrn
deployerId
deployerApiUrl
}
fundsReleased
prodBranch
@@ -307,3 +307,13 @@ query ($auctionId: String!) {
}
}
`;
export const getDeployers = gql`
query {
deployers {
deployerLrn
deployerId
deployerApiUrl
}
}
`;
+6 -2
View File
@@ -117,9 +117,9 @@ export type Deployment = {
};
export type Deployer = {
deployerApiUrl: string;
deployerId: string;
deployerLrn: string;
deployerId: string;
deployerApiUrl: string;
}
export type OrganizationMember = {
@@ -233,6 +233,10 @@ export type GetDomainsResponse = {
domains: Domain[];
};
export type GetDeployersResponse = {
deployers: Deployer[];
};
export type SearchProjectsResponse = {
searchProjects: Project[];
};