ShelbyTV / shelby_gt

Rails API services for Shelby GT
2 stars 0 forks source link

API does not return 'faux' attribute for all contexts in which it returns a user #175

Open iceberg901 opened 11 years ago

iceberg901 commented 11 years ago

The API returns the attribute faux for a user in the following contexts (not an exhaustive list):

/v1/user/:id /v1/dashboard (under the frame creators there is the attribute faux)

It does not return this attribute in the following contexts (again not an exhaustive list):

/v1/user/:id/rolls/following (roll creators do not have the attribute faux) /v1/roll/:id/frames (frame creators do not have the attribute faux)

Any of these contexts can be the front end's primary source of information for the user, and the front end always needs to know if the user is faux or not. So, in certain contexts the front end cannot currently determine this.

The 'faux' property should be returned with all user objects that come from the API.

iceberg901 commented 11 years ago

With 19e27c27072efc38b050c62ad5dc6014be5c63ca, added the faux attribute to creators on

Still NOT returning the faux attribute for roll creators on

and possibly other routes