adaptive-learning / proso-apps-js

AngularJs front-end modules for an adaptive learning system (depending on server https://github.com/adaptive-learning/proso-apps)
1 stars 1 forks source link

userService should be able to return information about another user #5

Closed slaweet closed 9 years ago

slaweet commented 9 years ago

The user should have set the public flag. The user will be specified by username, e.g. like this: userService.loadUser('slaweet')

thran commented 9 years ago

use userStatService.getStats(false, 'slaweet') or userStatService.getStatsPost(false, 'slaweet')

slaweet commented 9 years ago

Does userStatService.getStats return also info about the user such as first_name and last_name?

thran commented 9 years ago

Oh, I misunderstood issue. Please specify information about another user. We can attach name to userStats but I am not sure what is exact use of this feature...

slaweet commented 9 years ago

The use is "public profile", such as http://slepemapy.cz/u/slaweet the info there is: Points 2821 First name Vít Surname Stanislav