-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple members and users resources #260
base: develop
Are you sure you want to change the base?
Conversation
app/controllers/users_controller.rb
Outdated
@movements = @member.movements.order("created_at DESC").page(params[:page]). | ||
per(10) | ||
@user = User.find_by_id(params[:id]) | ||
raise unless @user |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise WAT!?
|
||
it 'renders a page with a link to give time to the user' do | ||
get :show, id: user | ||
expect(response.body).to include("<a href=\"/users/#{user.id}/give_time\">") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sseerrggii el boton "Give time" lo deberiamos dejar solo en el perfil de member
verdad? Lo deberiamos quitar del perfil de usuario ya que esta pagina ya no esta relacionada con ninguna organizacion. Correcto?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correcto! Solo en member 👍
@@ -3,7 +3,7 @@ | |||
<td> | |||
<img ng-src="{{user.avatar}}" height: "32px" width: "32px"> | |||
</td> | |||
<td>{{user.member_id}}</td> | |||
<td>{{user.member_uid}}</td> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
member.member_uid
?
Due to some design restriction decided when TO users could only pertain to one time bank, the
User
andMember
resources were coupled and often used interchangeably. Now that we want to introduce the concept of "discover a time bank near to you" and multiple memberships we need to refactor and break this coupling.This PR is related to #250, but independent. Although would be nice to merge this one first.