http: Change `/api/v1/node` version to node user agent
We used the RADICLE_VERSION env variable to display the node version,
which as of recently matched always the radicle-httpd version.
Since the separation this isnβt the case anymore, and the user agent
seems a more reliable metric.
π Preview π Workflow runs π Branch on GitHub
9 files changed
+29
-14
b0f3c631
β
f21a8016
modified config/default.json
@@ -1,7 +1,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified http-client/index.ts
@@ -94,7 +94,7 @@ export type Node = z.infer<typeof nodeSchema>;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api.rs
@@ -36,7 +36,7 @@ use crate::Options;
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle-httpd/src/api/v1/node.rs
@@ -7,12 +7,13 @@ use hyper::StatusCode;
|
|
|
|
|
|
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -35,6 +36,10 @@ pub fn router(ctx: Context) -> Router {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -49,7 +54,7 @@ async fn node_handler(State(ctx): State<Context>) -> impl IntoResponse {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified src/lib/utils.ts
@@ -21,6 +21,11 @@ export function formatShortSeedingPolicy(
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/views/nodes/View.svelte
@@ -8,6 +8,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -28,8 +29,8 @@
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
@@ -73,7 +74,7 @@
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -147,9 +148,13 @@
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified src/views/nodes/router.ts
@@ -22,7 +22,7 @@ export interface NodesLoadedRoute {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -54,8 +54,8 @@ export async function loadNodeRoute(
|
|
|
|
|
|
| - | |
|
|
| + | |
|
|
|
|
|
modified tests/e2e/landingPage.spec.ts
@@ -94,7 +94,7 @@ test("stored custom preferred seeds in local storage", async ({ page }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified tests/e2e/node.spec.ts
@@ -17,7 +17,7 @@ test("node metadata", async ({ page, peerManager }) => {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|