Skip to content

[COLLAB-CON-3]: deleteFlowConnection mutation#1339

Open
kevinkim-ogp wants to merge 3 commits intocollab-conn/view-shared-connectionsfrom
collab-conn/delete-flow-connection-mutation
Open

[COLLAB-CON-3]: deleteFlowConnection mutation#1339
kevinkim-ogp wants to merge 3 commits intocollab-conn/view-shared-connectionsfrom
collab-conn/delete-flow-connection-mutation

Conversation

@kevinkim-ogp
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
Contributor Author

kevinkim-ogp commented Nov 25, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add the label lfg to this PR to add it to the merge queue.

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@kevinkim-ogp kevinkim-ogp changed the title feat: deleteFlowConnection mutation [COLLAB-CON-3]: deleteFlowConnection mutation Nov 26, 2025
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from aa4a8f0 to 7b8e37b Compare November 26, 2025 14:07
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from bcbcb18 to 54904b9 Compare November 26, 2025 14:07
@kevinkim-ogp kevinkim-ogp marked this pull request as ready for review November 27, 2025 01:56
@kevinkim-ogp kevinkim-ogp requested a review from a team as a code owner November 27, 2025 01:56
@kevinkim-ogp kevinkim-ogp changed the base branch from collab-conn/view-shared-connections to graphite-base/1339 January 7, 2026 01:30
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from 7b8e37b to 1e60433 Compare March 19, 2026 14:14
@kevinkim-ogp kevinkim-ogp changed the base branch from graphite-base/1339 to collab-conn/view-shared-connections March 19, 2026 15:35
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from 1e60433 to be8b6d5 Compare March 27, 2026 03:11
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from e7af01b to 4c77227 Compare March 27, 2026 03:11
Copy link
Copy Markdown
Contributor

@pregnantboy pregnantboy left a comment

Choose a reason for hiding this comment

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

As discussed, it would be simpler and safer if we only allow deletion of the flow connection iff the connection is not in use. i.e. users need to manually delete the step or re-configure the relying steps if they want to remove it.

@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from be8b6d5 to 7e0ba60 Compare March 31, 2026 01:23
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from 4c77227 to ec893f7 Compare March 31, 2026 01:23
Copy link
Copy Markdown
Contributor Author

kevinkim-ogp commented Mar 31, 2026

Refactored

Blocks deletion if the connection is in-use

Tests

Call the mutation directly via Apollo extension or Postman

  • Cannot delete connection if its in-use
  • Cannot delete Tile connection if its in-use
  • Should throw BadUserInputError if Pipe is published
  • Should throw ForbiddenError if you do not have access to the Pipe

@datadog-opengovsg
Copy link
Copy Markdown

datadog-opengovsg bot commented Mar 31, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 385cd7f | Docs | Was this helpful? Give us feedback!

Copy link
Copy Markdown
Contributor

@pregnantboy pregnantboy left a comment

Choose a reason for hiding this comment

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

lgtm, works well! One small nit for delete-flow-connection: connectionType doesn't need to be part of the input since it can be retrieved from the DB. Also, consider checking that the FlowConnection exists before performing the other validation checks.

@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from ec893f7 to 2898341 Compare April 6, 2026 23:37
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from eb44857 to c31c15c Compare April 6, 2026 23:37
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from 2898341 to 7153306 Compare April 15, 2026 11:46
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from c31c15c to 3ca6639 Compare April 15, 2026 11:46
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/delete-flow-connection-mutation branch from 3ca6639 to 385cd7f Compare April 16, 2026 15:14
@kevinkim-ogp kevinkim-ogp force-pushed the collab-conn/view-shared-connections branch from 7153306 to 39cd736 Compare April 16, 2026 15:14
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