Commit Graph

145 Commits

Author SHA1 Message Date
Dimitrie Stefanescu dfc70d314f fix(server): prevents users from revoking their own permissions 2020-12-23 18:04:16 +02:00
Dimitrie Stefanescu 3606ac919d feat(server): retrieves latest commit on commit query if no id is specified 2020-12-23 17:48:11 +02:00
Dimitrie Stefanescu 35653cd88a feat(server): defaults branch query to "main" branch 2020-12-23 17:41:17 +02:00
Dimitrie Stefanescu 07a27bd31d fix(server): prevents main branch deletion
adds a guard in the delete branch service to check if it's the main branch

fixes #61
2020-12-23 17:33:55 +02:00
Dimitrie Stefanescu fc69c8c66d test(server): finalised updatedAt tests for streams 2020-12-23 17:27:36 +02:00
Dimitrie Stefanescu cbd7e75f98 test(server): some tests for stream updatedAt updates 2020-12-23 16:56:41 +02:00
Dimitrie Stefanescu 2973ce8694 feat(server): commits: implements all fields in services & updates parents 2020-12-23 14:56:55 +02:00
Dimitrie Stefanescu 1758858250 feat(server): implements branchName and total kids count in get commit by id + test 2020-12-23 01:44:18 +02:00
Dimitrie Stefanescu 349d91ec06 feat(server): implements branchName and totalChildren count across all commit get services 2020-12-23 01:36:22 +02:00
Dimitrie Stefanescu dd78e8064b feat(server): wip: adds tests for new commit fields & implementation start 2020-12-23 00:04:47 +02:00
Dimitrie Stefanescu b2366f7844 feat(server/commits): create commit service now accepts source app & children count
Note: children count, if not passed in by the user, will be automatically set from the referenced
object
2020-12-22 22:34:15 +02:00
Dimitrie Stefanescu 3673fde9f7 feat(upload): allows for both gzipped multiparts as well as application/text/json
fixes some tests too
2020-10-24 21:01:25 +01:00
Matteo Cominetti 97010454f0 Merge branch 'matteo/server' into matteo/frontend 2020-10-13 15:18:03 +01:00
Matteo Cominetti b0af28792a test(commit): adds check for authorId field 2020-10-13 14:57:29 +01:00
Matteo Cominetti f06e159ec5 refractor(gql): renames userEdit to userUpdate 2020-10-09 20:47:52 +01:00
izzy lyseggen 2faaffc250 refactor(branch): rename default branch to main 2020-10-07 14:53:59 +01:00
Dimitrie Stefanescu bd3eee8308 test(user services): added test for findOrCreateUser 2020-09-24 19:52:19 +01:00
Dimitrie Stefanescu 6d9dd0351c feat(permissions): allows getting public streams with anon requests + tests. test cov back >90% FTW 2020-09-21 17:45:03 +01:00
Dimitrie Stefanescu 7a5e76c8fd test(users): adds user search api test 2020-09-21 14:11:29 +01:00
Dimitrie Stefanescu 260d38ab1b test(refresh tokens): added tests for refresh tokens
+ scaffolded tests for user search and server info update routes
2020-09-21 10:03:49 +01:00
Dimitrie Stefanescu 03bd49ef6d feat(apps): scaffolded more app services & more (cleanup, tests, etc.) 2020-09-18 16:46:23 +01:00
Dimitrie Stefanescu 1b5b13bf9d refactor(subs names): renamed streamCreated/Deleted to Added/Removed 2020-09-01 14:37:52 +01:00
Dimitrie Stefanescu 1f8ef39831 test(subs): uncommented all tests 2020-09-01 12:09:56 +01:00
Dimitrie Stefanescu f24dd6529e test(subs): fixed borked streamUpdate 2020-09-01 12:07:53 +01:00
Dimitrie Stefanescu 28b8c08aff perf(subs): standardises the response on stream subs to id (vs mixture of streamId and id) 2020-09-01 11:58:09 +01:00
Dimitrie Stefanescu 690d95bfde fix(subs): replaces permission subs with created/deleted + sharedBy/revokedBy props 2020-09-01 11:46:38 +01:00
Dimitrie Stefanescu 11571a1d76 fix(subscriptions): added stream deleted subscription 2020-09-01 10:58:29 +01:00
Dimitrie Stefanescu 0e98b6f5ce feat(subs): adds 'grantor' userid on stream permissions granted event
so later down the line we can do 'x shared y with you', albeit i'm also inclined to move those
permission granted events to stream created/deleted
2020-08-25 10:39:32 +03:00
Dimitrie Stefanescu 2ab449fce5 Merge branch 'izzy/gql-subscriptions' of https://github.com/Speckle-Next/Server into izzy/gql-subscriptions 2020-08-25 10:19:49 +03:00
izzy lyseggen 4fd1a6b480 test(subs): try supertest for the requests a la #3
`sendRequest` now uses the supertest method for executing and verifying requests

still using chai for the assertions with subscribe data and eventNum
as I wasn't sure what assertion lib we want to use if not chai
since supertest is just for api (if i'm understanding correctly??)
2020-08-24 17:47:03 +01:00
Dimitrie Stefanescu 02b660d8ae test(subs): keeps spawned process error logging in tests
so we can read them in the ci logs easier
2020-08-23 20:24:29 +03:00
izzy lyseggen b8c0bb4125 refactor(mutations): make inputs consistent
all mutations that require more than 1 input now has an input type 🌟
fixes #10
2020-08-21 16:45:21 +01:00
izzy lyseggen 0ef85374b3 style: clean redundant refs and formatting 2020-08-21 16:00:13 +01:00
izzy lyseggen f0db46bbca test(subs): more auth tests for subs
confirm you can't receive updates if you're not authorised for stream
2020-08-21 15:36:49 +01:00
izzy lyseggen d204902fcb style(subs-tests): formatting 2020-08-21 14:24:51 +01:00
izzy lyseggen 6db1bdcf42 feat(subs): simplify stream create/delete subs
as per discussion, remove `ownerId` input and only allow subscribing to
your own stream creation / deletion
2020-08-21 13:44:19 +01:00
izzy lyseggen 70c6b76b85 test(subs): stream sub auth tests
prevent sub for different user or with wrong scope
2020-08-21 10:12:44 +01:00
izzy lyseggen 773f86dcdc test(ci): make the child process windoze friendly 2020-08-21 09:54:18 +01:00
izzy lyseggen 1ded3a2a76 test(ci): merge in branch 'dim/sub-circle' 2020-08-21 09:52:47 +01:00
izzy lyseggen 75cddd1260 test(subs): permission granted and revoked tests 2020-08-21 09:38:48 +01:00
Dimitrie Stefanescu a9ad5cbd0b test(ci): peppered await sleep(500) before every mutation 2020-08-21 11:24:37 +03:00
Dimitrie Stefanescu 8fd0f7e580 test(ci): trying out new spawning mechanism for sub test 2020-08-21 11:16:02 +03:00
izzy lyseggen dc4d8de77e Merge branch 'izzy/gql-subscriptions' of https://github.com/Speckle-Next/Server into izzy/gql-subscriptions 2020-08-20 15:26:30 +01:00
izzy lyseggen 22248bf538 test(subs): basic tests for all subscriptions
did somebody say TESTS 🥳
2020-08-20 15:26:17 +01:00
Dimitrie Stefanescu d40258cfe6 test(circleci): added test server runner separately 2020-08-20 15:39:02 +03:00
izzy lyseggen ac58d4f53a Revert "test(subs): bump to timeout 7k"
Didn't work.

This reverts commit 41153f1aeb.
2020-08-20 10:42:48 +01:00
izzy lyseggen 41153f1aeb test(subs): bump to timeout 7k to pacify circle ci 2020-08-20 10:36:05 +01:00
izzy lyseggen 762f369c56 test(subs): bump timeout to 5k bc steve jobs's 👻 2020-08-20 10:08:43 +01:00
Dimitrie Stefanescu 7a03c884ea fix(tests/subscriptions): fixes port conflict in subscription tests when ran from all tests command 2020-08-20 11:31:25 +03:00
Dimitrie Stefanescu 29dfa57d82 test(subscriptions): subscription tests now run independently 🙌 2020-08-20 11:26:51 +03:00