Open jameswestnz opened 8 years ago
I have assumed that profiles will be a permanent part of all account requests. I.e. this information is always included in get requests.
No I wouldn’t do that. I’d agree with account.signUp
, but for account.signIn
I’d suggest to add an include
argument which can be set to profile
to include it in the response.
I think the account.profile
methods should be fine. Only thing missing in your TODOs is updating docs
can you add a test to hoodie-account-server/tests/integration/routes/account/put-account-test.js
with payload.data.attributes.profile
set to something like fullname: 'Pat Doe'
? Ideally to post-accounts-test.js
, too. It would be great to test that at the end the _users
doc will have profile.fullname
set to Pat Doe
I’d maybe add another integration test: sign-up-with-profile-test.js
to make sure the behavior works and won’t break in future. Otherwise looking good 👍
@gr2m have added (server) a test here: https://github.com/hoodiehq/hoodie-account-server/pull/158/commits/f69ffa927cdea65d36b7ed2e721245dcc7d9974f
Keen on feedback before I do the PATCH test just in case :)
Some notes on this PR:
profile
requests have been dealt to.To do:
hoodie-account-client
hoodie-account
More than happy for someone to add to this PR ;)
closes https://github.com/hoodiehq/hoodie-account-client/issues/11