Skip to content

[INS-1189] Redirect to organization page if project is not found. - #9068

Merged
pavkout merged 1 commit into
Kong:developfrom
gatzjames:fix/INS-1189-error-when-deleting-project
Sep 2, 2025
Merged

[INS-1189] Redirect to organization page if project is not found.#9068
pavkout merged 1 commit into
Kong:developfrom
gatzjames:fix/INS-1189-error-when-deleting-project

Conversation

@gatzjames

Copy link
Copy Markdown
Contributor

Overview:

Currently when deleting a project there is a race condition where the project is deleted but some items inside the project e.g. (workspace,request) are not based on the way our database handles deleting related objects.
This leads to some items requesting the project loader data which ends up throwing an error.

This PR fixes the issue where the loader is called with a projectId for a deleted project by redirecting to the parent organization.

Next steps:

  • Investigate deleting everything under a project when the project is deleted.
  • We are already working on removing using database logic from inside the UI which will eliminate this class of issues.

@gatzjames
gatzjames requested a review from a team August 28, 2025 14:56
@gatzjames gatzjames self-assigned this Aug 28, 2025

@pavkout pavkout left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@pavkout
pavkout force-pushed the fix/INS-1189-error-when-deleting-project branch from ca39c9d to bc0d295 Compare September 2, 2025 07:00
@pavkout
pavkout enabled auto-merge (squash) September 2, 2025 07:01
@pavkout
pavkout merged commit 6eeef90 into Kong:develop Sep 2, 2025
10 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