-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add roles settings #246
Add roles settings #246
Conversation
@@ -1071,22 +1070,22 @@ export class TryCpConductor implements IConductor { | |||
const agent_key = | |||
appForAgent.agentPubKey ?? | |||
(await this.adminWs().generateAgentPubKey()); | |||
const membrane_proofs = appForAgent.membraneProofs ?? {}; | |||
const roles_settings = appForAgent.rolesSettings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is is safe to assume that appForAgent.roleSettings
will not be null
or undefined
and we do not need a fallback value anymore?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
undefined is a valid input to the InstallAppPayload
so this should be fine either way.
{ progenitor: progenitorKey } | ||
); | ||
t.equal(provisionedCell.dna_modifiers.origin_time, originTime); | ||
t.deepEqual(provisionedCell.dna_modifiers.quantum_time, quantumTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if its overkill but should we add an assertion that the membrane proof is commited to our chain?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's overkill, because we're not testing the correctness of Holochain here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM with suggestions
{ progenitor: progenitorKey } | ||
); | ||
t.equal(provisionedCell.dna_modifiers.origin_time, originTime); | ||
t.deepEqual(provisionedCell.dna_modifiers.quantum_time, quantumTime); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that's overkill, because we're not testing the correctness of Holochain here.
Thank you! Addressed your suggestions @jost-s and will merge if the tests pass. |
* add new roles-settings field * fix role name * added changelog * buump holochain_conductor_api * address suggestions
* Backport Add roles settings (#246) * add new roles-settings field * fix role name * added changelog * buump holochain_conductor_api * address suggestions * add missing import
No description provided.