Commit Graph

24048 Commits

Author SHA1 Message Date
Philip Monk
6e3d1680a7
Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
matildepark
7d451a37b8
Merge pull request #4525 from urbit/jt/npm-publish
meta: publish interface packages when available
2021-03-02 12:11:14 -05:00
Jared Tobin
c20907f54e
meta: switch publish action to production mode
Targets it at master, drops the job dry-run flags.
2021-03-02 15:39:17 +04:00
Jared Tobin
ba426ef78d
meta: simplify yaml
'working-directory' can just be specified on-site.
2021-03-02 15:37:11 +04:00
Jared Tobin
cc345171f3
meta: tell action where package.jsons are 2021-03-02 15:34:46 +04:00
Jared Tobin
8d938e205b
meta: publish interface packages when available
Adds a workflow that, on every push to master, will publish new versions
of interface subpackages to the NPM registry if any are available.

Staged to trigger on a test branch for now.
2021-03-02 15:31:06 +04:00
Jared Tobin
522393fda8
Merge pull request #4518 from urbit/jt/ops-merge
meta: adjust merge operations
2021-03-02 09:45:34 +04:00
Jōshin
b7583bf3e2
Merge pull request #4484 from urbit/jo/gcp-settings-store
GCP storage support
2021-03-01 18:01:07 -08:00
J
359896a23d interface: fix a few type imports
Missed these in the initial pass, found them by looking at "Files
Changed" in the Github UI.
2021-03-01 22:38:20 +00:00
J
35089f6656 interface: basic error handling on upload failures 2021-03-01 22:28:29 +00:00
J
af9e829464 interface: correct useEffect memo 2021-03-01 22:14:41 +00:00
J
f85ef9fcb4 interface: storage prop unifying gcp and s3
N.B. this boldly assumes that store state will always contain a valid
storage element that will contain gcp and s3 elements. This seems like a
fair assumption.
2021-03-01 22:14:19 +00:00
J
ce1c69e0d1 interface: braces around if statements 2021-03-01 21:36:00 +00:00
Jared Tobin
a51d95d806
meta: adjust merge operations
Adds a 'merge-release' workflow that runs on any push to a release
branch.  At present the only job merges the triggering branch to
'ops-tlon'.

Also renames the 'merge' workflow to 'merge-master' to distinguish it
appropriately.
2021-03-01 18:46:02 +04:00
J
c66c197936 interface: fix regression in canUpload 2021-02-27 00:25:17 +00:00
J
d8a7ee56e1 interface: fix field name that broke GCP support
Tests would be great, wouldn't they...
2021-02-27 00:08:51 +00:00
J
c1b259af5b interface, gcp: don't spam the console with 500s
Options here were: make the get-token thread try to return a unit, or
write a different thread to check whether GCP Storage seemed to be
configured and poll on that thread, or move the whole thing into a Gall
app.

The compromise between time-to-implement and overall cleanliness seemed
to be to write a different thread that just checks whether the settings
fields have been poked. Unfortunately this means GcpManager is now a
somewhat hefty JavaScript state machine.

Took out the logic to check whether S3 was configured in GcpManager,
since it was really only there to prevent spamming the console with
500s. If you have both S3 and GCP Storage configured for some reason,
you will now use GCP per the logic in useStorage.
2021-02-26 23:42:57 +00:00
J
040d8c06ae interface: fix S3 canUpload logic
s3.credentials is always set, but the fields are all '' if s3 is not
configured. So prior to this change, if the user had configured an
active bucket, they would always be shown an upload dialog even if they
had no storage configured.
2021-02-26 22:12:52 +00:00
J
347d51fde9 interface: cleaner API, robust GcpManager retry
GcpApi now acts like other APIs.

Since GcpManager can no longer get at the token exipry by inspecting the
raw update, it must depend on the global store instead. This also means
it can check whether the user has configured S3, and not try to refresh
the token in that case.

In the case where no storage is configured, this will spam the console
with request failures since the thread returns 500 if there is no token.
Perhaps this is a good argument for making  the thread return a unit.
2021-02-26 22:10:15 +00:00
J
723a5a050e interface: check accessKey !== undefined
Also make it type-level optional rather than using explicit null.

