-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Implement bidirectional links between Commitment.satisfies & Intent.satisfiedBy #19
Comments
Agree.
Up to you guys of course, and I'm kind of like you @pospi , it would be nice, but not essential. A couple thoughts. One step farther, another thing that is part of committing to an intent is that if the commitment completely satisfies the intent, then the intent can be marked finished=true. Another possible convenience, maybe going too far, is that probably most of the time, the satisfiedQuantity will be the same as the commitment quantity, so if not sent in as a parameter, that could be just assumed if you have the intent that was satisfied. Same with fulfilledQuantity and the event quantity. Not recommending in any direction, just providing info. |
I see
|
No, |
Completed in #32. |
This is a good first relationship to implement as it deals with same-DNA field links. Implementation requires:
Commitment
&Intent
in the planning DNASatisfaction
records as sub-records of a newCommitment
Satisfaction
records as sub-records of a newIntent
Satisfaction
Commitment
&Intent
(non-relational fields only)Satisfaction
Satisfaction
Commitment
&Intent
I don't think there is any need to implement an ability to modify
Satisfaction
records via manipulation ofCommitment
orIntent
- the client needs to be responsible for tracking which records to CREATE / DELETE anyway, so at that point they might as well call UPDATE / DELETE onSatisfaction
directly. I do still think it's a nice convenience thing to have an ability to author them atCommitment
/Intent
logging time but am open to having my mind changed on that. I thought if nothing else it would be a good way to encourage splitting abstractions out.We also need to define a naming convention for our zome API methods going forward, part of this issue is deciding on those naming conventions.
(BTW: if you think we need to define acceptance criteria for this and other issues I'm about to log, please let me know; otherwise happy for those tests to emerge as makes sense.)
The text was updated successfully, but these errors were encountered: