Sam Rose
a00a64bb6e
Properly clean up row actions on table deletion.
2024-10-10 14:56:38 +01:00
mike12345567
3a2b22d446
Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance
2024-10-10 11:47:19 +01:00
Sam Rose
4cde2f26ad
wip, tests broken
2024-10-09 16:55:32 +02:00
Adria Navarro
f05bf25e21
Add failing test
2024-10-09 13:31:11 +02:00
Adria Navarro
bb6bd1711a
Add extra tests
2024-10-04 14:03:03 +02:00
mike12345567
bfbc576ed1
Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance
2024-10-03 17:22:09 +01:00
Adria Navarro
e08c3b8574
Run view tests
2024-10-02 12:26:03 +02:00
mike12345567
956df101e8
PR comments and type improvements.
2024-09-24 11:16:42 +01:00
mike12345567
2fd73d044f
Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance
2024-09-16 15:31:00 +01:00
melohagan
49a4e252c6
Allow an account holder to login to account-portal if the tenant has been deleted. ( #14547 )
...
* Add email to session for populate user
* Add email param
* use param object
* Type fix for tests
* Fix test
* Temporarily remove account-portal tests
2024-09-12 08:38:11 +00:00
Peter Clement
2135dbca67
update automation test builder to support ...building
2024-09-04 16:37:33 +01:00
Peter Clement
d80123bbcb
use utilities api
2024-09-04 09:31:18 +01:00
Peter Clement
839292b84d
add validators and tests for automation branching
2024-09-03 16:16:52 +01:00
Adria Navarro
eb58c696dd
Clean
2024-08-30 10:30:27 +02:00
Adria Navarro
b54b2a7121
Lint
2024-08-30 10:30:27 +02:00
Adria Navarro
95d863b4a8
Clean
2024-08-30 10:30:27 +02:00
Adria Navarro
e93934111f
Allow running api prod tests
2024-08-30 10:30:27 +02:00
Adria Navarro
568f5719c6
Test utils
2024-08-30 10:30:27 +02:00
Adria Navarro
b461025639
Check views
2024-08-30 10:30:27 +02:00
Adria Navarro
d1c6edc437
Return types
2024-08-30 10:30:27 +02:00
Adria Navarro
ec2e5a0263
Add test utils
2024-08-30 10:30:27 +02:00
Sam Rose
2a2dbfb745
Respond to last PR comment.
2024-08-29 17:59:17 +01:00
Sam Rose
be0a14489b
Debugging view test failures.
2024-08-27 15:22:53 +01:00
Peter Clement
f15847a40f
More automation typing in preparation for branching ( #14378 )
...
* More typing for automations
* undo test updates
* remove casting of loop step and add more types
* remove unused type
* pro
* Update types and fix ts issues
* add branching types
* remove any cast
---------
Co-authored-by: Adria Navarro <adria@budibase.com>
2024-08-14 21:39:39 +01:00
mike12345567
3d65c13ff5
Merge branch 'master' of github.com:Budibase/budibase into feature/role-multi-inheritance
2024-08-12 13:44:22 +01:00
Sam Rose
bcefa398a4
Merge master.
2024-08-12 09:43:49 +01:00
mike12345567
904f0dc9fd
Adding jest-extended to allow use of oneOf expect, fixing for updated fetching.
2024-08-09 13:36:22 +01:00
Sam Rose
d716d4b4d0
Fix test failures and lint.
2024-08-09 11:45:55 +01:00
Sam Rose
3d590e879e
Rely on withEnv and setEnv functions in respective environment.ts files.
2024-08-09 10:30:27 +01:00
mike12345567
0c8228edad
Initial work - some re-typing and updating the role tests to typescript - using role test API to make this a bit easier to adjust going forward.
2024-08-05 15:45:49 +01:00
Adria Navarro
616b1bf012
Add and fix table tests
2024-08-02 13:02:18 +02:00
Adria Navarro
0dce3aa02c
Add structures.fullSchemaWithoutLinks
2024-08-02 13:02:18 +02:00
Adria Navarro
f3c18b87b1
Expose csvToJson test utils
2024-08-02 13:02:18 +02:00
Adria Navarro
8afb1e6c42
Allow format on exportRows test utils
2024-08-02 13:02:18 +02:00
Sam Rose
b2f70f5051
Merge branch 'master' into node-fetch-mockectomy
2024-08-01 15:49:56 +01:00
Sam Rose
e530400f46
Fix n8n.spec.ts's reliance on the node-fetch mock.
2024-08-01 11:57:04 +01:00
Sam Rose
9a2e8031bc
Fix plugin.spec.ts's reliance on the node-fetch mock.
2024-08-01 11:43:37 +01:00
Adria Navarro
0d6b4cee95
Merge branch 'master' into fix/reimporting_rows
2024-08-01 10:54:26 +02:00
Adria Navarro
e6c4c8ef77
Merge branch 'master' into chore/unify-row-format-values
2024-08-01 10:29:36 +02:00
Peter Clement
8539f6d853
Add helper function / builder for creating Automations for tests and improved types ( #14220 )
...
* basic class for generating and running an automation
* change filename
* add to existing tests
* remove dupe tests
* add types to automation steps
* add types to triggers
* update tests and typing
* fix types
* typo
* move all step schema types do types folder
* updated types
* typing pr comments
* remove unused param
* some more typing and tests
* more typing
* improve type map
* fix broken type
* this will surely fix my issue
2024-07-31 22:18:00 +01:00
Adria Navarro
5896e94e56
Add basic validateExistingTableImport test
2024-07-31 15:03:31 +02:00
Adria Navarro
4f65306c4f
Add basic validateNewTableImport test
2024-07-31 15:03:31 +02:00
Adria Navarro
58a47b801a
Remove magic strings
2024-07-31 12:23:09 +02:00
Adria Navarro
8678db18e2
Add tests
2024-07-23 10:46:11 +02:00
Adria Navarro
eaa38c5c2d
Return automationid from row action api
2024-07-22 14:23:17 +02:00
Peter Clement
7fd55fe27d
Automation trigger filtering ( #14123 )
...
* backend for triggering automation based on filters
* frontend for handling triggering automations on filter / old row
* lint and bug fix
* fix issue with test header
* make test data optional
* improve safety on trigger gate
* add support for running trigger with filter if no change happened but filter matches
* update var naming to actually make sense
* tests
* fix lint
* improve gating for shouldTrigger check
* remove unecessary cast
* unecessary tableId check
* frontend text updates
* resolving comments
* pro
* Update packages/types/src/documents/app/automation.ts
Co-authored-by: Sam Rose <hello@samwho.dev>
* link out to docs for trigger filtering
* fix pro
* more pr comments
* use getAppId
---------
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-07-18 10:38:15 +01:00
Adria Navarro
812afdb85e
Fix tests (breaking because of mutating objects...)
2024-07-17 16:28:46 +02:00
Adria Navarro
b1cfdc4f25
Clean code
2024-07-17 11:15:55 +02:00
Adria Navarro
2035713b9c
Implement delete
2024-07-11 17:33:40 +02:00
Adria Navarro
d03a0ebb68
Implement update
2024-07-11 17:08:57 +02:00
Adria Navarro
17fc605e4f
Persist as object instead of array
2024-07-11 16:57:32 +02:00
Adria Navarro
65d7656097
Unify newid
2024-07-11 15:27:48 +02:00
Adria Navarro
fac9c35bce
Simplify tests
2024-07-11 10:46:29 +02:00
Adria Navarro
bf161d9d93
More types
2024-07-10 15:41:55 +02:00
Adria Navarro
0c2024bf6a
Basic get
2024-07-10 13:56:41 +02:00
Adria Navarro
de2938799b
Initial test
2024-07-10 13:47:34 +02:00
Sam Rose
69d54b523d
Finish implementation, fix tests.
2024-07-08 14:21:07 +01:00
mike12345567
39523685d6
Adding test case for searching sample data.
2024-07-05 16:20:27 +01:00
Dean
3c32c08ca8
Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update
2024-07-03 17:17:08 +01:00
Sam Rose
3a74df0a4a
Fix tests.
2024-07-03 17:04:31 +01:00
Dean
5ff8b03378
Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update
2024-06-25 12:05:31 +01:00
Dean
d50a8e0746
Merge remote-tracking branch 'origin/master' into feature/automation-row-ux-update
2024-06-20 10:43:33 +01:00
Peter Clement
2b96cbcad7
Expose old row binding in automations ( #13931 )
...
* expose old row through the emitter
* accidentally added oldRow to step
* fix row fetch in external datasources
* add test for new / old row comparison
* add testing for old row update event
* allow function overloading in test files
* update tests per comments
* handle event race condition
* update test data modal to account for old row output
* switch icon positioning
2024-06-18 13:45:58 +01:00
Dean
3a10c57651
Merge commit
2024-06-13 16:56:25 +01:00
Michael Drury
dcd5e7934d
Merge branch 'master' into fix/BUDI-8258-update-presence
2024-06-07 18:01:38 +01:00
mike12345567
f76eb1b220
Merge branch 'master' of github.com:Budibase/budibase into fix/BUDI-8258-update-presence
2024-06-07 17:24:40 +01:00
mike12345567
5de2dc8382
Some test updates to make the fetchSchema tableFilter prop usable.
2024-06-07 17:13:06 +01:00
Sam Rose
85c372c4d6
Move some mysql.spec.ts and postgres.spec.ts tests into datasource.spec.ts.
2024-06-07 16:56:07 +01:00
Sam Rose
c07d73beaf
Modernise datasource.spec.ts.
2024-06-07 16:35:46 +01:00
Sam Rose
fb4cecc93f
Update template tests to make sure importing templates works for SQS.
2024-05-29 17:07:29 +01:00
Sam Rose
1a94d2dca9
wip
2024-05-29 14:21:58 +01:00
Sam Rose
7f7ed9f0cb
Move more tests out of sql.spec.ts.
2024-05-21 17:38:38 +01:00
Sam Rose
6bd984ab9c
Making progress towards deleting sql.spec.ts.
2024-05-21 11:51:42 +01:00
deanhannigan
c1874f3376
Merge branch 'master' into feature/filter-bindings
2024-05-09 14:34:07 +01:00
Peter Clement
db273bcd36
Support attachment columns in Automations ( #13567 )
...
* base work to support attachments in create / update row
* handle single attachment column
* fix tests
* pro
* fix some types
* handle case where file exists in storage
* improve attacment processing
* refactor slightly and ensure correct url is used for existing attachments
* add test
* Fixing a build issue.
* update tests
* some lint
* remove cursed backend-core test util
* addressing pr comments
* refactoring nasty automationUtils upload code
* remove uneeded check
* use basneeame for fallback filename
* add a test to ensure coverage of single attachment column type
* fail early when fetching object metadata
---------
Co-authored-by: mike12345567 <me@michaeldrury.co.uk>
2024-05-09 14:30:56 +01:00
Dean
4c6629d15f
Merge remote-tracking branch 'origin/master' into feature/filter-bindings
2024-05-09 11:05:58 +01:00
Peter Clement
1d300c2577
Remove aws sdk global mock and update tests ( #13637 )
...
* Remove aws sdk global mock and update tests
* add awaits
* Minio healthcheck in tests.
* Bind to 127.0.0.1 instead of 0.0.0.0
* Fix port fetching for minio container.
* Actually fix port mapping this time.
* Pull minio container before running tests.
* Enable testcontainers debug logging.
* Promote minio container to always running in tests, like CouchDB.
* Remove testcontainers debug logging.
---------
Co-authored-by: Sam Rose <hello@samwho.dev>
2024-05-08 14:08:34 +01:00
Dean
04588711e2
Refactored out config changes and now excluding on the affected SQS/Multiuser tests
2024-05-07 09:13:43 +01:00
Dean
8bd6599976
Merge remote-tracking branch 'origin/master' into feature/filter-bindings
2024-05-03 10:52:14 +01:00
Sam Rose
6f23877764
Correct types for application updating.
2024-05-03 09:55:55 +01:00
Dean
5e7d1169f7
Minor refactor to accomodate testing with snippets. More test cases for multiple binding types
2024-05-02 16:26:09 +01:00
Adria Navarro
e03975462e
Improve tests
2024-04-19 11:09:20 +02:00
mike12345567
e90e2b214e
Making sure meta.table is always available.
2024-04-17 17:36:19 +01:00
Michael Drury
2efbd6726c
Removing meta from test API, it cannot be supplied, it is an internal property.
2024-04-16 17:28:13 +01:00
Michael Drury
737adfdea9
Merge branch 'master' into labday/sqs
2024-04-08 17:52:09 +01:00
mike12345567
0afb697653
Merge branch 'master' of github.com:Budibase/budibase into labday/sqs
2024-04-08 16:34:31 +01:00
Sam Rose
a1567227cd
Merge branch 'master' of github.com:budibase/budibase into budi-8091-cant-rename-ms-sql-columns-incorrect-syntax-near
2024-04-08 16:11:26 +01:00
Sam Rose
7294fef252
Merge branch 'master' of github.com:budibase/budibase into budi-8091-cant-rename-ms-sql-columns-incorrect-syntax-near
2024-04-08 15:58:14 +01:00
Sam Rose
ee45efd658
Remove unused import.
2024-04-08 15:48:59 +01:00
Sam Rose
8ad0729317
Fix ViewV2API.get to hit the API instead of using the sdk.
2024-04-08 15:48:27 +01:00
Sam Rose
d2c0842c45
Fix viewV2 tests (for now)
2024-04-08 15:17:24 +01:00
Sam Rose
81cd2a1559
Attempt to fix View / ViewV2 types.
2024-04-08 14:58:48 +01:00
Sam Rose
bc072e1424
More progress on fixing up table.spec.ts.
2024-04-05 11:50:27 +01:00
Sam Rose
f80a207d28
Working towards running table.spec.ts against external datasources.
2024-04-04 17:39:35 +01:00
mike12345567
65fa317f9e
Fixing yarn lock merge conflict.
2024-04-04 17:23:28 +01:00
mike12345567
d11c316572
Merge branch 'master' of github.com:Budibase/budibase into labday/sqs
2024-04-04 15:02:25 +01:00
Sam Rose
b2ef045ecf
Merge master.
2024-04-03 15:17:38 +01:00
mike12345567
4c755b3af3
Improving typing around search, there was duplicates of SearchParams and SearchResponse - which were a little different, bring all of this together under the types library.
2024-03-28 17:57:37 +00:00
Sam Rose
4183a0aeb7
Set default packages/server test timeout to 30 seconds, and unmock console.log.
2024-03-27 16:57:31 +00:00
Sam Rose
f1609e6763
Retry socket hangups.
2024-03-26 17:25:24 +00:00