Perhaps one day we will want to use undefined to denote "the thread
hasn't returned yet" and null for "GCP Storage is not configured."
Perhaps.
2021-02-26 20:29:05 +00:00
J
6b3397bd9f interface: supports both S3 and GCP Storage
The S3 client has another layer of indirection we missed. To support it
expediently, we just make the promise() method on GcpUpload do all the
work in GcpClient.
2021-02-26 20:18:40 +00:00
J
6ec574d32b interface: GcpManager fixes 2021-02-26 20:18:07 +00:00
janeway
6bcbbf8f1a
glob: update to 0v5.ip41o.9jcdb.4jb1f.sd508.fdssj 2021-02-26 17:07:59 +10:00
Liam Fitzgerald
8c6f43f10e
Merge remote-tracking branch 'origin/release/next-js' 2021-02-26 16:57:19 +10:00
Liam Fitzgerald
76733e1072
Merge branch 'lf/read-all-fix' 2021-02-26 16:56:58 +10:00
Liam Fitzgerald
4f62de33a3
Merge remote-tracking branch 'origin/ixv/settings-type' 2021-02-26 16:56:15 +10:00
Ted Blackman
04ea4c78b2
ames: +on-hear-shut remove dead code 2021-02-26 16:55:26 +10:00
Ted Blackman
ccea39f865
ames: fix comet handshake 2021-02-26 16:55:24 +10:00
janeway-bot
eeabeb2a01
Merge 4c8d2dd237 into release/next-js 2021-02-26 10:24:12 +04:00
Jared Tobin
4c8d2dd237
Merge pull request #4508 from urbit/lf/actions-ops
meta: automatically deploy group-timer
2021-02-26 10:23:16 +04:00
matildepark
285a8a9173
Merge pull request #4503 from urbit/mp/links/double-validate
links: enforce valid URI on render
2021-02-25 22:22:48 -05:00
matildepark
29b4d2bbd4
Merge pull request #4501 from urbit/mp/leap/status-truncate
leap: truncate statuses
2021-02-25 22:22:32 -05:00
matildepark
ec483143f8
Merge pull request #4500 from urbit/revert-4224-mp/landscape/patp-punctuation
Revert "landscape: allow most patp punctation in tokenize"
2021-02-25 22:22:15 -05:00
matildepark
ef3601e9be
Merge pull request #4499 from urbit/mp/dms/render-groups
ResourceSkeleton: render group DM members
2021-02-25 22:21:59 -05:00
matildepark
0744f6ecab
Merge pull request #4498 from urbit/mp/groups/truncate-description
ResourceSkeleton: flex and truncate description
2021-02-25 22:21:41 -05:00
matildepark
322d6e9a41
Merge pull request #4507 from urbit/mp/landscape/misc
landscape: grabbag
2021-02-25 22:20:12 -05:00
Liam Fitzgerald
9ecc426820
meta: automatically merge master into ops/group-timer 2021-02-26 11:58:38 +10:00
Liam Fitzgerald
23805b4dde
meta: automatically glob and deploy ops/group-timer on push 2021-02-26 11:58:08 +10:00
matildepark
72aa7f5aee
Merge pull request #4496 from tylershuster/api-parity
api: brought to parity with livenet
2021-02-25 20:30:57 -05:00
matildepark
79d7653cf5
Merge pull request #4497 from tylershuster/http-api-eventsource
http-api: changed eventsource tool
2021-02-25 20:29:08 -05:00
Tyler Brown Cifu Shuster
7a8b8ec718 npm/http-api: ignore build examples 2021-02-25 17:17:07 -08:00
Tyler Brown Cifu Shuster
20c6ecae41 ignore example js 2021-02-25 17:16:27 -08:00
J
92dd46b176 GcpClient: remove unused BASE_URL 2021-02-26 00:49:57 +00:00
J
1c0d8e524e interface: thread gcp through props
Basically just a grep for 's3', and I added gcp wherever it looked like
I ought to.
2021-02-26 00:38:01 +00:00
Matilde Park
fef99fcf21 GroupSearch, ShipSearch: use cursor: pointer 2021-02-25 19:20:26 -05:00
Matilde Park
2ed7759864 ChannelPopoverRoutes: add rootUrl type 2021-02-25 19:19:10 -05:00
Matilde Park
f8d8e250c9 GroupPane: description defaults to regular font size 2021-02-25 19:18:48 -05:00
Matilde Park
75c90ea4a5 landscape: add border prop to loading
Prevents borders showing when loading channels.

Also spaces the text beside the spinner.
2021-02-25 19:18:29 -05:00
Matilde Park
8ba29acc15 landscape: redirect properly on channel archive
Previously landed on a crash.
2021-02-25 19:17:45 -05:00
J
11a58115b0 interface: implement useStorage and withStorage
useS3 and withS3 are now gone. Storage should work with both GCP and S3,
preferring GCP if available and falling back.
2021-02-26 00:07:15 +00:00