Commit Graph

5785 Commits

Author SHA1 Message Date
wendrul 71c54024d3 feat: unsafe parameters for sql queries (table names, column names) (#5488)
* Make schema validation struct

Schema Validation rules that are constructed from the schema or from the
MainArgSig(TODO).

* Make other validator builder

* Fail dependency job like with lockfile failing for schema validator

* Add last types + tests

* Remove unused dependency

* fix typos

* Migration ID was colliding with another, changed it manually

* Add Oneof + other fixes

* fix: cache for querying scripts correclty handles ScriptMetadata

* Add cache for schema validation from main arg sig

* Prepare sqlx

* Remove default features

* Feature flags

* WIP: unsafe sql params for sql langauges

* Fix down migration table name

* cleanup: put validation logic inside a function

* Refactor to cache the should_validate boolean

Changed the schemavalidators cache to take in an
Option<SchemaValidator>, effectively storing the `should_validate_schema` information.

Also pass the schema when avaialble to construct the schema validator

* Add other job kinds to u8 cache key just in case

* Change sql languages to all get arguments as Values instead of RawValue

* Only cache if not preview

* Add last sql languages and some CI fixes

* Rename after typo on `sanitized`

* Finish rename

* Remove unused import

* Fix wrong test

* Add newly published regex parser version

* Remove default features from cargo.toml

* Change to a cleaner syntax for the interpolated args

* Update republished parser
2025-03-20 20:02:25 +01:00
pyranota f55cb420dd feat: add nu-lang support (#5217)
* feat: add nu (nushell) support

* add worker tests

* deactivate tables and non-any types below top-level

full support will come in V1
for V0 it's better to keep things minimal and simple

* add syntax highlighting

used python's grammar, since nushell isn't supported by monaco nor svelte-highlights

for V1 nu will get it`s own grammar

* add logo

* partially implement plugin support

* change logo + ability to deploy + nsjail draft

* static variables + get_resource + get_variable

* lsp/dev.nu + initial nu lsp (not working yet)

* make it work with nsjail

* nullguard

* Much more flexible signature parsing and better error-messages

* add init script

* rename nulsp to nu

* install nu to dockerfile

* fix merge

* implement Default for MainArgSignature

* stage NU_CACHE_DIR

* improve dockerfiles

* dev.nu for parser-wasm + flake.nix

* update code for windows

* add nushell to flake

* upload Cargo.lock

* make build.sh work on nixos

* build wasm cli parsers

* add docs to README_DEV.md

* add helper script docker/dev.nu

* improve docker/dev.nu

* fix windows

* commit frontend/package(lock).json

* update cargo.lock

* correctly update cargo.lock

* remove lsp

* update flake.nix to include svelte server and nushell

* Revert base.sql to main

* remove PLUGIN_USE_RE

* make CARGO_PATH private

* add nu to cli

* Change flags to build wasm-nu-parser

* remove flake.nix from parser-wasm

* update wasm-build target

* remove unused import

* add cli support for nu

* update github workflows

* wasm-build 0.17 -> 0.19

* update build script

* update cargo.lock

* Fix typographical error

* update Cargo.lock

* update ENV_SETTINGS

* use published nu parser

* update package.lock

* rewrite parser in tree-sitter

* implement parser from scratch

* polishing

* change init script to match new parser

* fix imports

* fix cli build

* fix cli build

* merge

* update wasm

* use MiniPulledJob

* update cli

* change cli wasm schema

* change cli

* update deno.json

* make wasm modules load lazily

* regenerate parsers

* remove leftover

* update cargo.lock

* clean up dnt.ts

* add docs to cli/test.nu

* add schema validation option

* add Nu to try_validate_schema

* reference frontend to new parser version
2025-03-20 16:45:21 +01:00
Ruben Fiszel e5978c8003 chore(main): release 1.478.1 (#5492)
* chore(main): release 1.478.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-20 12:01:55 +01:00
Ruben Fiszel 4f998d5543 chore(main): release 1.478.0 (#5478)
* chore(main): release 1.478.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-20 10:11:14 +01:00
Guilhem 27dfbdc7d1 Fix: set proper slot for MobileFitlers popover (#5491) 2025-03-19 19:40:53 +01:00
Ruben Fiszel 136e3f8085 app frontend fix for 0 width containers 2025-03-19 18:58:54 +01:00
Ruben Fiszel b1f3d3f39a small init fix 2025-03-19 18:14:21 +01:00
Ruben Fiszel 94258cf5ba improve eager mode 2025-03-19 17:47:20 +01:00
Ruben Fiszel e00cb430b0 feat: eager app mode 2025-03-19 17:02:32 +01:00
Ruben Fiszel 08d7567d42 improve default behavior of number and currency input 2025-03-19 15:13:46 +01:00
Ruben Fiszel e50d2af268 improve text default input behavior in lists 2025-03-19 14:23:19 +01:00
Ruben Fiszel 5c3deeda29 handle better appschemaform initialization 2025-03-19 13:03:39 +01:00
Ruben Fiszel 278102282e improve apptextinput initialization 2025-03-19 11:59:31 +01:00
Ruben Fiszel 1d649f97cd improve oneOf default behavior 2025-03-19 11:28:15 +01:00
Ruben Fiszel e6548d3b5d fix: label not part of default variant arg 2025-03-19 11:04:18 +01:00
HugoCasa bf938fdfae feat: add support for python list[x] (#5486) 2025-03-19 10:49:34 +01:00
Ruben Fiszel aaa4cde349 feat: filter by worker + backend perf opt (#5489)
* all

* all

* all

* refactor

* sqlx

* ref

* impr

* fix

* fix

* fix

* ee private
2025-03-19 09:55:53 +01:00
Ruben Fiszel 5134deefad improve concurrency limits II (#5485) 2025-03-17 17:24:50 +01:00
Diego Imbert 97011de29e Re-added padding affecting subgrid dotted borders (#5479)
* remove !p-0 in preset components

* removed extra padding on accordion tabs subgrid
2025-03-14 15:18:25 +01:00
HugoCasa 1e1bc56f33 feat: keep captures across drafts and deploys (#5482) 2025-03-14 15:17:48 +01:00
Ruben Fiszel 20345f5520 update es6.d.ts with es2015 2025-03-14 12:44:52 +01:00
dieriba df4b6db0d4 feat: add raw string option and wrap option for http trigger (#5467)
* add new column

* handled worskpaced route

* update .sqlx

* update: rename migration file, rewrite query for checking existing route path key, add copy button url for each route trigger

* update .sqlx

* update sql query

* update .sqlx

* fix: prevent precedence on query

* nits

* update .sqlx

* update query

* Update http_triggers.rs

* nits

* handling two new option in http route 'wrap_body' and 'raw_string'

* update sqlx and add wrap_body and raw_string to http route

* fix: undefined route path

* nits: remove unnecessay ref as type implement copy

* nits

* fix: undefined protection

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
2025-03-13 20:39:54 +00:00
Ruben Fiszel 5694a3adf5 editable schema nit 2025-03-13 15:18:57 +01:00
Ruben Fiszel 7b2e329df1 improve undefined schema handling for search 2025-03-13 11:28:48 +01:00
Ruben Fiszel b6ada6dc1c fix: fix empty schema on flow page error 2025-03-13 11:24:22 +01:00
Ruben Fiszel 5c7c46c84b chore(main): release 1.477.1 (#5475)
* chore(main): release 1.477.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-13 10:44:33 +01:00
Ruben Fiszel c5d67dc71d chore(main): release 1.477.0 (#5471)
* chore(main): release 1.477.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-13 08:00:31 +01:00
Ruben Fiszel e11f0a5fa6 fix: pg_listeners have no timeout 2025-03-12 23:16:32 +01:00
Diego Imbert fb58957303 fix: tutorial's step 6 not working (button.click is not a function) (#5474) 2025-03-12 22:23:45 +01:00
Ruben Fiszel 66b2a2578f optimize refresh for loading history 2025-03-12 19:57:13 +01:00
Guilhem 1cfa3ea112 center help notif (#5473) 2025-03-12 19:51:31 +01:00
Ruben Fiszel d2ce477fef nits 2025-03-12 18:26:14 +01:00
Ruben Fiszel a48cf1346f improve input history job loader UX 2025-03-12 18:18:13 +01:00
Ruben Fiszel 6915b334b2 improve args bind 2025-03-12 17:38:35 +01:00
Ruben Fiszel 906bfef1bd fix runschart handling of empty started at 2025-03-12 17:18:45 +01:00
Ruben Fiszel 86b7e81d5e nit search 2025-03-12 17:01:16 +01:00
Ruben Fiszel 7cd227bd67 fix capture dropdown height 2025-03-12 16:29:15 +01:00
Ruben Fiszel 5a2c44f347 feat: add search by args on input history directly 2025-03-12 16:05:02 +01:00
Ruben Fiszel a434ecc05a fix: improve oneOf arg input reactivity to value changes 2025-03-12 12:34:30 +01:00
Ruben Fiszel c448a69aea fix: add setValue support for tables 2025-03-12 09:42:37 +01:00
Ruben Fiszel 592f1aff03 update gitSync to 11641 2025-03-12 09:25:38 +01:00
Ruben Fiszel 65d0e6cd0b update gitSync 2025-03-12 07:31:26 +01:00
Ruben Fiszel 2c1d05858b chore(main): release 1.476.0 (#5469)
* chore(main): release 1.476.0

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-11 22:04:18 +01:00
Henri Courdent 9176bced4b MQTT triggers changelog and fix 3 items shown (#5468) 2025-03-11 19:28:39 +01:00
dieriba 04ea7b851b feat: option to prefix http route with workspace id (#5461)
* add new column

* handled worskpaced route

* update .sqlx

* update: rename migration file, rewrite query for checking existing route path key, add copy button url for each route trigger

* update .sqlx

* update sql query

* update .sqlx

* fix: prevent precedence on query

* nits

* update .sqlx

* update query

* Update http_triggers.rs

* nits

---------

Co-authored-by: HugoCasa <hugo@casademont.ch>
2025-03-11 15:24:22 +00:00
Ruben Fiszel 879c090653 chore(main): release 1.475.1 (#5465)
* chore(main): release 1.475.1

* Apply automatic changes

---------

Co-authored-by: rubenfiszel <275584+rubenfiszel@users.noreply.github.com>
2025-03-11 11:03:06 +01:00
Ruben Fiszel d6a5882136 nit improvement file uploader 2025-03-10 22:51:25 +01:00
Ruben Fiszel 7ed11da08d nit 2025-03-10 19:05:35 +01:00
Ruben Fiszel c52d6aff3e fix: improve arginput sql and object viewer args change 2025-03-10 18:56:23 +01:00
Ruben Fiszel 0a3013493d nit perf improvements 2025-03-10 17:17:52 +01:00