Tonterias2 / spingularchatsql6

Chat service created with Jhipster V6.1.0 and PostgreSQL
https://spingular.herokuapp.com
1 stars 5 forks source link

User Image: New Photo Entity #13

Open Tonterias opened 5 years ago

Tonterias commented 5 years ago

A User should have another entity for his photo. Now it is mixed on the ChatUser, so we need to let the user access the ChatUser to change the photo, but that is a problem because they can mess with the relation to the JHIUser and cause a problem. Once separated the USER will not be able to Edit/Delete the ChatUser once it is created.

cchunduri commented 5 years ago

I don't think so we need to create another entity for store user profile image data. Because Jhipster User object itself contains a parameter called imgurl which can hold location to profile pic URL. All we need is a neat UI for uploading profile pic.

Tonterias commented 5 years ago

Ok, how would you do it? Would it be easier to create such IU?

I think the new Entity Photo #18 is a good approach because Jhipster will do all the programming for us, but if you think that your approach is easier / cleaner / faster. It is ok with me.

Thanks,