44 Commits

Author SHA1 Message Date
wendrul 6634c82e20 feat: backend arg schema validation (#5455)
* 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

* 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

* Only cache if not preview
2025-03-19 19:41:10 +01:00
HugoCasa 90ccc3aae5 feat: add support for python list[x] (#5486) 2025-03-19 10:49:34 +01:00
HugoCasa 9736355d5f feat: add support for | None and Optional in python (#5361)
* feat: add support for | None and Optional in python

* update python parser package
2025-02-24 14:12:29 +01:00
HugoCasa 28558e674f feat: parse script for preprocessor/no_main_func on deploy (#5292)
* feat: parse script for preprocessor/no_main_func on deploy

* fix substitute for linux
2025-02-14 15:42:18 +01:00
HugoCasa b49ba59da7 fix: infer python list inner type from default if unknown inner (#4771) 2024-11-21 14:44:19 +01:00
HugoCasa ae8f29a4cb feat: http routing (#4339)
* feat: http routing

* all

* feat: improve UI

* final stuff

* fix: sqlx

* fix: nit

* fix: nits

* fix: error handler display

* fix: routes panel perms

* all

* fix: improve ability to paste from macos in vscode extension

* fix lock-write for deno

* all

* cleaning

* fix

* cli preprocessor

* nits

* nits

---------

Co-authored-by: Ruben Fiszel <ruben@rubenfiszel.com>
2024-09-20 15:38:38 +02:00
HugoCasa 2b9b4eedc3 feat: multi sql statement with pg fix (#4134)
* Revert "Revert "feat: multi statement sql (#4104)" (#4133)"

This reverts commit c578f05e2d.

* fix: sort pg args
2024-07-26 09:23:39 +02:00
Ruben Fiszel c578f05e2d Revert "feat: multi statement sql (#4104)" (#4133)
This reverts commit 5bc0e96171.
2024-07-26 01:24:03 +02:00
HugoCasa 5bc0e96171 feat: multi statement sql (#4104)
* feat: multi statement pg

* fix: add other flavors

* feat: make pg params start at 1 and sequential

* fix: improve sql statement parsing

* add tests

* fix: allow no semi in last statement

* fix: merge conflict

* fix: minor improvement

* fix: parser version
2024-07-25 20:46:04 +02:00
Ruben Fiszel 7b724f1394 feat: dynamic select (#4110) 2024-07-22 13:53:32 +02:00
HugoCasa a79e09d65f feat: improve parsers when no main func (#3805)
* feat: improve parsers when no main func

* chore: update parser version
2024-05-23 20:36:16 +02:00
Ruben Fiszel ff3aa8ab06 feat: workflow as code v0 2024-03-04 20:19:34 +01:00
Ruben Fiszel 3420faae45 fix: parse wmill.S3Object as S3Object 2024-02-24 19:36:19 +01:00
Ruben Fiszel 45a794b1b3 feat: add support for multiselect in python 2024-01-10 13:12:20 +01:00
Guillaume Bouvignies 7441e407d4 fix: concurrency limit EE feature warning (#2505)
* fix: concurrency limit EE feature warning

* fix deprecated usage

* skip serializing empty optional
2023-10-24 17:59:16 +02:00
Ruben Fiszel affaf57250 update rust-python to 3.0 (#2499) 2023-10-24 09:26:36 +02:00
Ruben Fiszel 74254af71a migrate all jsonschema parser to wasms 2023-06-06 10:52:04 +02:00
Danny Summerlin 6a45b16564 Open Added an import exception for pysmb #1615
adding pysmb to exceptions list
2023-05-21 17:09:36 +02:00
Ruben Fiszel 811501d277 fix: rework multiselect as app component (#1599) 2023-05-18 16:28:58 +02:00
Ruben Fiszel a6c73e4d0e assign static crate for rustpython-parser 2023-05-06 12:02:52 +02:00
Ruben Fiszel 36e338c461 feat(backend): extend cached resolution for go 2023-04-09 10:58:45 +02:00
Ruben Fiszel cd8ab2b52c use requests for . imports 2023-03-30 01:07:24 +02:00
Ruben Fiszel 1ae84357e3 fix(cli): plain secrets might be undefined 2023-03-28 23:32:41 +02:00
Ruben Fiszel 0acbcb9678 fix(cli): add --plain-secrets 2023-03-28 22:46:43 +02:00
Ruben Fiszel 8aaab71161 fix python imports 2023-03-28 21:51:12 +02:00
Ruben Fiszel 904d74187e feat(backend): allow relative imports for python 2023-03-28 20:27:40 +02:00
Ruben Fiszel fd08c40893 update rustpython parser 2023-02-22 23:43:06 +01:00
Ruben Fiszel f193a8c889 fix(backend): compile issue 2023-01-31 19:50:22 +01:00
Ruben Fiszel 90324fb557 feat(python): add support for extra args in python 2023-01-31 09:52:29 +01:00
Ruben Fiszel 9030cb1862 allow whitespace in requirements override 2023-01-30 05:06:13 +01:00
Ruben Fiszel efaf1407b0 feat: add PIP_LOCAL_DEPENDENCIES 2023-01-28 03:09:47 +01:00
Ruben Fiszel 004593539f feat: add sql as a valid type in Python 2023-01-23 15:58:33 +01:00
Ruben Fiszel 421d87dfde add support for python import shopifyAPI 2023-01-20 19:52:18 +01:00
Ruben Fiszel 7940b04723 add selenium-wire exception 2023-01-15 22:48:49 +01:00
Ruben Fiszel 15aef1dd7c add psycopg-pool to psycopg default install 2023-01-13 12:16:48 +01:00
Ruben Fiszel c32e113ea7 add psycopg3 to the list of support imports 2023-01-13 07:54:05 +01:00
Ruben Fiszel 3ad5bfc192 feat: add relative imports for python scripts (#1075)
* all

* all
2023-01-09 13:49:30 +01:00
Ruben Fiszel b93a54c279 feat(python): add support for parsing resource type in python 2022-11-28 21:47:25 +01:00
Ruben Fiszel 27b638b611 feat(python): add Resource[resource_type] as a parsed parameter 2022-11-16 14:08:55 +01:00
Ruben Fiszel cd8d0e5ea6 feat: deprecate previous_result in favor of results per id 2022-11-10 01:58:52 +01:00
Ruben Fiszel af1d1191ee small UX and client fixes 2022-11-08 23:38:17 +01:00
Ruben Fiszel c097a3d039 fix(backend): capture up all lockfile issues 2022-11-02 14:04:44 +01:00
Ruben Fiszel 6ceac4280e feat(python): type is automatically inferred from default parameters 2022-10-29 12:48:50 +02:00
Kai Jellinghaus 6263e90735 restructure the entire backend layout using workspaces (#815) 2022-10-29 11:58:06 +02:00