-
-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(REF) dev/core#1637, dev/core#1651 - Restore format of packagesBase #16791
Conversation
This reverts commit c68b331.
These use-cases had been tested during PR dev for 5.23.alpha, but they regressed in 5.23.1. In 5.23.1's civicrm#16735, note item (5) and the flip-flop on `/.` Item (5) references some greps to find references `/.` For obscure reasons, the file `l10n.js.tpl` didn't match the greps.
Try to prevent future bounciness in changing these variables.
(Standard links)
|
FWIW, I did some local |
Tested inline edit and mailing issue on drupal 7 - 5.23.2 / 5.24 / master. All good. Also unless there's some weird use of |
Oh, yeah, good idea checking for more references. Also, FWIW, the reason the |
Maybe we could use something like an emoji as the delimiter instead of [ ]. Or chr(1). It has the extra bonus of being fun to watch people try to type in... Oh the internet tells me emojis are valid filename chars. Probably shouldn't tell too many people that...guess what will happen... |
Overview
This is an alternative to #16779 / #16780. I think #16780 is better/simpler, but it had a defect, which is addressed here - and ultimately leads to the smallest/simplest patch.
Before and After
resourceBase
but nopackagesBase
.resourceBase
andpackagesBase
, and they both end in/
.resourceBase
andpackagesBase
diverge --packagesBase
accidentally loses its/
. Consumers break.resourceBase
andpackagesBase
remain diverged -- and every consumer ofpackagesBase
is made defensive.resourceBase
andpackagesBase
are once again aligned (both ending in/
)... butpackagesBase
is miscomputed.resourceBase
andpackagesBase
are once again aligned (both ending in/
).Comments
master
(5.25 or 5.26). The problem is that this will lock-in the ambiguity in the content ofpackagesBase
: with any new code (core or contrib) which referencespackagesBase
, they'll either assume that there is no/
or they'll have to reproduce the defensive snippets. The former means we can't bringresourceBase
andpackagesBase
back into alignment (without a break), and the latter spreads the mess around.