Skip to content
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

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from

Conversation

enricostano
Copy link
Contributor

@enricostano enricostano commented Aug 16, 2017

Due to some design restriction decided when TO users could only pertain to one time bank, the User and Member 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.

@movements = @member.movements.order("created_at DESC").page(params[:page]).
per(10)
@user = User.find_by_id(params[:id])
raise unless @user
Copy link
Contributor Author

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\">")
Copy link
Contributor Author

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?

Copy link
Contributor

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>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

member.member_uid?

@markets markets added the wip label Jun 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants