Comments (6)
working on a PR now for this if this is a real issue
from livebook.
Yeah, a PR is welcome. We should probably return {:zta, module, info}
.
from livebook.
And I was the one who broke it, here: c9d0c05 :)
from livebook.
haha no worries, I am trying to find the best way to add the test coverage now.
from livebook.
It is really hard because it happens on boot. A type system would have caught it. I think a unit test is fine for now.
from livebook.
Yeah, my plan was to allow for an override for the config function something like:
def identity_provider!(env) do
case get_system_env_or_test_provider(env) do
nil ->
{:session, LivebookWeb.SessionIdentity, :unused}
"custom:" <> module_key ->
destructure [module, key], String.split(module_key, ":", parts: 2)
module = Module.concat([module])
if Code.ensure_loaded?(module) do
{:custom, module, key}
else
abort!("module given as custom identity provider in #{env} could not be found")
end
provider ->
with [type, key] <- String.split(provider, ":", parts: 2),
%{^type => module} <- identity_provider_type_to_module() do
{nil, module, key}
else
_ -> abort!("invalid configuration for identity provider given in #{env}")
end
end
end
# Allow for this function to be tested more easily
defp get_system_env_or_test_provider(env) do
case {System.get_env(env), env} do
{nil, "TEST_IDENTITY_" <> provider} -> provider
{nil, _} -> nil
{provider, _} -> provider
end
end
that would then allow us to check the contract, since the bug was in the application start of the pattern match
from livebook.
Related Issues (20)
- Crash on Windows when trying to save file if a nearby filename contains an emoji HOT 3
- Livebook not working on window 10 HOT 2
- Livebook cannot connect to the default runtime HOT 20
- Deployed apps don't reevaluate cells marked as 'Reevaluates automatically' HOT 6
- Support epmdless runtimes HOT 1
- Cannot drop files on Safari
- Add two options to xlsx_reader? One to skip empty sheets and another to nillify expect_chars? HOT 4
- Revisit teleport integration
- Node terminated unexpectedly HOT 14
- Fix asset cache URL on distributed deployments
- mix escript.install hex livebook (cannot run livebook after) HOT 3
- Request to Acknowledge Uffizzi's Contributions in README HOT 5
- Livebook will not open; due to error during startup HOT 3
- Support Fly for zero-trust authentication HOT 1
- Broadcast event with application state
- Cannot compile or mix either the escript or the desktop version on mac os HOT 1
- VegaLite chart with datetime date fails to persist outputs HOT 1
- Configuring connection to remote nodes. HOT 1
- LIVEBOOK_FIPS link in README leads to 404 HOT 1
- Bug with Kino.Input.audio when inside a Livebook app HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from livebook.