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

New reports with full data of users, posts, transfers #259

Closed
wants to merge 5 commits into from

Conversation

sseerrggii
Copy link
Contributor

Permite crear nuevos reports de usuarios, posts y transferencias con toda la información relevante de la base de datos para administradores.

Posts y Transfers deben ir relacionados con member uid para poder hacer las relaciones.

@sseerrggii sseerrggii added the wip label Aug 11, 2017
else
''
end
end
Copy link
Contributor

Choose a reason for hiding this comment

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

def nil_to_empty(field)
  return '' unless field
  field.to_formatted_s(:db)
end

<%= t "application.navbar.tags" %>
<% end %>
</li>
<li>
Copy link
Contributor

Choose a reason for hiding this comment

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

?

<thead>
<tr>
<!-- %th= User.human_attribute_name(:registration_number)
-->
Copy link
Contributor

Choose a reason for hiding this comment

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

?

Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥

@sseerrggii
Copy link
Contributor Author

@sauloperez I need help with all transfer report

@sauloperez
Copy link
Collaborator

sauloperez commented Jan 11, 2018

Ok, I'll take this one over. But it might take me a while to get to it.

@sseerrggii sseerrggii removed the wip label Apr 26, 2018
@sseerrggii
Copy link
Contributor Author

Almost a year later ... I finished! Code review please!

Be kindly please ❤️

Copy link
Collaborator

@sauloperez sauloperez left a comment

Choose a reason for hiding this comment

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

I see quite a lot of easy-to-spot duplication but that's not a big deal now. Pretty good @sseerrggii 👏

def user_complete_list
@members = current_organization.members.active.
includes(:user).
order("members.member_uid")
Copy link
Collaborator

Choose a reason for hiding this comment

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

I would stick to either multiline or single line but not both styles.

active.
includes(:user, :category).
to_a.
sort_by { "posts.id" }
Copy link
Collaborator

Choose a reason for hiding this comment

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

here as well

@transfers = current_organization.all_transfers.
includes(movements: {account: :accountable}).
order("transfers.created_at DESC").
uniq
Copy link
Collaborator

Choose a reason for hiding this comment

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

and here

<thead>
<tr>
<!-- %th= User.human_attribute_name(:registration_number)
-->
Copy link
Collaborator

Choose a reason for hiding this comment

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

🔥

@enricostano
Copy link
Contributor

@sseerrggii 👏 👏 👏

You "only" need to add tests...

@sauloperez sauloperez removed their assignment May 22, 2018
@sseerrggii sseerrggii closed this Nov 5, 2020
@sseerrggii sseerrggii mentioned this pull request Mar 9, 2021
3 tasks
@markets markets mentioned this pull request Mar 13, 2021
@markets markets deleted the feature/new-reports branch March 13, 2021 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants