mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-04 21:26:17 +00:00
fix: remove logs
This commit is contained in:
@@ -225,7 +225,6 @@ export const accessApprovalRequestServiceFactory = ({
|
|||||||
const requesterFullName = `${requestedByUser.firstName} ${requestedByUser.lastName}`;
|
const requesterFullName = `${requestedByUser.firstName} ${requestedByUser.lastName}`;
|
||||||
const approvalUrl = `${cfg.SITE_URL}/secret-manager/${project.id}/approval`;
|
const approvalUrl = `${cfg.SITE_URL}/secret-manager/${project.id}/approval`;
|
||||||
|
|
||||||
console.log("triggering workflow integration notification");
|
|
||||||
await triggerWorkflowIntegrationNotification({
|
await triggerWorkflowIntegrationNotification({
|
||||||
input: {
|
input: {
|
||||||
notification: {
|
notification: {
|
||||||
|
|||||||
@@ -49,15 +49,11 @@ export const triggerWorkflowIntegrationNotification = async (dto: TTriggerWorkfl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("microsoftTeamsConfig", microsoftTeamsConfig);
|
|
||||||
if (microsoftTeamsConfig) {
|
if (microsoftTeamsConfig) {
|
||||||
if (notification.type === TriggerFeature.ACCESS_REQUEST) {
|
if (notification.type === TriggerFeature.ACCESS_REQUEST) {
|
||||||
if (microsoftTeamsConfig.isAccessRequestNotificationEnabled && microsoftTeamsConfig.accessRequestChannels) {
|
if (microsoftTeamsConfig.isAccessRequestNotificationEnabled && microsoftTeamsConfig.accessRequestChannels) {
|
||||||
const { success, data } = MicrosoftTeamsChannelsSchema.safeParse(microsoftTeamsConfig.accessRequestChannels);
|
const { success, data } = MicrosoftTeamsChannelsSchema.safeParse(microsoftTeamsConfig.accessRequestChannels);
|
||||||
|
|
||||||
console.log("success", success);
|
|
||||||
console.log("data", data);
|
|
||||||
|
|
||||||
if (success && data) {
|
if (success && data) {
|
||||||
await microsoftTeamsService
|
await microsoftTeamsService
|
||||||
.sendNotification({
|
.sendNotification({
|
||||||
|
|||||||
@@ -303,9 +303,7 @@ export class TeamsBot extends TeamsActivityHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async run(context: TurnContext) {
|
async run(context: TurnContext) {
|
||||||
console.log("Running Microsoft Teams bot", {
|
logger.info(context, "Processing Microsoft Teams context");
|
||||||
context
|
|
||||||
});
|
|
||||||
await super.run(context);
|
await super.run(context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
-2
@@ -51,8 +51,6 @@ export const MicrosoftTeamsConfigRow = ({ handlePopUpOpen }: Props) => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("after");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
||||||
|
|||||||
-6
@@ -162,9 +162,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
|
|||||||
const selectedAccessRequestTeamId = watch("accessRequestChannels.teamId");
|
const selectedAccessRequestTeamId = watch("accessRequestChannels.teamId");
|
||||||
const selectedSecretRequestTeamId = watch("secretRequestChannels.teamId");
|
const selectedSecretRequestTeamId = watch("secretRequestChannels.teamId");
|
||||||
|
|
||||||
console.log("selectedAccessRequestTeamId", selectedAccessRequestTeamId);
|
|
||||||
console.log("selectedSecretRequestTeamId", selectedSecretRequestTeamId);
|
|
||||||
|
|
||||||
const selectedMicrosoftTeamsIntegrationId = watch("microsoftTeamsIntegrationId");
|
const selectedMicrosoftTeamsIntegrationId = watch("microsoftTeamsIntegrationId");
|
||||||
|
|
||||||
const accessRequestNotificationsEnabled = watch("isAccessRequestNotificationEnabled");
|
const accessRequestNotificationsEnabled = watch("isAccessRequestNotificationEnabled");
|
||||||
@@ -188,9 +185,6 @@ export const MicrosoftTeamsIntegrationForm = ({ onClose }: Props) => {
|
|||||||
.map((team) => team.channels)
|
.map((team) => team.channels)
|
||||||
.flat();
|
.flat();
|
||||||
|
|
||||||
console.log("selectableAccessRequestChannelIds", selectableAccessRequestChannelIds);
|
|
||||||
console.log("selectableSecretRequestChannelIds", selectableSecretRequestChannelIds);
|
|
||||||
|
|
||||||
const channelIdToName = [
|
const channelIdToName = [
|
||||||
...(selectableAccessRequestChannelIds || []),
|
...(selectableAccessRequestChannelIds || []),
|
||||||
...(selectableSecretRequestChannelIds || [])
|
...(selectableSecretRequestChannelIds || [])
|
||||||
|
|||||||
-2
@@ -47,8 +47,6 @@ export const SlackConfigRow = ({ handlePopUpOpen }: Props) => {
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("after slakc");
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Tr>
|
<Tr>
|
||||||
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
<Td className="flex max-w-xs items-center overflow-hidden text-ellipsis">
|
||||||
|
|||||||
-1
@@ -166,7 +166,6 @@ export const SlackIntegrationForm = ({ onClose }: Props) => {
|
|||||||
isDisabled={!isAllowed}
|
isDisabled={!isAllowed}
|
||||||
placeholder="None"
|
placeholder="None"
|
||||||
onValueChange={(val) => {
|
onValueChange={(val) => {
|
||||||
console.log("Selecting ", val);
|
|
||||||
onChange(val);
|
onChange(val);
|
||||||
}}
|
}}
|
||||||
className="w-full"
|
className="w-full"
|
||||||
|
|||||||
Reference in New Issue
Block a user