Skip to content

Commit

Permalink
feat:(backport) Add roles settings (#247)
Browse files Browse the repository at this point in the history
* Backport Add roles settings (#246)

* add new roles-settings field

* fix role name

* added changelog

* buump holochain_conductor_api

* address suggestions

* add missing import
  • Loading branch information
matthme authored Dec 2, 2024
1 parent e29b382 commit 301d933
Show file tree
Hide file tree
Showing 16 changed files with 331 additions and 164 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
- Disable tests with unstable features.

### Added
- Support new `roles_settings` field in `AppOptions`.
### Removed
### Changed
- Update dependencies to Holochain v0.4.0-rc.0
- Update dependencies to Holochain v0.4.0-rc.2
### Fixed

## 2024-10-02: v0.17.0-dev.6
Expand Down Expand Up @@ -221,7 +222,7 @@ Compatible with Holochain v0.1.0
## [0.6.2]

### Added
- feat(common): add app and role id options to hApp installation
- feat(common): add app and role id options to hApp installation
- feat(common): add mem-proofs to installAgentsHapps (#139)
- feat(trycp): add multiple clients by array of URLs
- feat(trycp): add multiple clients/players
Expand Down
95 changes: 68 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion crates/trycp_server/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ trycp_api = { workspace = true }
url = { workspace = true }

[dev-dependencies]
holochain_conductor_api = "0.4.0-rc.1"
holochain_conductor_api = "0.4.0-rc.2"
rand = "0.8"
serde_yaml = "0.9"
trycp_client = { path = "../trycp_client" }
12 changes: 6 additions & 6 deletions docs/tryorama.appoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,39 +75,39 @@ _(Optional)_ App ID to override the app manifest's app name.
</td></tr>
<tr><td>

[membraneProofs?](./tryorama.appoptions.membraneproofs.md)
[networkSeed?](./tryorama.appoptions.networkseed.md)


</td><td>


</td><td>

Record&lt;string, MembraneProof&gt;
string


</td><td>

_(Optional)_ Proofs of membership for the hApp.
_(Optional)_ A network seed to override the hApps' network seed.


</td></tr>
<tr><td>

[networkSeed?](./tryorama.appoptions.networkseed.md)
[rolesSettings?](./tryorama.appoptions.rolessettings.md)


</td><td>


</td><td>

string
RoleSettingsMap


</td><td>

_(Optional)_ A network seed to override the hApps' network seed.
_(Optional)_ Role specific settings or modifiers that will override any settings in the hApp's dna manifest(s).


</td></tr>
Expand Down
13 changes: 0 additions & 13 deletions docs/tryorama.appoptions.membraneproofs.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/tryorama.appoptions.rolessettings.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@holochain/tryorama](./tryorama.md) &gt; [AppOptions](./tryorama.appoptions.md) &gt; [rolesSettings](./tryorama.appoptions.rolessettings.md)

## AppOptions.rolesSettings property

Role specific settings or modifiers that will override any settings in the hApp's dna manifest(s).

**Signature:**

```typescript
rolesSettings?: RoleSettingsMap;
```
Loading

0 comments on commit 301d933

Please sign in to comment.