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
c406abe5ec
feat(subs): subs for branch & commit mutations 🥳
...
also applied @hasRole and @hasScope directives to mutations in this schema
2020-08-19 15:46:40 +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
c6e08b2c5d
feat(gql): adds UserSearchResults and improves user search
2020-07-27 23:13:20 +01:00
Matteo Cominetti
9733cc602d
feat(gql): search users wip
2020-07-25 21:04:29 +01:00
Matteo Cominetti
f4d236cd63
fix(gql): commitUpdate return type
2020-07-25 14:29:31 +01:00
Matteo Cominetti
eb4f7a9a46
fix(graphql): AuthorizationError is not a constructor
2020-07-22 21:07:09 +01:00
Dimitrie Stefanescu
b14dae6829
feat(gql): implemented resolvers & tests for stream commits & branch commits
2020-07-22 10:58:08 +01:00
Dimitrie Stefanescu
0fe6a0f4af
feat(gql): implemented branch query resolvers & tests
2020-07-22 09:38:13 +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
9715129284
feat(gql): (re-)implemented some commits & re-organized gql tests
2020-07-20 00:58:00 +01:00
Dimitrie Stefanescu
13b6ccb400
chore(naming): renamed apps to auth
2020-07-19 23:57:46 +01:00
Dimitrie Stefanescu
d2ddf03746
feat(api): implemented branch & commit services + tests
2020-07-19 21:56:43 +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
35fd2cfc49
feat(api): api & services pruning
2020-07-17 20:39:23 +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
6847791ef1
feat(uploads): added test streaming endpoint for uploads
2020-06-14 00:30:41 +01:00
Dimitrie Stefanescu
b09049f9b2
refactor(auth): removed graphql endpoints for userCreate/Register
2020-06-10 00:33:05 +01:00
Dimitrie Stefanescu
165f1cdf64
feat(auth): scaffolding app authz & authn flows
2020-06-05 23:41:03 +01:00
Dimitrie Stefanescu
7c499f18e3
feat(auth): login screen scaffolding
2020-06-02 11:08:15 +01:00
Dimitrie Stefanescu
3d5e9d3075
feat(setup): finalised(-ish) setup flow & added auth sub app scaffold
2020-05-28 15:59:37 +01:00
Dimitrie Stefanescu
ceba8905d3
feat(structure): frontend + backend <3
2020-05-28 08:58:24 +01:00
Dimitrie Stefanescu
23b63c749c
feat(structure): structured frontend into an MPA and various other fixes
2020-05-24 20:16:51 +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
b88764a58a
refactor(general): unified testing command names
2020-05-22 16:25:49 +01:00
Dimitrie Stefanescu
59e03f80ee
feat(resolvers): added serverInfo route, bumped test coverage
2020-05-21 10:24:02 +01:00
Dimitrie Stefanescu
a3557570ef
feat(scopes and roles): separated user and token services
2020-05-18 20:36:15 +01:00
Dimitrie Stefanescu
05afd4f839
fix(tests & queries): added graphql handlers for object children, tests, and refactoring
...
Graphql:
2020-05-13 14:19:46 +01:00
Dimitrie Stefanescu
dfc8920d3a
feat(queries): finished implementation of getObjectChildrenQuery
...
It's as efficient as I could get it to be, while still providing a totalCount of the requested
object subset given the query constraints.
2020-05-08 19:10:32 +01:00
Dimitrie Stefanescu
1a4442b5a7
feat(queries): implemented fast query route for children
...
and started scaffolding the slower, filter enabled one
2020-05-07 21:10:49 +01:00
Dimitrie Stefanescu
f0e556042f
feat(graphql): get object children query in place
2020-05-01 00:20:45 +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
6a2adcf7e8
test(graphql): more tests for graphql implementation
2020-04-26 18:23:36 +01:00
Dimitrie Stefanescu
6deadb6f5c
test(graphql): added more tests
2020-04-26 12:41:48 +01:00
Dimitrie Stefanescu
c1924ba549
test(graphql): adding more tests
2020-04-25 20:56:16 +01:00
Dimitrie Stefanescu
74ca015767
feat(graphql): more implementations
2020-04-22 14:49:55 +01:00
Dimitrie Stefanescu
c51211385f
feat(graphql): implemented more mutations and queries
2020-04-22 13:38:28 +01:00