Task: lint rule that bans v1 URLs and frappe-ui fetch primitives
Author: shariquerikCreated Sep 17, 2026Updated Sep 17, 2026
Labelswayfinder:task
Ticket of Desk v2 — REST API v2 everywhere. The principle and the decisions are in the grilling's resolution and its round-3 addendum.
Task
Add the lint rule that keeps the tree on v2. Runs in the existing frontend lint job. Blocked by the record task and by every region's build task (the region grillings each add one; re-wire this ticket when they do).
- Fail on any string literal starting with
/api/method,/api/resourceor/api/v1infrontend/srcandui/src. - Fail on any import of
call,createResource,createListResource,createDocumentResource,useCall,useList,useDoc,useNewDocoruseDoctypefrom frappe-ui, outside the wrapper module (the one allowed exception). - Both halves: the
ui/config goes todevelop, thefrontend/config todesk-v2. - Done when the rule is green on both branches and a deliberate v1 literal makes it red.
Closing this task wraps the map: check the map's Not yet specified is empty and hand any leftover fog up to the root map.
Source: frappe/frappe