[WEB-3863] fix: links error handling#7126
Conversation
WalkthroughThe error handling in the Changes
Sequence Diagram(s)sequenceDiagram
participant Caller
participant IssueLinkStore
Caller->>IssueLinkStore: updateLink(link)
alt Success
IssueLinkStore-->>Caller: updated link data
else Error occurs
IssueLinkStore->>IssueLinkStore: revert local link data
IssueLinkStore-->>Caller: throw error
end
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (1)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Pull Request Linked with Plane Work Items
Comment Automatically Generated by Plane |
Description
For issue links the success toast was getting displayed even on failure. Thrown error for the toast to display correctly.
References
[WEB-3863]
Summary by CodeRabbit