Closed np closed 8 years ago
This ready for a first round of reviews. I still have some issues with my setup, so I've not ran the tests myself.
Notes from the phone call:
afterthough: ./docs/messaging.md still contains a few fixmes, and i think most of them are things that can be designed using nothing but common sense and general knowledge. @np, could you add that either here or in a separate PR?
afterthough: ./docs/messaging.md still contains a few fixmes, and i think most of them are things that can be designed using nothing but common sense and general knowledge. @np, could you add that either here or in a separate PR?
There is one FIXME about the return value of the new endpoint. I proposed
{"data": {}}
which, with some hindsight, doesn't make any sense. In your PR, the return value is Post '[JSON] ()
which (I think) corresponds to HTTP status code 204 No Content
and no body. I think this is very reasonable and the messaging.md should be adapted to document it.
Clarification:
- "recipient" can be "persona", "email", "group". how those are distinguished still needs to be designed.
I meant PersonaId
personaExternalUrl
here. This is available to the service and the default way to refer to a persona. (EDIT: the service uses external urls as a handle, thentos internall uses persona ids. Thanks @ChristianSi for correcting me.)
Nice to have: send email to ServiceGroup
.
There are Group
s of users (organising things in thentos) and ServiceGroup
s of personas (organising the same things on the service side, i.e. adhocracy). See ./docs/terminology.md for more details.
The service may want to send email to all (transitive) members of a service group. For this to work, I think there may be data types, transactions and actions missing involving the use (not creation and assignment) of service groups. Currently, we have:
grep persona_groups thentos-core/schema/schema.sql thentos-core/src/Thentos/Transaction.hs
grep group_tree thentos-core/schema/schema.sql thentos-core/src/Thentos/Transaction.hs
Please ping me if you want me to elaborate on this.
Updated earlier comment. Now:
I meant
PersonaId
personaExternalUrl
Hum, thanks to git rebase the date of this commit should have been now and not yesterday.
This is ready for another round of review @fisx @ChristianSi
Looks good. Just a few comments.
While my last commit ec0071a might be better for incremental review, I'm going to rebase onto master to make it a proper PR.
Actually I rebased but preserved the separate commits at least for now.
thanks for keeping the individual commits! losing them would have been annoying.
generally speaking, i was asked not to rebase in between incremental reviews, and now i see why :-). i'll assume though that the old commits haven't changed and will just read the last one.
I made two small commits. Could you check if you have any objections and otherwise merge?
LGTM
No support yet for the HTML optional body.