Skip to content
This repository has been archived by the owner on Feb 8, 2018. It is now read-only.

Show dues in team pages #3860

Closed
wants to merge 4 commits into from
Closed

Show dues in team pages #3860

wants to merge 4 commits into from

Conversation

rorepo
Copy link
Contributor

@rorepo rorepo commented Dec 1, 2015

Changes to show due values, if any, on the teams list and individual team pages.

The value shown is from a new column due in table teams, updated with the summary of values from table payment_instructions.

@chadwhitacre
Copy link
Contributor

CODE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 😍

@chadwhitacre
Copy link
Contributor

@rorepo Did you forget to commit branch.sql?

@rorepo
Copy link
Contributor Author

rorepo commented Dec 2, 2015

Oops! Done now :)

@chadwhitacre
Copy link
Contributor

!m @rorepo

@chadwhitacre
Copy link
Contributor

This PR inspired #3862. :-)

@chadwhitacre
Copy link
Contributor

I assume this is ready for review, ya?

@chadwhitacre
Copy link
Contributor

screen shot 2015-12-02 at 10 41 04 am

A few things:

  • Let's show ndue along with due. Looks goofy to have that cell blank.
  • On the Team page, let's show "Due" always, even if it's zero, as we do for the other values.
  • Do we need to backfill due? It's zero for everyone. Should it be?

@chadwhitacre
Copy link
Contributor

Also:

  • Let's tweak the vertical whitespace on the homepage tables so it fits better now that it has three lines.

@rorepo
Copy link
Contributor Author

rorepo commented Dec 6, 2015

Not sure about the backfill bit, but a thought here - this column is now being populated in participant _update_due, called within set_payment_instruction - perhaps it would be a good idea to include this in the payday run as well.

Made all the other changes suggested.

@rohitpaulk
Copy link
Contributor

I'm 👎 on this. 'Dues' is not a value that we should be displaying across the leaderboard/general UI. I think it only makes sense to expose this on team specific pages (the receiving/history page, in particular).

The cached value for 'receiving' and 'nreceiving_from' already factors in the 'dues' component.

@chadwhitacre
Copy link
Contributor

'Dues' is not a value that we should be displaying across the leaderboard/general UI.

Fair point. The number we really want to show on the leaderboards is sharing, but that's a long way off.

You okay to close this, @rorepo? Or do you want to make a case for displaying "due" in this way instead of the proposal on #3873?

@rorepo
Copy link
Contributor Author

rorepo commented Dec 15, 2015

Happy to defer to the old-timers :-)

Will close this. I take it I then delete the branch as well?

@rorepo rorepo closed this Dec 16, 2015
@chadwhitacre chadwhitacre deleted the show-due-in-team-pages branch December 2, 2016 21:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants