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
Conversation
else | ||
'' | ||
end | ||
end |
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.
def nil_to_empty(field)
return '' unless field
field.to_formatted_s(:db)
end
<%= t "application.navbar.tags" %> | ||
<% end %> | ||
</li> | ||
<li> |
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.
?
<thead> | ||
<tr> | ||
<!-- %th= User.human_attribute_name(:registration_number) | ||
--> |
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.
?
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.
🔥
@sauloperez I need help with all transfer report |
Ok, I'll take this one over. But it might take me a while to get to it. |
ec47a47
to
ca82ecf
Compare
Almost a year later ... I finished! Code review please! Be kindly please ❤️ |
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.
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") |
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.
I would stick to either multiline or single line but not both styles.
active. | ||
includes(:user, :category). | ||
to_a. | ||
sort_by { "posts.id" } |
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.
here as well
@transfers = current_organization.all_transfers. | ||
includes(movements: {account: :accountable}). | ||
order("transfers.created_at DESC"). | ||
uniq |
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.
and here
<thead> | ||
<tr> | ||
<!-- %th= User.human_attribute_name(:registration_number) | ||
--> |
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 👏 👏 👏 You "only" need to add tests... |
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.