graph-view: remove typing of app

This commit is contained in:
Liam Fitzgerald 2020-09-15 11:23:13 +10:00
parent 9ef2adf9da
commit 61e1a40650
3 changed files with 18 additions and 34 deletions

View File

@ -4,12 +4,6 @@
=< [sur .] =< [sur .]
=, sur =, sur
|% |%
++ app-to-mark
|= app=app-name
?+ app ~|("nonexistent app" !!)
%chat %graph-validator-chat
%publish %graph-validator-publish
==
++ dejs ++ dejs
=, dejs:format =, dejs:format
|% |%
@ -26,46 +20,38 @@
== ==
:: ::
++ create ++ create
%- ot %- ou
:~ resource+dejs:resource :~ resource+(un dejs:resource)
title+so title+(un so)
description+so description+(un so)
app+app mark+(uf ~ (mu so))
associated+associated app+(un so)
== associated+(un associated)
::
++ app
|= jon=json
^- app-name
?> ?=(%s -.jon)
?+ p.jon !!
%chat %chat
%publish %publish
== ==
:: ::
++ leave ++ leave
%- ot %- ot
:~ resource+dejs:resource :~ resource+dejs:resource
app+app app+so
== ==
:: ::
++ delete ++ delete
%- ot %- ot
:~ resource+dejs:resource :~ resource+dejs:resource
app+app app+so
== ==
:: ::
++ join ++ join
%- ot %- ot
:~ resource+dejs:resource :~ resource+dejs:resource
app+app app+so
ship+(su ;~(pfix sig fed:ag)) ship+(su ;~(pfix sig fed:ag))
== ==
:: ::
++ groupify ++ groupify
%- ou %- ou
:~ resource+(un dejs:resource) :~ resource+(un dejs:resource)
app+(un app) app+(un so)
to+(uf ~ (mu dejs:resource)) to+(uf ~ (mu dejs:resource))
== ==
++ invite !! ++ invite !!

View File

@ -8,9 +8,6 @@
$% [%group rid=resource] $% [%group rid=resource]
[%policy =policy] [%policy =policy]
== ==
:: $app: An app that is associated to a graph-store mark
::
+$ app-name ?(%chat %publish %links)
:: ::
:: $error: An error from a graph-view poke :: $error: An error from a graph-view poke
:: ::
@ -34,14 +31,15 @@
rid=resource rid=resource
title=@t title=@t
description=@t description=@t
app=app-name mark=(unit mark)
app=@tas
=associated =associated
== ==
[%delete rid=resource app=app-name] [%delete rid=resource app=@tas]
[%leave rid=resource app=app-name] [%leave rid=resource app=@tas]
[%join rid=resource app=app-name =ship] [%join rid=resource app=@tas =ship]
::[%invite rid=resource ships=(set ship)] ::[%invite rid=resource ships=(set ship)]
[%groupify rid=resource app=app-name to=(unit resource)] [%groupify rid=resource app=@tas to=(unit resource)]
== ==
-- --

View File

@ -32,7 +32,7 @@
?. =(our.bowl entity.rid.action) ?. =(our.bowl entity.rid.action)
(strand-fail:strandio %bad-request ~) (strand-fail:strandio %bad-request ~)
=/ =update:graph =/ =update:graph
[%0 now.bowl %add-graph rid.action *graph:graph `(app-to-mark:graph-view app.action)] [%0 now.bowl %add-graph rid.action *graph:graph mark.action]
;< ~ bind:m ;< ~ bind:m
(poke-our %graph-store graph-update+!>(update)) (poke-our %graph-store graph-update+!>(update))
;< ~ bind:m ;< ~ bind:m