Commit Graph

1057 Commits

Author SHA1 Message Date
fang
62d7281156
clay: add /~ ford rune, as /= for directories
Hoon files may want to import nouns from all files in a given directory.
/~ lets you do so, importing as a (map @ta *) (but with typed values).

Note the description as "directories" here, instead of "path prefix".
The behavior, as implemented, will not include /path/hoon for /~  /path,
instead only including /path/more/hoon and more deeply nested files.
This seems to be, generally, the behavior you want, for example when
importing from /app/myapp/* for /app/myapp/hoon.

Actually using the resulting map requires some manual casting, which is
not ideal. Some code style improvement work remains to be done as well.
2021-04-09 01:49:14 +02:00
fang
1ec5e5acfb
hoon: add +stap, path parser
And cleans up a bunch of locally hand-written implementations of it.
2021-04-07 21:14:13 +02:00
Liam Fitzgerald
fbd85abf4e
Merge remote-tracking branch 'origin/master' into lf/push-hook-unver 2021-04-03 12:54:35 +11:00
Liam Fitzgerald
b6a758b1f9
pull-hook: noop on unsupported, unversioned facts
Pull-hook side of the previous change to push-hook
(479fbfd798). Noop on unsupported
unversioned marks, waiting for the publisher to upgrade and kick. Same
tradeoffs as previous change apply.
2021-04-03 10:45:22 +10:00
Logan Allen
21b1119c74 metadata lib: parse right 2021-04-02 20:35:25 +00:00
Logan Allen
6fbbe2ceb7 metadata-store lib: make config encode/decode invertible 2021-04-02 19:18:59 +00:00
Liam Fitzgerald
f27fa5b0f3
metadata: fix updating graph metadata 2021-04-02 23:23:31 +10:00
Liam Fitzgerald
01960286d0
push-hook: do not pass facts to unsupported, unversioned subs 2021-04-02 22:14:15 +10:00
Liam Fitzgerald
479fbfd798
push-hook: noop on unversioned, unsupported watches
Mainnet is currently experiencing undue load due to a watch-kick loop.
If the watch is unsupported, it will be kicked due to a mark mismatch,
which will be interpreted by the unversioned hooks as a network pressure
kick, prompting a resub and continuing the loop. Instead, we now no-op
on unversioned, unsupported watches, waiting for the subscriber to
rewatch after it processes the versioning OTA. This will silently break
groups for the subscriber until the reach the latest OTA, but is
preferable to nacking, and kicking them permanently
2021-04-02 20:38:22 +10:00
Liam Fitzgerald
eb131e64a8
metadata: prevent crash 2021-04-02 15:24:26 +10:00
Liam Fitzgerald
4d659be7cf
metadata: fix JSON conversions 2021-04-02 14:35:41 +10:00
Liam Fitzgerald
615be57b7b
Post: refactor permission variations 2021-04-02 11:48:09 +10:00
Logan Allen
5953c9a58f graph-view: add %vip field to %create-group-feed 2021-04-01 16:08:30 -05:00
Liam Fitzgerald
95bf313ff9 group-view: add %started update 2021-03-29 14:27:28 -04:00
Matilde Park
b7e52edd58 Merge branch 'pre-release/next-userspace' into release/next-userspace 2021-03-26 14:43:28 -04:00
Liam Fitzgerald
996174f85f
push-hook: add version scries 2021-03-26 16:58:02 +10:00
Liam Fitzgerald
9323f19108
graph-store: fix JSON 2021-03-25 14:45:16 +10:00
Liam Fitzgerald
248255c697
graph-store: fix crash in JSON 2021-03-25 14:10:28 +10:00
Liam Fitzgerald
7b378f435d
pull-hook: delay scry in on-load 2021-03-25 11:32:32 +10:00
Liam Fitzgerald
3b3d86aa6c
pull-hook: delay scry in on-load 2021-03-25 11:28:20 +10:00
Matilde Park
7fd4928d96 Merge branch 'release/next-js' into release/next-userspace 2021-03-24 19:10:27 -04:00
Liam Fitzgerald
ce1520ab1a
pull-hook: fix crash 2021-03-25 09:01:22 +10:00
Logan Allen
58bf89d834 Merge branch 'release/next-userspace' into la/group-feed 2021-03-24 14:51:49 -05:00
Liam Fitzgerald
dd44377624
interface: update transclusion for reference content 2021-03-24 13:11:48 +10:00
Liam Fitzgerald
c186bad1c1
graph-store: +on-load 2021-03-24 13:09:58 +10:00
Liam Fitzgerald
b1e86b42ba
interface: fix private permalinks 2021-03-24 13:09:55 +10:00
Liam Fitzgerald
54b3982b42
graph-store: upgrade reference content
This commit changes the type of update:graph-store and as such, a new
mark has been created. graph-store now consumes and produces
%graph-update-1. This new mark type is backwards incompatible with the
previous mark.
2021-03-24 13:06:26 +10:00
Logan Allen
9de66bc5af Merge branch 'release/next-userspace' into la/group-feed 2021-03-23 21:13:12 -05:00
Liam Fitzgerald
4f0d84f4ee
Merge branch 'origin/pre-release/next-userspace' into release/next-userspace 2021-03-23 10:48:11 +10:00
Logan Allen
2e45f4fd99 Merge branch 'release/next-userspace' into la/group-feed 2021-03-22 12:36:34 -05:00
Liam Fitzgerald
ceafee33ab
hooks: address L review 2021-03-22 09:54:59 +10:00
Liam Fitzgerald
e2d10367af
hark-store: give set instead of count in initial
When we receive a notification, it might not affect our count because
it’ll get merged on the server side, but we unconditionally increment
our count on the client if the notification hasn’t been loaded yet.
Addresses this by storing a set of time, index so we can compute whether
or not the notification is merged or unloaded and change the count
accordingly.

Fixes urbit/landscape#276
2021-03-19 11:28:30 +10:00
Liam Fitzgerald
21bc8130ed
hooks: fix unversioned path destructure 2021-03-19 10:24:35 +10:00
Liam Fitzgerald
938ba80e9e
hooks: rewatch unversioned on nack 2021-03-19 10:12:50 +10:00
Liam Fitzgerald
ee12180a5d
hooks: allow unversioned subscriptions for migrate 2021-03-19 10:12:50 +10:00
Liam Fitzgerald
23e772ece5
hooks: fix remaining bugs 2021-03-19 10:12:49 +10:00
Liam Fitzgerald
0878104538
versioning: address review, add tests 2021-03-19 10:12:49 +10:00
Liam Fitzgerald
c99b452fff
version: add mark 2021-03-19 10:05:09 +10:00
Liam Fitzgerald
1832ce1d60
pull-hook: resume sub-ahead 2021-03-19 10:05:09 +10:00
Liam Fitzgerald
46eea8f3d4
pull-hook: resume pub-ahead 2021-03-19 10:05:08 +10:00
Liam Fitzgerald
35bbb358f2
push-hook: version proxied pokes 2021-03-19 10:05:08 +10:00
Liam Fitzgerald
153d0ff347
hooks: fix remaining bugs 2021-03-19 10:05:07 +10:00
Liam Fitzgerald
200944e91a
push-hook: proper versioning 2021-03-19 10:05:06 +10:00
Liam Fitzgerald
e5d75cac25
pull-hook: version mismatch suspend 2021-03-19 10:05:06 +10:00
Liam Fitzgerald
72fe65acd9
hooks: add versioning support 2021-03-19 10:05:02 +10:00
L
bcc43efdb0
Merge pull request #4584 from urbit/la/host-messages-transformed
push-hook: transform all messages, even the host's
2021-03-17 13:02:58 -05:00
L
fe7fdbcff2
Merge pull request #4596 from urbit/la/signatures-work
graph-store signatures: turn them on and correctly validate them
2021-03-17 13:02:43 -05:00
Logan Allen
6e9146bd58 thread: change name from disable-group-feed to dismiss-group-feed 2021-03-16 13:07:36 -05:00
Logan Allen
5a29e0bbcb graph-view: add json conversion and -graph-dismiss-group-feed thread 2021-03-16 13:01:17 -05:00
Logan Allen
c874849203 metadata + post validator + -graph-create-group-feed: end to end create group feed 2021-03-15 17:28:45 -05:00
Logan Allen
3600866a5d push-hook: cache transform and fail if transform fails 2021-03-15 11:59:57 -05:00
Logan Allen
2c1ae5646b push-hook: refactored to transform-proxy-update within forward-update when appropriate. changed a manual |- into +murn 2021-03-12 18:08:34 -06:00
Logan Allen
caffd0fca8 signatures: properly use life instead of signed data in scry for deed 2021-03-12 10:52:46 -06:00
matildepark
ff21e29594
Merge pull request #4577 from tinnus-napbus/strandio-fix-await-thread
strandio: fix await-thread and thread-result
2021-03-11 14:02:10 -05:00
tinnus-napbus
210a63e238 strandio: fix await-thread and thread-result
thread-result generated the tid twice and didn't take the kick caused by
the child thread closing. Additionally, await-thread and thread-result
expect a %thread-fail to produce [term (list tang)] rather than the
actual [term tang].

This commit adds a take-kick, removes the duplicate tid line, and fixes the
expected thread-fail type.
2021-03-11 00:25:07 +13:00
Logan Allen
59da9e1f49 Merge branch 'release/next-userspace' into la/group-feed 2021-03-09 13:22:25 -06:00
Logan Allen
63cfbd2ca4 Merge branch 'master' into release/next-userspace 2021-03-09 13:20:22 -06:00
Logan Allen
7da7da8e1e metadata-store: based on discussion with @ixv, made differences between graphs and groups in metadatum more clear 2021-03-09 11:11:28 -06:00
Logan Allen
b2759b9f36 Merge branch 'release/next-js' into la/release-2021-03-04 2021-03-08 14:11:54 -06:00
Ted Blackman
b55417a1c3 clay: remove +bunt from marks 2021-03-05 16:53:35 -05:00
Logan Allen
9430c8c5ab metadata-store: modify module from @t to (each @t (unit (unit md-resource))) so as to allow for setting an optional group feed associated with a group 2021-03-05 14:28:46 -06:00
Matilde Park
5f24254793 Merge branch 'release/next-js' into release/next-userspace 2021-03-05 03:22:41 -05:00
Philip Monk
a0146f4a44
clay: add %e, %f requests
For static naves, casts respectively
2021-03-04 18:28:16 -08:00
matildepark
3ac19c34d8
Merge pull request #4537 from urbit/lf/invite-fixes
invites: don't pin to top
2021-03-04 14:23:20 -05:00
Liam Fitzgerald
b8d1dbd8c6
group-view: add hidden field 2021-03-04 12:54:37 +10:00
Philip Monk
137f1cdff3
Merge remote-tracking branch 'origin/ted/static-clay-3' into release/next-sys 2021-03-03 18:42:44 -08:00
Philip Monk
0e427c3c7e
Merge commit '5a6a88c' into release/next-sys 2021-03-03 18:18:12 -08:00
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
matildepark
c16815b003
Merge pull request #4347 from urbit/lf/moar-lsp
language-server: fixes & improvements
2021-03-03 14:51:40 -05:00
Logan Allen
9c178d7f34 Merge branch 'release/next-js' into la/transform-proxy 2021-03-03 12:56:39 -06:00
Logan Allen
379e1840bc -graph-add-nodes: scry properly within a thread 2021-03-02 15:55:58 -06:00
Logan Allen
a9232d0df7 graph-view: use all of the proper types, get the API call working to send up the proper hashes 2021-03-01 17:24:21 -06:00
Logan Allen
7c18df399c interface: beginnings of api/reducer integration 2021-02-26 16:59:13 -06:00
Logan Allen
b2ef9044a6 -graph-add-nodes: return (map index hash) upon completion and finish out the json conversion 2021-02-26 14:05:11 -06:00
Isaac Visintainer
c0849f2c0b settings: add array type 2021-02-24 17:28:26 -08:00
Logan Allen
19005f3ca3 graph: rewrite +tap-deep to function properly 2021-02-24 19:14:18 -06:00
J
d0bb1cc849 gcp: camel-case json key names
Now we can do ({accessKey, expiresIn}) => {...} in JavaScript.
2021-02-24 21:20:39 +00:00
J
d60c3183f7 gcp: lib spacing 2021-02-24 20:55:40 +00:00
J
03e99f52c9 gcp: make expiry relative
This indeed makes it easier on the Landscape side. It also makes it
easier to coerce from the JSON Google gives us, so a win all around.
2021-02-24 20:35:24 +00:00
J
713954a8bb gcp: mark for tokens, token-to-json 2021-02-24 19:30:49 +00:00
Ted Blackman
0452eb92f2 Merge branch 'release/next-sys' into HEAD 2021-02-24 13:26:51 -05:00
Ted Blackman
4297082966 language-server: fix parser 2021-02-24 13:07:45 -05:00
Liam Fitzgerald
7a8e16a2f2
Merge branch 'lf/not-your-mate' 2021-02-24 14:07:54 +10:00
Logan Allen
4753ba5506 push-hook: replace +should-proxy-update with +transform-proxy-update 2021-02-22 14:31:19 -06:00
Joe Bryan
9c9f0d68c4 test: report and continue on build failures 2021-02-19 20:36:05 -08:00
Liam Fitzgerald
2fc67f9bd3
metadata: do not generate previews for hidden groups 2021-02-19 16:58:31 +10:00
Ted Blackman
ad20ddb1d4 clay: added mark runes; can boot off solid pill 2021-02-17 14:31:20 -05:00
Logan Allen
f0a86b2de3 contact-store: add timestamp to %edit 2021-02-11 18:43:04 -06:00
matildepark
ff7913f1ca
Merge pull request #4326 from ryjm/jm/hark-read-all
hark-store: add %read-all support
2021-02-11 12:00:29 -05:00
ryjm
f5e4dc2423 hark-fe: add read all button 2021-02-11 08:48:13 -05:00
L
0b67d0c51e
Merge pull request #4407 from urbit/lf/member-met
metadata: use +perk in vip dejs
2021-02-10 12:42:39 -06:00
Liam Fitzgerald
00712b81c7
metadata: use +perk in vip dejs 2021-02-10 18:54:46 +10:00
Liam Fitzgerald
718b77f7c5
hooks: prettier %dbug output 2021-02-10 17:20:01 +10:00
Logan Allen
47706f1efb groups, settings, contacts: make them compile and run scries properly 2021-02-09 11:30:28 -06:00
Liam Fitzgerald
0350311882
Merge pull request #4391 from urbit/lf/loading-fix
ViewProfile: fix incorrect loading conditional
2021-02-09 13:31:27 +10:00
Liam Fitzgerald
e9344bf78d
contact-pull-hook: migrate old groups 2021-02-09 11:46:34 +10:00
Liam Fitzgerald
a5925a4842
metadata-hooks: do not request preview if we already have it 2021-02-08 12:07:32 +10:00
Liam Fitzgerald
579570ed42
drum: load %settings-store on boot and migrate 2021-02-03 17:57:44 +10:00
Liam Fitzgerald
22004a3ea2
contact-pull-hook: give nacks on subscription 2021-02-03 17:26:41 +10:00
Liam Fitzgerald
36202d5c86
contact-hooks: proxy %share and fix its mark validation 2021-02-03 14:53:32 +10:00