Skip to content

Comments

OUT-3179 | Resetting association from public API on task update endpoint does not work#1136

Merged
arpandhakal merged 3 commits intoOUT-3178from
OUT-3179
Feb 23, 2026
Merged

OUT-3179 | Resetting association from public API on task update endpoint does not work#1136
arpandhakal merged 3 commits intoOUT-3178from
OUT-3179

Conversation

@arpandhakal
Copy link
Collaborator

Changes

  • kept the association logic consistent on public task update service.
  • fixed the logic for validating isShared value on task update apis : both web and public.

Testing Criteria

  • Case 1 : when all value aligns with requirement.
image

-Case 2 : when association is empty but isShared is on.
image

-Case 3 : when internalUserId is null but isShared is on.
image

-Case 4 : removing association with isShared off.
image

@linear
Copy link

linear bot commented Feb 20, 2026

@vercel
Copy link
Contributor

vercel bot commented Feb 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
tasks-app Ready Ready Preview, Comment Feb 23, 2026 7:44am

Request Review

} else if (data.associations?.length) {
associations = await this.validateAssociations(data.associations)
}
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

@arpandhakal This could be simplified or organized to make it more understandable.
eg create a function that initally checks the condition in line 342. If like 342 is true, it returns empty array.

It then validate associatsions agains schema, after that if result is empty, it again returns empty array. Otherwise. It returns this.validateAssociations(...)

Copy link
Collaborator

@priosshrsth priosshrsth left a comment

Choose a reason for hiding this comment

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

lgtm

@arpandhakal arpandhakal merged commit b622202 into OUT-3178 Feb 23, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants