Skip to content

Conversation

hentrymartin
Copy link
Collaborator

@hentrymartin hentrymartin commented Sep 15, 2025

What's in this PR?

  • Created an endpoint to update run items.

Ticket link - https://topcoder.atlassian.net/browse/PM-1792

);
}

const updateData: any = {};

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider using a more specific type for updateData instead of any to improve type safety and maintainability.

workflowRunItemId: itemId,
content: comment.content,
parentId: comment.parentId,
createdBy: '',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The createdBy field is being set to an empty string. If this is intentional, consider adding a validation or default value to ensure consistency.

createdAt: new Date(),
userId: user.userId as string,
updatedAt: new Date(),
updatedBy: '',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The updatedBy field is being set to an empty string. If this is intentional, consider adding a validation or default value to ensure consistency.

@hentrymartin hentrymartin changed the title [Work in Progress] feat: update workflow run item feat(PM-1792): update workflow run item Sep 17, 2025

const updateData: any = {};

if (patchData.upVotes !== undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should extend the logic here to allow M2M to be able to update everything, except scorecardQuestionId

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkartunov Now this logic is updated, can you please do a review again?

@kkartunov kkartunov merged commit 9a732de into develop Sep 19, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet