Commit Graph

686 Commits

Author SHA1 Message Date
Dimitrie Stefanescu 1ddb867739 Merge pull request #25 from specklesystems/dim/dev
feat(local auth): in dev/test mode, returns a token registration/login finale
2020-09-02 14:28:58 +01:00
Dimitrie Stefanescu 107266b901 feat(local auth): in dev/test mode, returns a token on the authorization finalisation middleware 2020-09-02 14:04:29 +01:00
Dimitrie Stefanescu 7a2cc72aca Merge pull request #24 from specklesystems/dim/dev
refactor(subs names): renamed streamCreated/Deleted to Added/Removed
2020-09-01 15:13:15 +01:00
Dimitrie Stefanescu 1b5b13bf9d refactor(subs names): renamed streamCreated/Deleted to Added/Removed 2020-09-01 14:37:52 +01:00
Dimitrie Stefanescu eee8dae86d Merge pull request #23 from specklesystems/dim/dev
Stream Subscriptions Cleanup
2020-09-01 12:19:04 +01:00
Dimitrie Stefanescu 33fb0fa7f7 docs(subs): updates schema comments to clarify userStreamCreated/Deleted re perms granted/revoked 2020-09-01 12:16:24 +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 501a238880 Merge pull request #22 from specklesystems/dim/dev
Dim/dev
2020-08-31 21:28:25 +01:00
Dimitrie Stefanescu 1b57a2ba4b feat(auth): returns the userid on registration if no app id is present 2020-08-31 18:28:16 +01:00
Dimitrie Stefanescu 8a023d25d5 fix(setup): fully removes the setup check app 2020-08-31 18:15:18 +01:00
Dimitrie Stefanescu 6d90e26aae feat(setup): removes setup check so we stop confusing people if it's not working yet :) 2020-08-31 13:34:07 +01:00
Dimitrie Stefanescu 16f3e1bb03 fix(subs): wrapps onConnection in a try catch and checks for auth headers
some clients send the connection params with lowercase :/
2020-08-31 13:27:55 +01:00
izzy lyseggen a05b33975c feat(docs): windoze node 12 to avoid knex error 2020-08-29 10:07:53 +01:00
Dimitrie Stefanescu 524c7704f5 Merge pull request #21 from specklesystems/dependabot/npm_and_yarn/apollo-server-core-2.16.1
chore(deps): bump apollo-server-core from 2.12.0 to 2.16.1
2020-08-26 16:22:51 +03:00
Dimitrie Stefanescu 7474c08fab Merge pull request #20 from specklesystems/dependabot/npm_and_yarn/apollo-server-express-2.14.2
chore(deps): bump apollo-server-express from 2.12.0 to 2.14.2
2020-08-26 16:22:34 +03:00
Dimitrie Stefanescu 68e23361fe Merge pull request #19 from specklesystems/dependabot/npm_and_yarn/bcrypt-5.0.0
chore(deps): bump bcrypt from 4.0.1 to 5.0.0
2020-08-26 16:22:11 +03:00
dependabot[bot] ecd2a0aeb2 chore(deps): bump apollo-server-core from 2.12.0 to 2.16.1
Bumps [apollo-server-core](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-core) from 2.12.0 to 2.16.1.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-core@2.16.1/packages/apollo-server-core)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-26 12:40:30 +00:00
dependabot[bot] a52bb896b9 chore(deps): bump apollo-server-express from 2.12.0 to 2.14.2
Bumps [apollo-server-express](https://github.com/apollographql/apollo-server/tree/HEAD/packages/apollo-server-express) from 2.12.0 to 2.14.2.
- [Release notes](https://github.com/apollographql/apollo-server/releases)
- [Changelog](https://github.com/apollographql/apollo-server/blob/main/CHANGELOG.md)
- [Commits](https://github.com/apollographql/apollo-server/commits/apollo-server-express@2.14.2/packages/apollo-server-express)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-26 12:40:24 +00:00
dependabot[bot] c23a58d142 chore(deps): bump bcrypt from 4.0.1 to 5.0.0
Bumps [bcrypt](https://github.com/kelektiv/node.bcrypt.js) from 4.0.1 to 5.0.0.
- [Release notes](https://github.com/kelektiv/node.bcrypt.js/releases)
- [Changelog](https://github.com/kelektiv/node.bcrypt.js/blob/master/CHANGELOG.md)
- [Commits](https://github.com/kelektiv/node.bcrypt.js/compare/v4.0.1...v5.0.0)

Signed-off-by: dependabot[bot] <support@github.com>
2020-08-26 12:40:18 +00:00
izzy lyseggen 710a101285 docs(readme): windoze tipz 2020-08-26 13:39:35 +01:00
Dimitrie Stefanescu 12fbf4f6b5 Update readme.md 2020-08-26 14:26:34 +03:00
Dimitrie Stefanescu 2d3aef0f7d Create LICENSE 2020-08-26 14:24:39 +03:00
Dimitrie Stefanescu 43a558c77f Update readme.md 2020-08-26 14:20:43 +03:00
Dimitrie Stefanescu 5a8f74accd Create ISSUE_TEMPLATE.md 2020-08-25 16:03:28 +03:00
Dimitrie Stefanescu 7327bf812c Create CONTRIBUTING.md 2020-08-25 16:02:35 +03:00
izzy lyseggen 82de2cba02 Merge pull request #16 from specklesystems/izzy/gql-subscriptions
Izzy/gql subscriptions
2020-08-25 09:00:43 +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 56f27e4715 fix(typo): spelling mistake in error message 2020-08-24 17:51:23 +01: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 0723a69895 fix(streams): oops forgot some 2020-08-21 16:51:58 +01: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 be8e8be854 feat(subs): auth within subscripition resolvers 2020-08-21 14:11:10 +01:00
izzy lyseggen 397fb04689 feat(subs): add scope auth to branch & commit subs 2020-08-21 13:46:28 +01:00
izzy lyseggen 0674083f6c feat(auth-dirs): only allow on field definitons 2020-08-21 13:45:44 +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 7ed81e0d2a Merge branch 'dim/sub-circle' of https://github.com/Speckle-Next/Server into izzy/gql-subscriptions 2020-08-21 10:20:25 +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
Dimitrie Stefanescu 6f64f7e485 test(ci): set default timeout flag for all tests to 5000ms 2020-08-21 11:54:00 +03: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