Merge pull request #2685 from akhilmhdh/fix/tag-no-update-in-approval

fix: resolved tag update not happening via approval
This commit is contained in:
Maidul Islam
2024-11-05 09:54:13 -05:00
committed by GitHub
2 changed files with 5 additions and 4 deletions
@@ -267,7 +267,8 @@ export const secretApprovalRequestServiceFactory = ({
: "", : "",
secretComment: el.secretVersion.encryptedComment secretComment: el.secretVersion.encryptedComment
? secretManagerDecryptor({ cipherTextBlob: el.secretVersion.encryptedComment }).toString() ? secretManagerDecryptor({ cipherTextBlob: el.secretVersion.encryptedComment }).toString()
: "" : "",
tags: el.secretVersion.tags
} }
: undefined : undefined
})); }));
@@ -571,7 +572,7 @@ export const secretApprovalRequestServiceFactory = ({
reminderNote: el.reminderNote, reminderNote: el.reminderNote,
skipMultilineEncoding: el.skipMultilineEncoding, skipMultilineEncoding: el.skipMultilineEncoding,
key: el.key, key: el.key,
tagIds: el?.tags.map(({ id }) => id), tags: el?.tags.map(({ id }) => id),
...encryptedValue ...encryptedValue
} }
}; };
@@ -96,7 +96,7 @@ export const SecretApprovalRequestChangeItem = ({
<SecretInput isReadOnly value={secretVersion?.secretValue} /> <SecretInput isReadOnly value={secretVersion?.secretValue} />
</Td> </Td>
<Td>{secretVersion?.secretComment}</Td> <Td>{secretVersion?.secretComment}</Td>
<Td> <Td className="flex flex-wrap gap-2">
{secretVersion?.tags?.map(({ slug, id: tagId, color }) => ( {secretVersion?.tags?.map(({ slug, id: tagId, color }) => (
<Tag <Tag
className="flex w-min items-center space-x-2" className="flex w-min items-center space-x-2"
@@ -118,7 +118,7 @@ export const SecretApprovalRequestChangeItem = ({
<SecretInput isReadOnly value={newVersion?.secretValue} /> <SecretInput isReadOnly value={newVersion?.secretValue} />
</Td> </Td>
<Td>{newVersion?.secretComment}</Td> <Td>{newVersion?.secretComment}</Td>
<Td> <Td className="flex flex-wrap gap-2">
{newVersion?.tags?.map(({ slug, id: tagId, color }) => ( {newVersion?.tags?.map(({ slug, id: tagId, color }) => (
<Tag <Tag
className="flex w-min items-center space-x-2" className="flex w-min items-center space-x-2"