Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmycallin committed Apr 3, 2024
1 parent e578165 commit 106c7d8
Showing 1 changed file with 85 additions and 85 deletions.
170 changes: 85 additions & 85 deletions actions/ftrack-sync/ftrack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,92 +160,92 @@ export async function ensureChangeRequestExists(
"8d962a2e-f756-466a-8f2c-418de09bcb56";

const customAttributes = [];
// customAttributes.push(
// getSession().create("CustomAttributeValue", {
// configuration_id: TESTING_PROCEDURE_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: JSON.stringify({
// url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.lmq93bry7zi4",
// name: "Google Docs",
// }),
// }),
// );
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: RELEVANT_DOCUMENTS_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: {
// url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.lmq93bry7zi4",
// name: "Google Docs",
// },
// }),
// );
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: BACKOUT_PROCEDURE_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: {
// url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.qfeny2946uh",
// name: "Google Docs",
// },
// }),
// );
// if (ciUrl) {
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: GITHUB_CI_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: {
// url: ciUrl,
// name: "GitHub CI",
// },
// }),
// );
// }
// if (releaseUrl) {
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: GITHUB_RELEASE_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: {
// url: releaseUrl,
// name: "GitHub Release",
// },
// }),
// );
// }
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: RISK_RATING_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: "low",
// }),
// );
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: APPROVAL_REQUIREMENT_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: "peer",
// }),
// );
// customAttributes.push(
// userSession.create("CustomAttributeValue", {
// configuration_id: IMPACT_CONFIGURATION_ID,
// entity_id: changeRequestId,
// value: "low",
// }),
// );
customAttributes.push(
getSession().create("CustomAttributeValue", {
configuration_id: TESTING_PROCEDURE_CONFIGURATION_ID,
entity_id: changeRequestId,
value: {
url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.lmq93bry7zi4",
name: "Google Docs",
},
}),
);
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: RELEVANT_DOCUMENTS_CONFIGURATION_ID,
entity_id: changeRequestId,
value: {
url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.lmq93bry7zi4",
name: "Google Docs",
},
}),
);
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: BACKOUT_PROCEDURE_CONFIGURATION_ID,
entity_id: changeRequestId,
value: {
url: "https://docs.google.com/document/d/1z_gbXx9vMKho80UKYEW6d5POcFrdzdngeCtxibH90qw/edit#heading=h.qfeny2946uh",
name: "Google Docs",
},
}),
);
if (ciUrl) {
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: GITHUB_CI_CONFIGURATION_ID,
entity_id: changeRequestId,
value: {
url: ciUrl,
name: "GitHub CI",
},
}),
);
}
if (releaseUrl) {
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: GITHUB_RELEASE_CONFIGURATION_ID,
entity_id: changeRequestId,
value: {
url: releaseUrl,
name: "GitHub Release",
},
}),
);
}
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: RISK_RATING_CONFIGURATION_ID,
entity_id: changeRequestId,
value: "low",
}),
);
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: APPROVAL_REQUIREMENT_CONFIGURATION_ID,
entity_id: changeRequestId,
value: "peer",
}),
);
customAttributes.push(
userSession.create("CustomAttributeValue", {
configuration_id: IMPACT_CONFIGURATION_ID,
entity_id: changeRequestId,
value: "low",
}),
);

// if (release.id) {
// customAttributes.push(
// userSession.create("CustomAttributeLink", {
// configuration_id: RELEASE_LINK_CONFIGURATION_ID,
// from_id: changeRequestId,
// to_id: release.id,
// }),
// );
// }
// await Promise.all(customAttributes);
if (release.id) {
customAttributes.push(
userSession.create("CustomAttributeLink", {
configuration_id: RELEASE_LINK_CONFIGURATION_ID,
from_id: changeRequestId,
to_id: release.id,
}),
);
}
await Promise.all(customAttributes);
}
}

Expand Down

0 comments on commit 106c7d8

Please sign in to comment.