You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log a warning to the console when Editor/docs are given @latest
We currently resolve the version before it's sent to the component, however for future debugging it is useful to know that we're sending a version that jsDelivr can't provide.
What are we logging?:
assets/js/job-editor/mount.tsx
The message should be:
"job-editor hook received an adaptor with @latest as it's version - to load docs a specific version must be provided"
Technical Notes
By removing the call to resolve the adaptor version, and setting the jobs' adaptor to use @latest the editor will call out to jsDelivr and you will be able to see a bunch of 404s in the network inspect.
def update(%{form: form} = assigns, socket) do
socket =
socket
|> assign(
adaptor:
form
|> input_value(:adaptor)
|> Lightning.AdaptorRegistry.resolve_adaptor(), # <=== here
source: form |> input_value(:body),
credential: form |> input_value(:credential),
The text was updated successfully, but these errors were encountered:
NickOpenFn
changed the title
Log a warning in the console when the Editor/docs component is given latest
Chore: Log a warning in the console when the Editor/docs component is given latest
Aug 10, 2023
Log a warning to the console when Editor/docs are given
@latest
We currently resolve the version before it's sent to the component, however for future debugging it is useful to know that we're sending a version that jsDelivr can't provide.
What are we logging?:
assets/js/job-editor/mount.tsx
The message should be:
"job-editor hook received an adaptor with @latest as it's version - to load docs a specific version must be provided"
Technical Notes
By removing the call to resolve the adaptor version, and setting the jobs' adaptor to use
@latest
the editor will call out to jsDelivr and you will be able to see a bunch of 404s in the network inspect.The text was updated successfully, but these errors were encountered: