wso2 / wso2/api-platform

Add Policy Lifecycle Close Method for Resource Cleanup

Open
#855 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area/PolicyEngine
Dominant language
Go
Stars
71
Forks
111
Avg merge
1d 14h
Merged PRs (30d)
110

Description

Problem

When APIs are deleted or updated via xDS, the ApplyWholeRoutes method replaces the entire routes map without calling any cleanup on existing policy instances:

Proposed Solution

Discussion: https://github.com/wso2/api-platform/discussions/734

Alternatives

No response

Version

No response

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating ApplyWholeRoutes and tracing how xDS updates replace the routes map and retain existing policy instances. Read discussion #734 for the intended lifecycle behavior; the work is done when replaced policies receive the new close cleanup path without disrupting route updates.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.