Commit Graph

23 Commits

Author SHA1 Message Date
izzy lyseggen 99f473873a fix(subs): remove redundant stream sub defs 2020-08-20 10:00:26 +01:00
izzy lyseggen c6db01420a test(subs): merge branch 'dim/gql-subscriptions' 2020-08-20 09:50:15 +01: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 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 9bb7b6fe05 feat(auth-dirs): allow hasScope and hasRole on obj
implement `visitObject()` so the directives can be applied to objects.
I have applied them to all mutations and tests all still pass.

NOTE: i feel like there must be a way to abstract and reuse directive
definitions as it's very repetitive, but I'm a bit too brain dead today
to think of an elegant solution
2020-08-17 17:12:52 +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 fa209157bc feat(subs): add @hasScope dir to streamCreated 2020-08-11 14:39:48 +01:00
izzy lyseggen fee7ffb257 feat(sub): filter stream created sub by owner id 2020-08-07 15:02:57 +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 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
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 4d6e899750 feat(api): cleaning up in progress
services for objects, branches, and commits; fixed some tests, scaffolded graphql api & resolvers
2020-07-19 13:39:50 +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 a3557570ef feat(scopes and roles): separated user and token services 2020-05-18 20:36:15 +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