Alexis Sellier
ee513ccf7e
node: Complete the "relay" seed test
...
These are the final changes to get the "relay" scenario passing.
There are still some issues left, though it's done as far as the
test is concerned.
2023-02-14 20:31:40 +01:00
Fintan Halpenny
e7c929898a
cli: add Identity::current to output
...
Add the resulting SHA of the new Identity when performing `rad id
commit`.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-13 18:02:23 +01:00
Fintan Halpenny
6b674a38c1
cli: rad id example
...
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-13 13:50:52 +00:00
Fintan Halpenny
b257f482cb
cli: rad id command
...
Introduces the `rad id` subcommand for interacting with the identity
proposal cob.
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-13 13:50:52 +00:00
Sebastian Martinez
881e9af219
httpd: Add `assignees` to `Issues::create`
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-02-13 13:47:15 +01:00
Alexis Sellier
3ae826dee2
node: Add clone test with seed acting as relay
2023-02-13 10:30:04 +01:00
Alexis Sellier
3e7761740f
node: Rely on inventory announcement in `rad init`
2023-02-13 09:59:44 +01:00
Alexis Sellier
8c7c2242cc
cli: Announce fork in `rad clone`
...
This allows peers to know about its existence.
2023-02-12 17:11:43 +01:00
Alexis Sellier
27d0c8f235
cli: Track projects we initialize
2023-02-12 16:48:46 +01:00
xphoniex
bdc0ab9881
Update `radicle-git` and `radicle-surf`
...
Signed-off-by: xphoniex <dj.2dixx@gmail.com>
2023-02-10 22:14:50 +01:00
Adam Szkoda
93ba7f593c
cli: Fix a test failing on macos: rad_checkout
2023-02-10 15:01:06 +01:00
Alexis Sellier
e1986e4570
cli: Add better error for test not found
2023-02-10 12:56:11 +01:00
Alexis Sellier
b2dbf12862
cli: Fix `rad rm` command
2023-02-10 12:56:11 +01:00
Sebastian Martinez
a57b33c785
httpd: Add `api::test::patch` request method
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-02-10 12:17:03 +01:00
Sebastian Martinez
5c491284dd
cli: Add `LANG` env var to tests
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-02-10 12:16:46 +01:00
Rūdolfs Ošiņš
f1de61ad88
cli: Allow specifying protocol for `rad web`
...
This also adds an informative text instructing the user what clicking
the link does and improves the CLI argument names.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-02-09 16:51:32 +01:00
Slack Coder
02c07d7be1
cli: Test rad-clone is deterministic
...
The last commit of a newly cloned repository should remain untouched by
making `Node::project()` use a repository fixture instead of a randomly
generated one.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-09 16:49:52 +01:00
Slack Coder
ac812d7834
rad: Add comment `reply-to`
...
Allow replying to patch and issue comments using `rad comment --reply-to` option.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-09 16:42:47 +01:00
Alexis Sellier
b108342fab
cli: Test clone failure for unknown repo
2023-02-08 21:28:59 +01:00
Alexis Sellier
69ac8be8fd
node: Update local routing table on announce
2023-02-08 21:28:49 +01:00
Alexis Sellier
9177e67de6
cli: Use same project for clone test
2023-02-08 20:21:35 +01:00
Alexis Sellier
f01735bef6
cli: Have `init` trigger routing table updates
...
Before this change, nodes had to be restarted to announce newly
initialized projects.
2023-02-08 16:29:42 +01:00
Rūdolfs Ošiņš
803d36f0f6
cli: Use localhost for rad web
...
Since sessionStorage and localStorage use protocol + host + port as scope,
we want to align this between the CLI and radicle-interface. Using
localhost has other benefits as well, because browsers treat it
differently when doing requests from the deployed app which is being
served via https.
Signed-off-by: Rūdolfs Ošiņš <rudolfs@osins.org>
2023-02-07 21:01:27 +01:00
Slack Coder
ed9900b5ac
cli: Support patch commenting
...
Allow commenting on a patch as well an issue.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-07 11:16:59 +01:00
Alexis Sellier
7d588fc7ab
cli: Rename "program" to "command"
2023-02-07 10:46:12 +01:00
Alexis Sellier
2649e9c6fe
cli: Add `rad-clone` test
2023-02-07 10:46:12 +01:00
Alexis Sellier
b542ddcd6c
node: Create shared test environment
...
We move and combine some of the test code, so that the CLI tests and
node tests use shared code.
2023-02-07 10:46:12 +01:00
Alexis Sellier
abb288e742
cli: Use constant for env vars
2023-02-07 10:46:12 +01:00
Alexis Sellier
45e31a5192
Communicate fetch results through control socket
...
This allows a CLI to report to the user what fetch requests were
fulfilled, and which ones failed.
2023-02-07 10:46:12 +01:00
Slack Coder
3c202564bf
cli: split into patch::create and patch::update
...
Simplify codebase by splitting patch::create::run() into patch::create::run() and
patch::update::run().
Patch has the subcommands `create` and `update` but both use the same
method to do the heavy lifting. Spitting the code allows us to detangle
the code path making it easier to follow.
Also, reduce cognitive load by minimizing the amount of variables used
and isolating them to utility functions. For instance, `head_branch` can be passed to
these methods instead of `head_oid` and `head_branch`.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-06 13:53:31 +01:00
Slack Coder
215abde9e6
cli: cover `rad patch update` in doc test
...
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-02-06 13:49:41 +01:00
Fintan Halpenny
3f48c2c516
Rust 1.67
...
Rust 1.67 was announced[0]. Update the necessary files for running
1.67 and fix the clippy suggestions for string interpolation.
[0]: https://blog.rust-lang.org/2023/01/26/Rust-1.67.0.html
Signed-off-by: Fintan Halpenny <fintan.halpenny@gmail.com>
X-Clacks-Overhead: GNU Terry Pratchett
2023-02-04 19:30:29 +01:00
Alexis Sellier
f1a6a86689
node: Check refs when getting local inventory
...
If we don't do this, we're going to be returning broken repos.
2023-01-30 11:38:00 +01:00
Alexis Sellier
b92dc59204
node: Turn off `--atomic` when not supported
2023-01-29 18:22:41 +01:00
Sebastian Martinez
f07a875ce1
Add web-based authentication
...
Signed-off-by: Sebastian Martinez <me@sebastinez.dev>
2023-01-27 17:23:05 +01:00
Alexis Sellier
5e955d39d0
cob: Add 'description' to `Revision`
...
Simplifies the code a little.
2023-01-26 17:37:58 +01:00
Alexis Sellier
bb3787258a
cob: Refactor `Thread` methods
2023-01-26 16:20:22 +01:00
Alexis Sellier
30e9d6103c
Cleanup `clone` code
...
Remove a bunch of different instances of it.
2023-01-25 17:51:49 +01:00
Alexis Sellier
8279ef72fd
cli: Fix output of checkout command
2023-01-25 17:51:49 +01:00
Alexis Sellier
fdad6358fc
cli: Correctly setup remote tracking branch
...
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2023-01-25 17:51:49 +01:00
Alexis Sellier
0a9bb23e4e
Replace `RAD_DEBUG` with `RAD_SEED`
...
The latter is strictly more powerful.
2023-01-25 17:09:16 +01:00
Alexis Sellier
b1012014fe
Remove old `Profile::paths` function
2023-01-25 15:35:24 +01:00
Alexis Sellier
963ad3c3d7
Get `rad clone` working correctly
2023-01-25 11:35:20 +01:00
Alexis Sellier
fd5ac7f6af
cli: Minor cleanups
2023-01-25 10:21:57 +01:00
Alexis Sellier
bb135b64b3
cli: Get `rad-checkout` working properly
2023-01-24 14:54:56 +01:00
Alexis Sellier
1f06f5340f
Make `Id` to string conversion more explicit
...
Two types of conversion: `canonical`, which is just the base58 encoding,
and `urn` which is like canonical, but includes `rad:`.
2023-01-24 13:49:03 +01:00
Alexis Sellier
b78790622f
cli: Improve test utilities
...
This will allow easy creation of multiple users with deterministic keys.
Signed-off-by: Alexis Sellier <self@cloudhead.io>
2023-01-24 10:46:57 +01:00
Slack Coder
87ff1990c0
cli: Create terminal::cob
...
Use a new module, `terminal::cob`, to collect collaborative object code to
improve consistency.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-01-20 13:46:02 +01:00
Slack Coder
a0588460f3
cli: More informative `rad patch show`
...
Show entire patch commit history using `rad log --patch`.
2023-01-20 13:46:02 +01:00
Slack Coder
2295bb4ea4
cli: add `rad patch show`
...
Show patch information with `rad patch show`.
Signed-off-by: Slack Coder <slackcoder@server.ky>
2023-01-20 13:46:02 +01:00