awatson1978 / ckcc

California Kids Cancer Comparison - Demo
4 stars 3 forks source link

User.getCollaborations() #6

Closed awatson1978 closed 9 years ago

tedgoldstein commented 9 years ago

This should be a server only method. As it gives away private details.

Sent from my iPhone

On Sep 30, 2015, at 7:21 PM, Abigail Watson notifications@github.com wrote:

— Reply to this email directly or view it on GitHub.

awatson1978 commented 9 years ago

What if a user wants to check their own collaboration permissions? Meteor.userId() exists on the client, so we could guarantee that a user can check their own collaborations, but not another person's. That would give us latency compensation and be a huge performance boost for a number of use cases.

tedgoldstein commented 9 years ago

Thats fine. Ted

On Sep 30, 2015, at 11:23 PM, Abigail Watson notifications@github.com wrote:

What if a user wants to check their own collaboration permissions? Meteor.userId() exists on the client, so we could guarantee that a user can check their own collaborations, but not another person's. That would give us latency compensation and be a huge performance boost for a number of use cases.

— Reply to this email directly or view it on GitHub https://github.com/awatson1978/ckcc/issues/6#issuecomment-144605521.

awatson1978 commented 9 years ago

Looks like this is working again.

I20151010-14:04:22.855(-7)? testGetCollaborations
I20151010-14:04:22.856(-7)? getProfileCollaborations {"_id":"jLugGxYz9Rdtge87m","createdAt":"2015-10-10T17:27:59.763Z","services":{"password":{"bcrypt":"$2a$10$XRRZQ3cUc.oofiUiXJ7H4eFGwKpH/a9VcQVD1irjSCAXGZdKreeRO"},"resume":{"loginTokens":[]}},"emails":[{"address":"awatson1978@gmail.com","verified":false}],"profile":{"fullName":"Abigail Watson","collaborations":[]}}
I20151010-14:04:22.856(-7)? collaborationLookupQueue [ 'awatson1978@gmail.com' ]
I20151010-14:04:22.857(-7)? found a matching record! { _id: 'TG4xRd85wWuGgTrgP', name: 'empower partnerships' }
I20151010-14:04:22.857(-7)? found a matching record! { _id: '3frEGwh7Pjxre4oi3', name: 'whiteboard partnerships' }
I20151010-14:04:22.857(-7)? found a matching record! { _id: 'LcEbXK4vEckYaxcdn', name: 'iterate users' }
I20151010-14:04:22.858(-7)? found a matching record! { _id: 'ojBfMmsSSkfztPcBy', name: 'brand content' }
I20151010-14:04:22.858(-7)? found a matching record! { _id: 'Ye6a9vYacchj2Ju7J', name: 'implement infrastructures' }
I20151010-14:04:22.858(-7)? found a matching record! { _id: 'za7tKkcHAw8rkSurX', name: 'whiteboard functionalities' }
I20151010-14:04:22.858(-7)? found a matching record! { _id: 'AitHsWuxhH6dZJiwT', name: 'implement methodologies' }
I20151010-14:04:22.858(-7)? found a matching record! { _id: 'xyeoYZcf5gDkZcfpc', name: 'repurpose schemas' }
I20151010-14:04:22.859(-7)? found a matching record! { _id: 'zKwaCGskrQiNyCYdW', name: 'strategize users' }
I20151010-14:04:22.859(-7)? found a matching record! { _id: 'YTTdBQAyEtkjyqheb',
I20151010-14:04:22.859(-7)?   name: 'envisioneer infrastructures' }
I20151010-14:04:22.859(-7)? found a matching record! { _id: 'uqosAnbdxQ5To6wD3', name: 'Test' }
I20151010-14:04:22.866(-7)? collaborationSet { 'empower partnerships': 'TG4xRd85wWuGgTrgP',
I20151010-14:04:22.866(-7)?   'whiteboard partnerships': '3frEGwh7Pjxre4oi3',
I20151010-14:04:22.866(-7)?   'iterate users': 'LcEbXK4vEckYaxcdn',
I20151010-14:04:22.867(-7)?   'brand content': 'ojBfMmsSSkfztPcBy',
I20151010-14:04:22.867(-7)?   'implement infrastructures': 'Ye6a9vYacchj2Ju7J',
I20151010-14:04:22.867(-7)?   'whiteboard functionalities': 'za7tKkcHAw8rkSurX',
I20151010-14:04:22.867(-7)?   'implement methodologies': 'AitHsWuxhH6dZJiwT',
I20151010-14:04:22.867(-7)?   'repurpose schemas': 'xyeoYZcf5gDkZcfpc',
I20151010-14:04:22.867(-7)?   'strategize users': 'zKwaCGskrQiNyCYdW',
I20151010-14:04:22.867(-7)?   'envisioneer infrastructures': 'YTTdBQAyEtkjyqheb',
I20151010-14:04:22.867(-7)?   Test: 'uqosAnbdxQ5To6wD3' }
I20151010-14:04:22.867(-7)? sortedCollaborations [ 'Test',
I20151010-14:04:22.867(-7)?   'brand content',
I20151010-14:04:22.868(-7)?   'empower partnerships',
I20151010-14:04:22.868(-7)?   'envisioneer infrastructures',
I20151010-14:04:22.868(-7)?   'implement infrastructures',
I20151010-14:04:22.868(-7)?   'implement methodologies',
I20151010-14:04:22.868(-7)?   'iterate users',
I20151010-14:04:22.868(-7)?   'repurpose schemas',
I20151010-14:04:22.868(-7)?   'strategize users',
I20151010-14:04:22.868(-7)?   'whiteboard functionalities',
I20151010-14:04:22.869(-7)?   'whiteboard partnerships' ]
I20151010-14:04:22.874(-7)? getProfileCollaborations [ 'Test',
I20151010-14:04:22.874(-7)?   'brand content',
I20151010-14:04:22.874(-7)?   'empower partnerships',
I20151010-14:04:22.874(-7)?   'envisioneer infrastructures',
I20151010-14:04:22.874(-7)?   'implement infrastructures',
I20151010-14:04:22.874(-7)?   'implement methodologies',
I20151010-14:04:22.874(-7)?   'iterate users',
I20151010-14:04:22.874(-7)?   'repurpose schemas',
I20151010-14:04:22.875(-7)?   'strategize users',
I20151010-14:04:22.875(-7)?   'whiteboard functionalities',
I20151010-14:04:22.875(-7)?   'whiteboard partnerships' ]
awatson1978 commented 9 years ago

https://github.com/awatson1978/clinical-user-model/commit/c1e16346e8c12a35645a3188205daaf1223a67db