Refactor getting plugin related Kong entities in Kong state to store pointers to the entities #6115
Open
2 of 4 tasks
Labels
area/debt
area/maintenance
Cleanup, refactoring, and other maintenance improvements that don't change functionality.
Is there an existing issue for this?
Does this enhancement require public documentation?
Problem Statement
Finding referred Kong entities (service/route/consumer/...) of custom entities requires to find related entities of plugins and generating IDs for the entities. Since the existing method of getting related entities of plugins in building plugins only gets "names" of identifiers, we implemented a separate method to satisfy it to prevent significant change in the existing part.
To reduce the duplicated work and clearer code, we should refactor the building of plugin relationships and share the result in the two parts that uses them.
Proposed Solution
Additional information
No response
Acceptance Criteria
buildPluginRels
method to get related entities of a Kong plugin can be shared between all parts of building fullKongState
The text was updated successfully, but these errors were encountered: