Page MenuHomePhabricator

Drive all Celerity operations from the new map
ClosedPublic

Authored by epriestley on Jan 1 2014, 1:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 10:41 AM
Unknown Object (File)
Jan 30 2024, 11:34 PM
Unknown Object (File)
Jan 26 2024, 7:17 AM
Unknown Object (File)
Jan 24 2024, 5:06 AM
Unknown Object (File)
Nov 24 2023, 10:45 PM
Unknown Object (File)
Nov 23 2023, 11:50 AM
Unknown Object (File)
Nov 12 2023, 1:08 PM
Unknown Object (File)
Oct 25 2023, 8:45 PM
Subscribers

Details

Summary

Ref T4222.

  • Removes the old map and changes the CelerityResourceMap API to be entirely driven by the new map.
  • The new map is about 50% smaller and organized more sensibly.
  • This removes the /pkg/ URI component. All resources are now required to have unique names, so we can tell if a resource is a package or not by looking at the name.
  • Removes some junky old APIs.
  • Cleans up some other APIs.
  • Added some feedback for bin/celerity map.
  • CelerityResourceMap is still a singleton which is inextricably bound to the Phabricator map; this will change in the future.
Test Plan
  • Reloaded pages.
  • Verified packaging works by looking at generated includes.
  • Forced minification on and verified it worked.
  • Forced no-timestamps on and verified it worked.
  • Rebuilt map.
  • Ran old script and verified error message.
  • Checked logs.

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

Also:

  • Grepped for affected paths/names.
  • Used profiler to verify runtime construction of the reverse maps isn't costly (600us).

Ran new mapper and refreshed some pages and they appeared correctly.