You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Migrate the policies plugin to the new resource-layer methods, following the shared recipe in #15057.
Complexity: Low Target branch: develop
Context
policies currently uses the old resource methods. This task applies the migration recipe from #15057 to this plugin only. The new methods already exist (#15056), and the old ones still work, so this change is isolated to policies.
The Change
Apply the #15057 recipe to every resource usage in policies:
Replace old base-method calls with the new ones (fetchModel→retrieve, fetchCollection→list, saveModel→create/update, deleteModel→delete, saveCollection→bulkCreate, deleteCollection→bulkDelete, raw get/list/create).
❌ This issue is not open for contribution. Visit Contributing guidelines to learn about the contributing process and how to find suitable issues.
Overview
Migrate the
policiesplugin to the new resource-layer methods, following the shared recipe in #15057.Complexity: Low
Target branch: develop
Context
policiescurrently uses the old resource methods. This task applies the migration recipe from #15057 to this plugin only. The new methods already exist (#15056), and the old ones still work, so this change is isolated topolicies.The Change
Apply the #15057 recipe to every resource usage in
policies:fetchModel→retrieve,fetchCollection→list,saveModel→create/update,deleteModel→delete,saveCollection→bulkCreate,deleteCollection→bulkDelete, rawget/list/create).clearCache,getModel,getCollection,addModel, …).requestif the resource is defined and used only withinpolicies; otherwise add/point at a_v2shared method (see Migrate all plugins and shared packages to the new Resource-layer methods #15057).useRetrieve/useListfor reactive reads, if possible.Acceptance Criteria
policiescalls the old base methods or cache-management helpers._v2with the original left intact).useRetrieve/useListwhere possible.pnpm test-jestpasses forpolicies.AI usage
I used Claude Code to help draft this issue from the resource-layer refactor plan. I reviewed and edited it and confirmed the scope myself.