Commit graph

711 commits

Author SHA1 Message Date
Alexandre de Souza 51a3ab1895
Implement Teams API file system management (#2188) 2023-09-05 12:14:50 -03:00
Cristine Guadelupe a67d44e7b2
Metadata typo (#2195) 2023-09-03 20:48:33 +07:00
Jonatan Kłosko 841aba4d8f
Update export flow for JS outputs (#2186) 2023-08-28 13:38:00 +02:00
Cristine Guadelupe b7f5a44b9e
Use the default organization as default for new notebooks (#2183) 2023-08-25 19:46:59 +07:00
Jonatan Kłosko 867f091557
Do not export setup cell output (#2184) 2023-08-25 14:36:42 +02:00
Cristine Guadelupe 070d6a5c0f
Default organization (#2180)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-08-25 16:07:14 +07:00
Jonatan Kłosko b2ce588a1c Rename error output :known_reason to :context 2023-08-23 23:25:43 +02:00
Jonatan Kłosko da9cc6643b
Restructure output format (#2179) 2023-08-23 23:25:04 +02:00
Alexandre de Souza 928181cefe
Implements load/2 and dump/1 to FileSystem protocol and some improvements (#2171) 2023-08-22 16:20:35 -03:00
Jonatan Kłosko a11b1dfe7b
Add support for chunked text and markdown outputs (#2174) 2023-08-22 13:21:22 +02:00
Jonatan Kłosko d1eb522464
Split files into references/attachments and support renaming (#2167) 2023-08-17 22:13:39 +02:00
Jonatan Kłosko d08858346b Format 2023-08-11 22:47:57 +02:00
José Valim 946c20e168 File system -> File storage in error messages 2023-08-11 11:55:58 +02:00
Jonatan Kłosko 91253923b2
Improve wording around file system selector (#2157)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-08-11 11:52:19 +02:00
Jonatan Kłosko 74ca662bf3
Add warning when deploying protected apps from dir without password override (#2153) 2023-08-09 21:23:02 +02:00
Jonatan Kłosko c39902cd3a
Improve teams tests (#2151) 2023-08-08 21:03:01 +02:00
Jonatan Kłosko e9ab9dec91 Remove unreliable storage test
We wait for the storage process to finish writing the table to file
and then read the file manually, however the storage may be writing
to the file again (and the writing is async), so we may try to read
a partially written file.
2023-08-08 19:30:26 +02:00
José Valim 5fda5b02ab Improve import error messages 2023-08-07 13:46:29 +02:00
Hugo Baraúna 9d206b06d0
Changes copy of Add Teams Hub page (#2139) 2023-08-04 09:34:04 -03:00
José Valim 4a5d6da79d
Extract secrets storage to personal hub (#2132) 2023-08-01 20:48:55 +02:00
Alexandre de Souza fb578906ec
Improves disconnected status on Hub's page (#2127) 2023-08-01 14:27:44 -03:00
José Valim 7c40ab22e3
Warn if session is missing after reboot (#2128)
Closes #2075.
2023-08-01 19:12:38 +02:00
José Valim c404e817fb Compile teams hub on test_helper.exs if available 2023-08-01 18:48:16 +02:00
Alexandre de Souza 88fbf3c057
Add prefix to generated keys (#2118) 2023-07-28 12:55:37 -03:00
ByeongUk Choi dcca36a28a
Remove process all button from apps when interrupted/errored (#2117)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-07-27 18:28:14 +02:00
Alexandre de Souza 3ecc0b3653
Load secrets from Hub when deploying an App (#2098) 2023-07-26 17:39:33 -03:00
Jonatan Kłosko 904ebd093f
Serially setup apps before deploying from directory (#2115)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-26 20:23:44 +02:00
Jonatan Kłosko 52110ff2f9
Add download for notebook files (#2112) 2023-07-25 20:07:13 +02:00
Jonatan Kłosko 1980ddcaa4
Stream live upload chunks directly to the target file system (#2111) 2023-07-25 16:59:40 +02:00
José Valim 01b2c31659
Make reprocess texts more neutral (#2105) 2023-07-24 21:52:47 +02:00
Jonatan Kłosko 1c98a2a360 Add second retry in storage test 2023-07-24 17:20:30 +02:00
Jonatan Kłosko 489b609154
Allow dropping external files into the notebook (#2097) 2023-07-22 11:13:06 +02:00
Jonatan Kłosko 146f89f5f5
Add drag and drop actions for notebook files (#2096)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-21 20:11:11 +02:00
Alexandre de Souza 07caffaecb
Add Offline Deployment section on the Hub Teams page (#2086) 2023-07-19 16:57:54 -03:00
Jonatan Kłosko 2e0c3978e0 Upload improvements 2023-07-18 23:17:26 +02:00
Jonatan Kłosko e95efd008f
Support adding file entry via upload (#2085) 2023-07-18 21:31:25 +02:00
Jonatan Kłosko 5ff5e0939d
Explicitly allow imported file entries pointing to file system (#2083) 2023-07-18 02:00:11 +02:00
Jonatan Kłosko 19a5124d1a
Implement streaming for downloads and file systems (#2072)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-14 22:16:52 +02:00
Hugo Baraúna c16ba7e762
Change copy to mention Livebook teams (#2069) 2023-07-13 19:01:18 +02:00
Jonatan Kłosko e1114d3e29
Fix race condition in storage test (#2068) 2023-07-13 14:15:22 +02:00
José Valim 92fa990620 Do not rely on implementation details for provider tests 2023-07-13 14:07:25 +02:00
ByeongUk Choi f5d0dd557d
Raise exception when trying to edit a secret that does not exist (#2067) 2023-07-13 13:53:33 +02:00
José Valim 53b8bf101a Avoid race conditions in tests 2023-07-13 13:42:27 +02:00
José Valim 104952be6a Group livebook_teams test suite 2023-07-13 13:29:50 +02:00
Jonatan Kłosko db11994b3e Improve input change test 2023-07-13 12:33:57 +02:00
Jonatan Kłosko de2fc2f93a
Add button for reevaluating apps on change and add retry for errors (#2066) 2023-07-13 12:26:10 +02:00
Cristine Guadelupe 61c19a30dd
Fix race condition in ZTA tests (#2064)
* ZTA tests - non-asynchronous

* Unique names
2023-07-12 18:01:03 +02:00
Cristine Guadelupe 8c3f0bf046
Internal ZTA tests (#2058)
* Tests for GoogleIAP

* Tests for Cloudflare

* Tests for Cloudflare

* Clean up

* Applying suggestions

* Clean up

* Update test/livebook/zta/google_iap_test.exs

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update test/livebook/zta/cloudflare_test.exs

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

---------

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-07-12 16:45:45 +02:00
Jonatan Kłosko ff30d0de2d
Improve debugging discoverability on app errors (#2061)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-11 22:29:38 +02:00
Jonatan Kłosko 0f792d51bd Make app new session button a link 2023-07-11 13:57:50 +02:00
Jonatan Kłosko 433cd43894
Secret improvements (#2051)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-10 21:29:21 +02:00
Jonatan Kłosko d3f7cfa665
Pass notebook files when deploying apps (#2045) 2023-07-07 20:31:54 +02:00
Alexandre de Souza f4365e44d2
Enforce Hub when deploying notebooks from LIVEBOOK_APPS_PATH (#2039) 2023-07-07 15:27:07 -03:00
Jonatan Kłosko c02eb984f8
Support reading file entry content from the runtime (#2044) 2023-07-07 16:20:19 +02:00
Jonatan Kłosko 62a74eb660 Fix livemd import test on Windows 2023-07-05 20:44:59 +02:00
Jonatan Kłosko 8f276d2f1e Use more strict assertion 2023-07-05 20:33:46 +02:00
Jonatan Kłosko be32b94475 Improve tests 2023-07-05 20:26:39 +02:00
Jonatan Kłosko ede80fc074
Implement file management (#2022)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-07-05 20:01:12 +02:00
Jonatan Kłosko cae17cc144
Add support for reading app info from the runtime (#2038) 2023-07-05 15:58:46 +02:00
Jonatan Kłosko fb9148acf7
Change new notebook button to link (#2036) 2023-07-04 14:46:19 +02:00
Jonatan Kłosko 477036f64d
Properly close app sessions (#2034) 2023-07-04 00:53:04 +02:00
Alexandre de Souza bcfb6d46ea
Add Team hub from environment variables (#2020) 2023-06-30 19:11:31 -03:00
Jonatan Kłosko 9541eb91c8
Fix smart cell editor initialization (#2017) 2023-06-28 22:39:24 +02:00
ByeongUk Choi ebab482b7e
Improve error message when deploying notebooks without settings (#2008) 2023-06-25 09:44:36 +02:00
Alexandre de Souza 05d691d407
Redirect to Hub page to update or delete a secret (#2005) 2023-06-23 17:54:13 -03:00
Alexandre de Souza 0a190729ec
Allow Livebook to update and delete Team hub secrets (#1995) 2023-06-21 15:37:28 -03:00
Jonatan Kłosko 1443c472ce
Don't emit diagnostic for module compilation error (#2000) 2023-06-21 11:11:01 +02:00
Cristine Guadelupe efb28fbdf0
Support Zero Trust authentication (#1938)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-06-21 00:25:25 +02:00
Jonatan Kłosko 9c831d3e7f
Update dependencies (#1994) 2023-06-20 17:33:38 +02:00
Wojtek Mach 74caae1da1
Merge pull request from GHSA-564w-97r7-c6p9 2023-06-20 13:13:38 +02:00
Jonatan Kłosko 20e13e01db
Bump to Elixir 1.15 (#1989) 2023-06-19 18:21:55 +02:00
Alexandre de Souza 7f9ba6989f
Allow secret creation from Livebook for Team Hubs (#1978) 2023-06-15 17:33:22 -03:00
Jonatan Kłosko d5f9aaf14e
Don't run doctests for generated functions (#1966) 2023-06-13 16:01:45 +02:00
awerment b4e4c64820
Show more details in type completion items (#1975) 2023-06-12 22:45:47 +02:00
awerment 7691324a4e
Add on-hover details for types (#1974) 2023-06-12 14:17:25 +02:00
Jonatan Kłosko a72629cfe3
Implement stamping for teams hub (#1973)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-06-09 20:59:04 +02:00
Jonatan Kłosko ad7c1549e8 Adjust hub integration tests 2023-06-09 18:15:50 +02:00
Jonatan Kłosko 80423adcdf Remove unreliable test 2023-06-09 15:51:01 +02:00
Jonatan Kłosko c383c7aaff
Ignore code server error logs when checking for modules (#1971) 2023-06-09 01:04:51 +02:00
Jonatan Kłosko 683f6c8f3b
Use different html name for output inputs (#1970) 2023-06-08 23:27:13 +02:00
Jonatan Kłosko 9059049d29
Add hub id to hubs pubsub messages (#1968) 2023-06-08 17:32:29 +02:00
Jannik Becher dbceb99f79
Fix on-hover docs for erlang modules with type names in signature (#1957)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-06-07 12:30:52 +02:00
Benedikt Reinartz 377b677a6e
Erlang error improvements (#1960) 2023-06-06 13:52:50 +02:00
Jonatan Kłosko 75614e7885
Show notifications for new app version and import warnings (#1955) 2023-06-02 21:32:44 +02:00
Benedikt Reinartz fb9193b8ab
Add support for Erlang code cells (#1892)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-06-02 14:49:06 +02:00
Alexandre de Souza 14dd6d925f
Implement TeamClient with Teams WebSocket communication (#1951) 2023-06-01 12:01:43 -03:00
Jonatan Kłosko 2399395bfd Improve tests 2023-06-01 13:49:09 +02:00
Jonatan Kłosko 8f71ad700b
Use registry to identify IO proxy in log handler (#1952) 2023-06-01 00:32:47 +02:00
Jonatan Kłosko 04efa5932f
Restore code markers and doctest indicators on refresh (#1949) 2023-05-31 15:52:08 +02:00
Jonatan Kłosko 0b73752803 Await file deletion without sleeping in tests 2023-05-30 23:17:33 +02:00
Jonatan Kłosko 4145121ba9 Fix more race conditions in tests 2023-05-30 22:42:59 +02:00
Jonatan Kłosko cf3d0ee16e Improve uncertain test 2023-05-30 22:20:49 +02:00
Jonatan Kłosko 3c56b87154
Doctest updates (#1944) 2023-05-30 22:03:20 +02:00
José Valim 2d265541f0 Skip multiple assertions tests until latest Elixir 2023-05-30 20:29:44 +02:00
José Valim 294bf69c8d Handle doctests reports when there are multiple assertions at once 2023-05-30 19:34:04 +02:00
José Valim 3e1067f4b5 Use range 41xx for teams ports 2023-05-30 12:21:06 +02:00
Jonatan Kłosko d2988f985d
Changes for Elixir 1.15 (#1918) 2023-05-30 12:06:59 +02:00
José Valim 265a1dec6e
Overlay doctest results (#1936) 2023-05-30 11:30:57 +02:00
Jonatan Kłosko 6b139c95ce Refactor tests 2023-05-29 17:13:28 +02:00
Alexandre de Souza 76015e3009
Improve Add Hub and Edit Hub pages (#1929) 2023-05-26 15:40:45 -03:00
Jonatan Kłosko 34ffb8f3d5
Automatically reevaluate app sessions and support interrupt (#1928) 2023-05-26 13:12:41 +02:00
José Valim 705f122b75 Pass device code to teams server 2023-05-25 17:17:57 +02:00
José Valim 30a87e8803 Fix tests 2023-05-25 17:01:51 +02:00
José Valim 74b4d7124b Use 5053 by default for Livebook 2023-05-24 10:54:40 +02:00
Alexandre de Souza 070c0599b5
Implement users to join an organization (#1912) 2023-05-23 17:18:10 -03:00
Jonatan Kłosko 8e4f3067da
Fix intellisense crash when hovering over bitstring modifiers (#1917) 2023-05-23 00:21:44 +02:00
Jonatan Kłosko d1ba07e0ea
Move app settings to a modal and add explanations (#1914)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-05-21 21:21:10 +02:00
Jonatan Kłosko 52df405aca
Add support for multi-instance apps (#1913) 2023-05-19 19:40:56 +02:00
Jonatan Kłosko 4760c5d7e5 Add signature test 2023-05-19 01:23:09 +02:00
Alexandre de Souza 3a63e30e89
Implement new Add Hub page (#1909) 2023-05-18 13:45:32 -03:00
Alexandre de Souza 932e43ac65
Implement Livebook Teams API (#1904) 2023-05-16 13:21:49 -03:00
Jonatan Kłosko 022f395bce
Add output type setting to apps (#1905) 2023-05-11 14:07:19 +02:00
Jonatan Kłosko f262b9c0c9
Rebuild confirmation modal system (#1903) 2023-05-10 18:23:08 +02:00
ByeongUk Choi 6dd19a8dc9
Add Form to "+ Block" (#1750)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-05-09 16:49:02 +02:00
ByeongUk Choi 6061901ee9
Add info about empty Kino outputs (#1899) 2023-05-08 11:26:21 +02:00
Jonatan Kłosko 9d6b247115
Hydrate updated smart cell source digest before reevaluation (#1886) 2023-04-27 18:27:43 +02:00
Jonatan Kłosko a6a56ff30c
Use shorter name for doctests module (#1874)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-04-27 16:34:20 +02:00
Jonatan Kłosko 4933807a58 Improve star button styling 2023-04-18 12:56:32 +02:00
José Valim a8c7af5519
Move star below menu (#1870) 2023-04-18 12:46:54 +02:00
Jonatan Kłosko f9efd2079c
Persist show-source app option (#1859) 2023-04-13 17:02:03 +02:00
Jonatan Kłosko 4d46b03cc8
Fix smart cell indicator when source changes on start (#1851) 2023-04-08 10:49:34 +02:00
José Valim 58a3d1fa20 Add missing test file 2023-03-30 17:09:46 +02:00
José Valim f52ff1e9ec
Purge cookies once they exceed 24kB, closes #1832 (#1833) 2023-03-28 17:11:44 +02:00
José Valim 6d91320441 mix format 2023-03-25 22:12:25 +01:00
José Valim 6ef803f95b Fix 404 rendering, closes #1826 2023-03-25 21:52:18 +01:00
José Valim 4f92ef8d02 Remove unused test file 2023-03-25 21:49:47 +01:00
Jonatan Kłosko 32987558be
Add support for clients-only outputs (#1810) 2023-03-21 20:32:22 +01:00
Jonatan Kłosko eba8bcac59
Simplify communication with evaluation group leader (#1816) 2023-03-21 20:31:55 +01:00
Jonatan Kłosko 753de9f65b Add data tests for :set_secret and :unset_secret 2023-03-21 18:15:54 +01:00
Jonatan Kłosko de310c0c36
Support gzip compression of JS view assets (#1813) 2023-03-21 17:45:27 +01:00
Jonatan Kłosko 7de7911d32 Fix tests on windows 2023-03-15 18:37:04 +01:00
Jonatan Kłosko fb9c8df7ea Fix tests on windows 2023-03-15 18:18:33 +01:00
Jonatan Kłosko 2ec24732bd
Automatically evaluate changed parent cells (#1786) 2023-03-14 23:48:07 +01:00
José Valim 764d775ed3 Initial revamp of notebooks
Deployment and introduction to Kino
still need to be rewritten.
2023-03-14 15:29:09 +01:00
Jonatan Kłosko 07fab99353
Don't garbage collect input values when converting smart cell to code (#1781) 2023-03-13 18:31:31 +01:00
Jonatan Kłosko 6e4c81edae
Fix attribute replacement in storage (#1778) 2023-03-13 16:27:25 +01:00
Jonatan Kłosko 42bc98a42d
Remove storage abstraction (#1777) 2023-03-13 14:44:33 +01:00
Jonatan Kłosko deacb1a4a4
Explicitly track which secrets come from the hub (#1769) 2023-03-11 12:51:06 +01:00
Jonatan Kłosko 7f71f2fe9f
Add stamp to notebook source and persist allowed hub secrets (#1768) 2023-03-10 22:36:51 +01:00
Alexandre de Souza 753f6fffaa
Update to Livebook Teams (#1765) 2023-03-09 17:04:29 -03:00
José Valim 5c106e81fa
Small changes (#1764) 2023-03-09 17:41:40 +01:00
Alexandre de Souza 3b41e87876
Add hub secrets list to Personal Hub page (#1763) 2023-03-09 12:04:47 -03:00
Jonatan Kłosko b5730b17aa Increase assertion timeout on windows 2023-03-08 14:05:41 +01:00
Alexandre de Souza 8754bc0d5a
Shows only the secrets from selected hub (#1747) 2023-03-07 15:24:07 -03:00
Jonatan Kłosko 5fd17ca958 Fix tests on Windows 2023-03-06 21:37:27 +01:00
Jonatan Kłosko b9237dd7f0
Add new notebook action to the file select (#1754) 2023-03-06 21:24:48 +01:00
Jonatan Kłosko 429a89b1aa
Handle assertion errors in doctests (#1752) 2023-03-06 19:36:54 +01:00
Jonatan Kłosko 503f8df76a
Add star/unstar to the session page menu (#1753) 2023-03-06 19:36:45 +01:00
ByeongUk Choi 4db39078bd
Add open page and track starred/recent notebooks (#1639)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2023-03-06 18:14:33 +01:00
Alexandre de Souza e73af96b86
Allow users to select the notebook's hub (#1744) 2023-03-02 18:10:38 -03:00
Jonatan Kłosko dd5e1af23b
Persist app settings and support deployment from directory (#1741)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-02-28 21:37:43 +01:00
Jonatan Kłosko a90e9193f4 Update app tests 2023-02-28 17:28:10 +01:00
Jonatan Kłosko 1676d5469e
Add page listing apps (#1733) 2023-02-28 15:08:49 +01:00
Alexandre de Souza 5d48ffd051
Remove entire app secrets implementation (#1734) 2023-02-28 10:55:52 -03:00
Alexandre de Souza bfcf82f06b
Implements Secrets features inside hub's Provider (#1712) 2023-02-27 13:45:14 -03:00
Jonatan Kłosko be033b9074
Refactor secrets form (#1721) 2023-02-23 10:40:32 +01:00
Jonatan Kłosko 5b5593a54b
Update to Phoenix 1.7 (#1720) 2023-02-22 19:34:54 +01:00
Kevin 0d058152cd
Fix erlang module docs in Intellisense (#1719) 2023-02-21 15:51:15 +01:00
Jonatan Kłosko 4334e8a58e
Add access control to apps (#1715)
Co-authored-by: José Valim <jose.valim@dashbit.co>
2023-02-18 01:16:42 +01:00
Jonatan Kłosko 40c5044a60
Add initial support for apps (#1709) 2023-02-16 13:47:46 +01:00
Alexandre de Souza 5c1d6f082f
Update Local hub to Personal hub and makes it editable (#1708) 2023-02-13 17:18:06 -03:00
Alexandre de Souza d0e83dc288
Implements delete hub button (#1705) 2023-02-13 01:52:25 -03:00
Alexandre de Souza e58213b000
More improvements for Secrets and Hubs (#1693) 2023-02-06 20:37:11 -03:00
Jonatan Kłosko c8dd1151f0
Fix assets fetching for client-specific outputs (#1692) 2023-02-06 15:50:48 +01:00
José Valim bf1dceacba Fix typo 2023-02-04 21:49:03 +01:00
Jonatan Kłosko 597d9fff3f
Cancel scheduled evaluation on error (#1688) 2023-02-03 21:04:13 +01:00
Jonatan Kłosko e622ef4f96
Fix dialyzer warnings (#1691) 2023-02-03 18:30:41 +01:00
Alexandre de Souza 5f6e7176fc
Allow hub secret toggling (#1675) 2023-02-03 13:15:46 -03:00
Zach Allaun 8f92661918
Support setting node and distribution using environment vars (#1672) 2023-02-01 21:22:49 +01:00
Jonatan Kłosko 25b4043dc7 Bump assertion timeout 2023-02-01 20:27:54 +01:00
Jonatan Kłosko 50c23d0e4c
Tag file input id (#1674) 2023-02-01 19:59:26 +01:00
Jonatan Kłosko 69df6e0ad4
Rework file input to consider multiple clients (#1673) 2023-02-01 18:49:12 +01:00
Alexandre de Souza 887d423007
Improve hubs provider API (#1670) 2023-02-01 13:33:41 -03:00
Alexandre de Souza dd2b7fa0e6
Minor improvements (#1669) 2023-01-31 20:37:04 -03:00
Alexandre de Souza d70764517f
Implements :origin field to Secret struct (#1667) 2023-01-31 19:17:05 -03:00
Jonatan Kłosko 86bf972c0d
Add support for sending frame updates to a specific client (#1662) 2023-01-28 00:34:31 +01:00
Wojtek Mach 0df2fe4fd1
Hub fixes (#1657) 2023-01-25 20:40:14 +01:00
Alexandre de Souza ae3a5661a8
Implement emojis instead of colors (#1636) 2023-01-12 17:37:12 -03:00
Jonatan Kłosko 57e1df74f3
Allow specifying S3 region explicitly (#1638) 2023-01-12 13:32:08 +01:00
Alexandre de Souza 3b2ea3c8ce
Update Connection life-cycle and implement ChangesetError message (#1633) 2023-01-10 17:12:35 -03:00
Jonatan Kłosko d6f758661b
Make automatic reevaluation more accessible (#1628) 2023-01-07 15:18:31 +01:00
Alexandre de Souza b82e360df9
Implement Enterprise secret creation from Session (#1612) 2023-01-06 16:14:44 -03:00
Jonatan Kłosko 089cee395f Fix test on windows 2023-01-05 16:48:27 +01:00
Jonatan Kłosko b60428c94d
Improve tests (#1627) 2023-01-05 16:12:45 +01:00
Jonatan Kłosko 35b8bb73df Trigger input garbage collection after cell deletion 2023-01-05 12:34:32 +01:00
Jonatan Kłosko f1deaead34 Update inputs garbage collection test 2023-01-04 21:54:39 +01:00
Jonatan Kłosko 17ab1ae472
Add support for file input (#1622) 2023-01-04 21:44:04 +01:00
Alexandre de Souza d4bda6042c
Load LB_ env vars as app secrets (#1615) 2023-01-04 11:10:33 -03:00
Jonatan Kłosko 2e230c9deb
Add an option to run setup with no cache (#1616) 2023-01-03 12:24:22 +01:00
Alexandre de Souza 9ff84f204f
Implement event handling from WebSocket (#1608) 2022-12-26 21:16:47 -03:00
Alexandre de Souza f9fb5194fa
Implement EnterpriseClient and improvements to WebSocket Connection (#1601) 2022-12-23 12:56:00 -03:00
Jonatan Kłosko 82d748a1ff
Don't track :rand and :random keys in process dictionary (#1599) 2022-12-22 11:38:43 +01:00
Alexandre de Souza 3e11023925
Migrate WebSocket GenServer (Server) to Connection (#1585) 2022-12-21 11:28:27 -03:00
Jonatan Kłosko ae7fbca0ba
Cleanup modules when evaluator terminates (#1582) 2022-12-13 20:19:29 +01:00
José Valim 190a4cffd3
Do not crash when giving token to password and vice-versa (#1574) 2022-12-12 11:52:45 +01:00
Jonatan Kłosko 52d6835388
Support config updates when adding smart cell deps to Mix.install/2 (#1560) 2022-12-03 16:23:43 +01:00
Alexandre de Souza 60bc7194ed
Improve Enterprise integration with real data (#1548) 2022-11-28 20:47:25 -03:00
José Valim b335e1c9cb
More doctests (#1544) 2022-11-23 15:06:08 +01:00
Jonatan Kłosko c0fa414593 Fix default chunks info 2022-11-17 20:46:17 +01:00
Jonatan Kłosko 16d473685a
Fix input value lookup for nested inputs (#1537) 2022-11-17 15:15:54 +01:00
Jonatan Kłosko ce93015a0d
Add support for multi-chunk smart cell source (#1536) 2022-11-17 12:36:06 +01:00
Jonatan Kłosko 42d2386a2d
Fix reading inputs rendered in the same evaluation (#1531) 2022-11-15 15:13:05 +01:00
Jonatan Kłosko 9c9c54de65
Delete defined modules if evaluation fails (#1528) 2022-11-12 19:39:59 +01:00
Jonatan Kłosko 81fccfd436
Automatically run doctests when a module is defined (#1525) 2022-11-11 21:49:51 +01:00
Alexandre de Souza e30213bc83
Update WebSocket error responses (#1524) 2022-11-11 12:00:47 -03:00
Jonatan Kłosko 31c119a633
Persist modules bytecode to disk (#1521) 2022-11-10 16:37:57 +01:00
Jonatan Kłosko 936146e52c
Improve reproducability of module definitions (#1518) 2022-11-09 18:22:27 +01:00
Jonatan Kłosko 484e47142a
Track evaluation dependencies and cache results (#1517) 2022-11-09 14:40:44 +01:00
Alexandre de Souza 7b1addb7eb
Use WebSocket and Protobuf instead of GraphQL with Livebook Enterprise (#1504) 2022-11-03 13:49:07 -03:00
Alexandre de Souza 19773a0e36
Add Enterprise Hub (#1449) 2022-10-11 11:27:27 -03:00
José Valim 5c053a9573
Always sync livebook secrets with session (#1477) 2022-10-11 16:12:14 +02:00
José Valim 950982304d
Final touchups to secrets (#1464)
* Use font-mono on secret names
* Unify error handling with changesets
* Unify put_env/delete_env as set_env/unset_env
* Review text and descriptions
2022-10-06 21:44:04 +02:00
José Valim cf7ad7f17a
Provide shared facade in Storage module (#1463) 2022-10-06 19:53:37 +02:00
Cristine Guadelupe 4c83317453
Notebook secrets (#1457)
* Store secrets in the notebook

* Automatically grants access to secrets

* Put notebook secrets on session

* Shows secrets as a list

* Grant access message box

* Grant access confirmation on select

* Applying suggestions - grant access confirmation

* Handles unavailable secrets

* Toggle secrets

* Session only secrets

* Sync secrets

* Fix delete runtime secret

* Clean up

* Component helpers

* Does not store secrets in notebooks

* Store Livebook secrets

* Fix sync secrets

* Tests for secrets

* Doesn't refetch livebook_secrets

* Removes unused function

* More test for secrets

* Livebook secrets as maps

* Fix secret tests

* Applying suggestions

* All secrets as a map

* Shows grant access for missing secret errors

* Unifies grant access

* Fix set_runtime_secrets

* Applying suggestions

* Updates sync secrets tests

* Fix active secret

* Unifies prefill secret name
2022-10-06 13:41:26 -03:00
José Valim e9149dc343
Require fewer clicks to save a notebook (#1458) 2022-10-04 10:56:11 +02:00
José Valim 6da00daffd
Update to LV 0.18 (#1426) 2022-10-04 08:46:55 +02:00
Jonatan Kłosko 964f4b04d1
Keep stacktrace if all of it is pruned (#1455) 2022-10-03 13:49:19 +02:00
Jonatan Kłosko 12f77daa68
Fix Markdown formatting of narrow table columns (#1430) 2022-09-22 21:10:51 +02:00
Jonatan Kłosko b20ac022a8
Attempt to load a flat remote URL as a relative path fallback (#1428) 2022-09-22 15:11:29 +02:00
Paulo Valim 285bc923b7
Rename the Explore section to Learn (#1424)
Co-authored-by: José Valim <jose.valim@gmail.com>
2022-09-21 12:06:22 +02:00
Jonatan Kłosko b5e8cd9b00 Fix PATH test on Windows 2022-09-19 21:05:08 +02:00
Cristine Guadelupe 52f7d7419b
Changes secrets wording form label to name (#1419) 2022-09-18 18:40:09 -03:00
Alexandre de Souza 2766cf3256
Final adjustments to env vars (#1418) 2022-09-16 20:37:01 -03:00
Alexandre de Souza 12f1cc0c3f
Load persisted environment variables from settings into session's runtime (#1409) 2022-09-16 14:22:27 -03:00
Alexandre de Souza e539661189
Unify styling environment variables forms (#1403) 2022-09-14 13:24:32 -03:00
Jonatan Kłosko 9434cf57b4
Normalize newlines in initial smart cell editor content (#1400) 2022-09-13 11:15:25 +02:00
Alexandre de Souza 0b9f53a122
Implement global Environment Variables from Settings page (#1387) 2022-09-12 11:34:39 -03:00
José Valim b6e28c5b43 Fix Fly Hub suite 2022-09-07 11:37:45 +02:00
José Valim be862173a3
Unify several forms in the application (#1392)
* Define .input_wrapper and .hex_color_input components

* Define Tailwind variants from Phoenix v1.6 to help styling

* Make sure single-action modals redirect on save

* Add pill to session secrets in the "Secrets" session sidebar

* Fix alignments of "Users" in the session sidebar
2022-09-05 23:59:13 +02:00
Jonatan Kłosko eeadb0811b
Wait for processes to be garbage collected before evaluation (#1385) 2022-09-02 23:45:58 +02:00
Cristine Guadelupe 97efef52cc
Fix secrets form (#1379)
* Fix secrets form

* Update lib/livebook_web/live/session_live/secrets_component.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-09-02 15:04:41 -03:00
Alexandre de Souza ac71d08771
Add and Fetch secrets from Fly applications (#1361) 2022-09-02 12:54:28 -03:00
Jonatan Kłosko ab9ad0369c
Show a message when a smart cell crashes and allow restarts (#1381) 2022-09-02 15:50:13 +02:00
Cristine Guadelupe 443ff8bf9f
Unavailable secret error (#1371)
* Show an Add Secret button for System.EnvError

* Extracts render_formatted

* Rewrite the env error message

* Renames the env error type

* Applying suggestions

* Applying suggestions (live patch)

* Test for unavailable secrets

* Bump to rc.1

* Applying suggestions (error message)

* New error message

* Prefill the secret value

* Applying suggestions (error message output)

* Update test/livebook_web/live/session_live_test.exs

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Update lib/livebook/runtime.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-31 20:45:55 -03:00
Alexandre de Souza 2cbd81eaf5
Migrate HubLive to Phoenix format (#1373) 2022-08-30 11:32:48 -03:00
José Valim 608979471d
Remove Mix standalone runtime, closes #1345 (#1370)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 14:20:24 +02:00
ByeongUk Choi 648edf23e7
Add completion for bitstring modifiers (#1291)
Co-authored-by: José Valim <jose.valim@gmail.com>
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 13:14:13 +02:00
José Valim 895373e08b
Log the reason a runtime node goes down (#1368)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-29 11:12:25 +02:00
José Valim ed9c0e5a1e Revamp explore section 2022-08-28 19:08:43 +02:00
Jonatan Kłosko 1e324b4f75
Add support for getting evaluation file during evaluation (#1362) 2022-08-28 09:28:19 +02:00
Cristine Guadelupe afcb2ff834
Livebook secrets (#1348)
* Add secrets to the sidebar

* Get and put secrets (naive)

* Secrets list - shortcut

* Validates secret name

* Livebook secrets as environment variables

* Restores secrets when necessary

* Minor adjustments

* Implements add_system_envs for NoopRuntime

* Moves secrets to session data

* Granular operations for secrets

* Minor adjustments

* Applying suggestions

* Test for add secrets

* Type for secret

* Applying suggestions

* Prevents duplicates

* Refactor to live_render

* Update lib/livebook/session/data.ex

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>

* Sort secrets

* Applying suggestions

Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
2022-08-25 17:24:24 -03:00
Alexandre de Souza 3a085a5d30
Minor Hub improvements (#1357) 2022-08-24 12:35:28 -03:00
Jonatan Kłosko 2c28d1a0ca
List an exact match first in package search (#1355) 2022-08-24 10:59:26 +02:00
Alexandre de Souza 77c8804d62
User and Hub forms with Changeset validations and input errors (#1347) 2022-08-22 18:12:54 -03:00
Alexandre de Souza 5c050e640f
Add Livebook Hub with Fly.IO integration (#1319) 2022-08-18 10:34:27 -03:00
José Valim b9b2f7514e
Support more recent Elixir versions too (#1344) 2022-08-12 19:04:15 +02:00
Jonatan Kłosko 3d5c7c3fad
Require Elixir 1.14 (#1342) 2022-08-11 20:13:57 +02:00
Jonatan Kłosko d0338be513 Improve assertion of the session creation timestamp 2022-08-11 13:42:33 +02:00
Jonatan Kłosko d24cb8a838
Queue cells on ctrl+shift+enter even when a cells is evaluating (#1334) 2022-08-05 22:19:50 +02:00
Jonatan Kłosko 218bce5a63
Use binary ids for session clients (#1333) 2022-08-05 14:43:41 +02:00