Radish alpha
h
rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5
Radicle Heartwood Protocol & Stack
Radicle
Git
Change default seeding scope to 'all'
Merged did:key:z6MksFqX...wzpT opened 2 years ago

This makes the default policy block with scope all. The good thing about this is that you don’t have to manage individual nodes in the beginning. You simply seed the repos you want, and everything is followed within those repos. This matches user expectations, as rad seed does what you expect it to do.

For open-policy seed nodes, it also means that simply changing block to allow from the default config is all you need.

This leaves the non-default followed scope as a more “advanced” setting, since it is much more cumbersome: it forces you to follow a user before you can see their issues/patches, which is not something most users expect coming from old-shcool forges.

4 files changed +4 -4 292ff019 664cf20c
modified radicle-cli/examples/rad-block.md
@@ -5,7 +5,7 @@ For instance, if our default policy is to seed, any unknown repository will
have its policy set to allow seeding:
```
$ rad inspect rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji --policy
-
Repository rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji is being seeded with scope `followed`
+
Repository rad:z42hL2jL4XNk6K8oHQaSWfMgCL7ji is being seeded with scope `all`
```

Since there is no policy specific to this repository, there's nothing to be
modified radicle-cli/examples/rad-config.md
@@ -46,7 +46,7 @@ $ rad config
      }
    },
    "policy": "block",
-
    "scope": "followed"
+
    "scope": "all"
  }
}
```
modified radicle-httpd/src/api/v1/profile.rs
@@ -108,7 +108,7 @@ mod routes {
                    }
                  },
                  "policy": "block",
-
                  "scope": "followed"
+
                  "scope": "all"
                }
              },
              "home": seed.profile.path()
modified radicle/src/node/policy.rs
@@ -95,9 +95,9 @@ impl TryFrom<&sqlite::Value> for Policy {
#[serde(rename_all = "camelCase")]
pub enum Scope {
    /// Seed remotes that are explicitly followed.
-
    #[default]
    Followed,
    /// Seed all remotes.
+
    #[default]
    All,
}