Switch console file fields to File download URLs
Replace presigned URL string fields (logoUrl, fileUrl, ndaFileName, etc.) with nested File references resolved through /api/files/v1/. Update console Relay queries and e2e coverage accordingly. Route NDA upload through filemanager.PutFile and return stable IAM org logo URLs for consistency with the files API. Signed-off-by: Ludovic Vielle <ludovic@probo.com>
This commit is contained in:
@@ -53,8 +53,12 @@ export const auditNodeQuery = graphql`
|
||||
framework {
|
||||
id
|
||||
name
|
||||
lightLogoURL
|
||||
darkLogoURL
|
||||
lightLogo {
|
||||
downloadUrl
|
||||
}
|
||||
darkLogo {
|
||||
downloadUrl
|
||||
}
|
||||
}
|
||||
organization {
|
||||
id
|
||||
|
||||
@@ -47,7 +47,10 @@ const uploadTrustCenterNDAMutation = graphql`
|
||||
uploadTrustCenterNDA(input: $input) {
|
||||
trustCenter {
|
||||
id
|
||||
ndaFileName
|
||||
nda {
|
||||
fileName
|
||||
downloadUrl
|
||||
}
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
@@ -68,7 +71,10 @@ const deleteTrustCenterNDAMutation = graphql`
|
||||
deleteTrustCenterNDA(input: $input) {
|
||||
trustCenter {
|
||||
id
|
||||
ndaFileName
|
||||
nda {
|
||||
fileName
|
||||
downloadUrl
|
||||
}
|
||||
updatedAt
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,9 @@ export const createTrustCenterReferenceMutation = graphql`
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
logoUrl
|
||||
logo {
|
||||
downloadUrl
|
||||
}
|
||||
rank
|
||||
createdAt
|
||||
updatedAt
|
||||
@@ -55,7 +57,9 @@ export const updateTrustCenterReferenceMutation = graphql`
|
||||
name
|
||||
description
|
||||
websiteUrl
|
||||
logoUrl
|
||||
logo {
|
||||
downloadUrl
|
||||
}
|
||||
rank
|
||||
createdAt
|
||||
updatedAt
|
||||
|
||||
Reference in New Issue
Block a user