Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
Back to tool/Back to issues
#42940·frappe

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/resource or /api/v1 in frontend/src and ui/src.
  • Fail on any import of call, createResource, createListResource, createDocumentResource, useCall, useList, useDoc, useNewDoc or useDoctype from frappe-ui, outside the wrapper module (the one allowed exception).
  • Both halves: the ui/ config goes to develop, the frontend/ config to desk-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

View original on GitHubView discussion on GitHub