izzy lyseggen
c6db01420a
test(subs): merge branch 'dim/gql-subscriptions'
2020-08-20 09:50:15 +01:00
Dimitrie Stefanescu
e4f213d4f6
test(subscriptions): works with separate run test server, figuring out starting it from test file
...
doing `npm run dev:server:test` and running the test with that server over port 3000 works. seems
like ws upgrade requests are not honoured when the server is started from the test file (on 3001).
2020-08-20 10:27:48 +03:00
izzy lyseggen
6c3e8b138d
feat(subs): rename stream subs & apply directives
...
- `streamCreated` -> `userStreamCreated
- `streamDeleted` -> `userStreamDeleted`
this is to better show that this is user bound (takes owner id)
rather than stream bound
- @hasRole and @hasScope have been reapplied to each field
2020-08-19 15:45:21 +01:00
Dimitrie Stefanescu
b3cf8e863a
refactor(test/subscriptions): split out the subs test file & added npm test script for it
2020-08-19 17:27:17 +03:00
Dimitrie Stefanescu
1f25b8c5fe
refactor(subscriptions): fiddles and riddles
2020-08-19 16:49:39 +03:00
izzy lyseggen
78657bbe7d
feat(subs): finish up streams subscriptions
2020-08-18 10:31:45 +01:00
izzy lyseggen
ee532b2b96
refactor(streams): use directives for auth
...
comment out any auth logic within the streams resolvers and add auth
directives to the graphql schema instead
test:server all pass for me with this, so hoping everything is ok here!!
2020-08-14 15:32:06 +01:00
izzy lyseggen
e3f2d73444
feat(subs): add stream updated and deleted subs
2020-08-12 16:01:19 +01:00
izzy lyseggen
9d34ac0e95
feat(subs): return stream input from streamCreated
2020-08-11 17:47:47 +01:00
izzy lyseggen
fee7ffb257
feat(sub): filter stream created sub by owner id
2020-08-07 15:02:57 +01:00
Dimitrie Stefanescu
7b32d39cac
feat(subs): added redis pubsubber (shared resource), imported it into stream resolvers
2020-08-06 10:42:36 +01:00
izzy lyseggen
d7b75f9bfb
feat(subscriptions): trying to figure out subs
...
I added a streamCreated sub to try it out,
but I can't get it to connect 😅
2020-08-05 17:17:18 +01:00
Matteo Cominetti
80b293c592
feat(gql): adds tests for stream search and user search
2020-07-29 18:56:58 +01:00
Matteo Cominetti
64279a867d
feat(gql): limits set to max=100 and default=25 for streams, users, branches & commits. Additional changes as per PR #14 .
2020-07-29 13:10:24 +01:00
Matteo Cominetti
e51345cb9e
feat(gql): adds streamSearch, adds pagination to userSearch
2020-07-28 16:20:45 +01:00
Dimitrie Stefanescu
46e6572ab9
chore(typo & linting): fixed minor typos in readme & linting errors
2020-07-26 20:06:20 +01:00
Matteo Cominetti
eb4f7a9a46
fix(graphql): AuthorizationError is not a constructor
2020-07-22 21:07:09 +01:00
Dimitrie Stefanescu
a9a77872d2
feat(gql): stream users now returns a custom type - no longer polluting the original
...
& many other fixes & squashed bugs (stream counts, other users' streams, etc.)
2020-07-21 23:40:42 +01:00
Dimitrie Stefanescu
a1b1663309
fix(cursor): fixing date-only cursors casting (.toISOString()) in getUserStreams
2020-07-20 18:08:12 +01:00
Dimitrie Stefanescu
6fd72ad0fa
refactor(gql): services & resolvers around user streams, branches, etc
2020-07-20 17:27:39 +01:00
Dimitrie Stefanescu
2b33ab5aa2
feat(various): gql api (tests & resolvers), added eslint & editorconfig
2020-07-20 15:33:56 +01:00
Dimitrie Stefanescu
13b6ccb400
chore(naming): renamed apps to auth
2020-07-19 23:57:46 +01:00
Dimitrie Stefanescu
7a2312fba2
feat(api): ⚠️ WIP. Partially cleans up api, modules and services around streams
2020-07-17 10:22:58 +01:00
Dimitrie Stefanescu
187204073d
refactor(naming): renamed root to appRoot & updated all usage
2020-07-14 15:13:44 +01:00
Dimitrie Stefanescu
6eafa2da71
feat(roles & api): added server-bound user roles, validation, tests, and adde missing api routes
2020-05-23 20:44:39 +01:00
Dimitrie Stefanescu
bd5d7436f6
feat(roles): storing & enforcing roles
2020-05-20 18:30:04 +01:00
Dimitrie Stefanescu
a3557570ef
feat(scopes and roles): separated user and token services
2020-05-18 20:36:15 +01:00
Dimitrie Stefanescu
a68bd628c6
feat(rest): removed the rest api
2020-05-14 13:36:50 +01:00
Dimitrie Stefanescu
9c8c7c7f0a
test(general): improved coverage, fixed rest api that was out of sync & rest api intergration tests
2020-04-26 22:08:37 +01:00
Dimitrie Stefanescu
ba874be0e4
feat(graphql): consolidated some responses, and improved some resolver behaviour
2020-04-26 13:15:48 +01:00
Dimitrie Stefanescu
6deadb6f5c
test(graphql): added more tests
2020-04-26 12:41:48 +01:00
Dimitrie Stefanescu
0225fcedc0
feat(graphql): scaffoled permission mutations on streams
...
Also, intentionally broke a test on how permissions are handled.
2020-04-21 00:11:15 +01:00
Dimitrie Stefanescu
200331aacb
feat(graphql): more scaffolding
2020-04-20 16:56:13 +01:00