Repository navigation
GH Issue 1813: Remove unused IsLibraryCurrentAction - #1306
Conversation
The old check compared only query parameters, so it never rejected a mismatched server.
|
@vagisha Claude was fairly sure the previous code was wrong and would never reject. New code could reject, so that's a risk, I guess. Totally your call whether you want the change... I have no horse in this race. |
Claude is right! Thanks for fixing it. I have not been able to find any callers of IsLibraryCurrentAction in the MacCoss lab modules, targetedms, or Skyline. I think the action could be removed. |
Even better! I'll delete it instead. |
…nks (#1085) ## Rationale This PR updates callers for the platform rename of `ActionURL.getBaseServerURL()` to `getBaseServerURLWithContextPath()` and fixes malformed links in notification emails. [GH Issue 1813](LabKey/internal-issues#1813) ## Related Pull Requests - LabKey/platform#8341 - LabKey/premiumModules#865 - LabKey/MacCossLabModules#691 - LabKey/onprcEHRModules#2000 - LabKey/targetedms#1306 ## Changes - Update callers to the new method name - Build notification links with `ActionURL` through shared helpers, which removes doubled slashes and encodes parameters, including animal Ids in animal history links - HTML-escape link URLs in notification emails - Fix a stray quote that broke the "all animal requests" link
…ds (#8341) ## Rationale This PR makes it clear which base server URL methods include the context path and fixes callers that built full URLs by hand. `ActionURL.getBaseServerURL()` included the context path while `AppProps.getBaseServerUrl()` did not, so it's renamed to `getBaseServerURLWithContextPath()`. [GH Issue 1813](LabKey/internal-issues#1813) ## Related Pull Requests - LabKey/premiumModules#865 - LabKey/wnprc-modules#1085 - LabKey/MacCossLabModules#691 - LabKey/onprcEHRModules#2000 - LabKey/targetedms#1306 ## Changes - Rename the `ActionURL` base server URL method so its name says it includes the context path - Document that `URLHelper`'s base server URI omits the context path - Build full URLs in notification emails and the send participant group page from the URL itself instead of concatenating pieces - Include the full URL, not just the path, in the plain-text part of notification emails, and HTML-escape the link in the HTML part - Show the send participant group link exactly as it is emailed, rather than decoded - Render the fallback error page with the request's own view context instead of a fabricated one
…ink (#2000) ## Rationale This PR updates the SLA module for the platform rename of `ActionURL.getBaseServerURL()` to `getBaseServerURLWithContextPath()` and fixes the purchase order review link in SLA notification emails, which was assembled by hand without encoding the container path. [GH Issue 1813](LabKey/internal-issues#1813) ## Related Pull Requests - LabKey/platform#8341 - LabKey/premiumModules#865 - LabKey/wnprc-modules#1085 - LabKey/MacCossLabModules#691 - LabKey/targetedms#1306 ## Changes - Build the purchase order review link in notification emails from the action URL instead of concatenating pieces
…Path (#691) ## Rationale This PR updates callers for the platform rename of `ActionURL.getBaseServerURL()` to `getBaseServerURLWithContextPath()`. [GH Issue 1813](LabKey/internal-issues#1813) ## Related Pull Requests - LabKey/platform#8341 - LabKey/premiumModules#865 - LabKey/wnprc-modules#1085 - LabKey/onprcEHRModules#2000 - LabKey/targetedms#1306 ## Changes - Update callers to the new method name
Rationale
This PR removes
IsLibraryCurrentAction, which nothing in the codebase calls. Its Panorama server check compared only query parameters and so never rejected anything; it surfaced while auditing base server URL callers for GH Issue 1813.Related Pull Requests
Changes