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

Return payday charges for finance reconciliation #4342

Closed
wants to merge 7 commits into from

Conversation

kaguillera
Copy link
Contributor

This is an return of daily payday charges for the financial reconciliation checking. It is different from the original by also breaking down by money processing vendors.

@kaguillera
Copy link
Contributor Author

Stupid question @whit537 do I have to do tests for this page?

@kaguillera
Copy link
Contributor Author

NB this is blocking gratipay/finances#2 among other PRs

@kaguillera
Copy link
Contributor Author

oh @whit537 please review

from decimal import Decimal as D

[---]
if user.ADMIN:
Copy link
Contributor

Choose a reason for hiding this comment

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

I would say invert this since it's not a part of a page (as before) but the entire page.

if not user.ADMIN:
    raise Response(401 if user.ANON else 403)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fair enough will do

@chadwhitacre
Copy link
Contributor

Test failures?

@kaguillera
Copy link
Contributor Author

Yep not sure why, going to work on that today. I only changed one line 😦

@kaguillera
Copy link
Contributor Author

I rebase so I don't know why it is saying out-of-date. ready for review @whit537 et al.

@mattbk
Copy link
Contributor

mattbk commented Feb 22, 2017

I pushed the button, no actual changes.

@mattbk
Copy link
Contributor

mattbk commented Feb 24, 2017

This all looks good to me.

@chadwhitacre
Copy link
Contributor

Rebased, was 22adf42.

@chadwhitacre
Copy link
Contributor

@kaguillera and I are going through this together looking at gratipay/finances#6.

@chadwhitacre
Copy link
Contributor

chadwhitacre commented Mar 1, 2017

Alright, this is some kinda messed up. We are now rewriting this dashboard based on the needs for gratipay/finances#6. Basically we want to show all exchanges grouped in several ways (maybe we can do that client-side?). But now we are seeing old, old exchanges with braintree-cc for network, where we would expect Stripe, and there is no stripe-cc in the database:

gratipay::MAROON=> \dT+ payment_net
                                       List of data types
┌────────┬─────────────┬───────────────┬──────┬──────────────┬───────────────────┬─────────────┐
│ Schema │    Name     │ Internal name │ Size │   Elements   │ Access privileges │ Description │
├────────┼─────────────┼───────────────┼──────┼──────────────┼───────────────────┼─────────────┤
│ public │ payment_net │ payment_net   │ 4    │ balanced-ba ↵│                   │             │
│        │             │               │      │ balanced-cc ↵│                   │             │
│        │             │               │      │ paypal      ↵│                   │             │
│        │             │               │      │ bitcoin     ↵│                   │             │
│        │             │               │      │ braintree-cc↵│                   │             │
│        │             │               │      │ cash        ↵│                   │             │
│        │             │               │      │ transferwise↵│                   │             │
│        │             │               │      │ dwolla      ↵│                   │             │
│        │             │               │      │ unknown      │                   │             │
└────────┴─────────────┴───────────────┴──────┴──────────────┴───────────────────┴─────────────┘
(1 row)

gratipay::MAROON=>

Fortunately, while @kaguillera was blocking on this PR he went ahead and wrote a script that uses our payday logs to aggregate values, which led us to the realization that we have good data in there for #3912 … which is the 🐰 🕳️ that we are staring down once again. It's soooooooooo far down. 😩

tumblr_odl3syzbhg1ulylvao3_500

@kaguillera kaguillera added Blocked and removed Review labels Apr 12, 2017
@chadwhitacre
Copy link
Contributor

This is blocked on #3912, yes? Closing since who knows when we will land that. 😞

@chadwhitacre chadwhitacre deleted the payday-dashboard branch May 17, 2017 10:12
@kaguillera kaguillera mentioned this pull request May 25, 2017
15 tasks
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