-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add support for Euros #583
base: master
Are you sure you want to change the base?
Conversation
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.
This is a great change to make! There are a few implications elsewhere in the codebase, but this gets far enough along that events in other currencies would at least be able to accept and display donations in those currencies in a reasonable way.
There are a few other pages that would need to be updated as well (For example, even the new processing pages), but I think those can happen in a followup PR, as the work needed to support those is rather different than what is necessary here.
@faultyserver Thank you for the amazing feedback! I'll have a look to see if I can also implement the reader pages with this PR |
The "Tracker Package" pipeline seems to complain about missing permissions. I assume that's because I'm an outside collaborator? |
Hmm. I'm not sure why, since the pipeline runs inside of the GDQ github organization and uses a single set of permissions, but it might be something on Azure's end noticing that the branch is coming from a fork or something. I'll look into it eventually, but it won't be blocking merges. Thanks for the heads up about it! |
Did a lot of manual testing and everything seems to work as it should. I double checked that with people that have worked a lot with the tracker. |
This has now been fixed |
[#187041665]
[#186804968]
Bumps [selenium](https://github.com/SeleniumHQ/Selenium) from 4.16.0 to 4.18.1. - [Release notes](https://github.com/SeleniumHQ/Selenium/releases) - [Commits](SeleniumHQ/selenium@selenium-4.16.0...selenium-4.18.1) --- updated-dependencies: - dependency-name: selenium dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…k#650) Updates the requirements on [responses](https://github.com/getsentry/responses) to permit the latest version. - [Release notes](https://github.com/getsentry/responses/releases) - [Changelog](https://github.com/getsentry/responses/blob/master/CHANGES) - [Commits](getsentry/responses@0.24.1...0.25.0) --- updated-dependencies: - dependency-name: responses dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Bump pre-commit from 3.5.0 to 3.6.2 Bumps [pre-commit](https://github.com/pre-commit/pre-commit) from 3.5.0 to 3.6.2. - [Release notes](https://github.com/pre-commit/pre-commit/releases) - [Changelog](https://github.com/pre-commit/pre-commit/blob/main/CHANGELOG.md) - [Commits](pre-commit/pre-commit@v3.5.0...v3.6.2) --- updated-dependencies: - dependency-name: pre-commit dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Lock pre-commit for Python 3.8 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Benjamin Cutler <[email protected]>
@faultyserver would you be able to look at this branch some time? It seems that the migrations need to be merged but when I run the merge command locally it seems that nothing needs to be merged edit: Euros work fine even in the new layout Edit 3: (pyhton hates me, things seem to work again) |
Hi, any chance you can rebase this based off current master? I finally got around to adding a check in Azure that won't try and package PRs from forks (which doesn't work anyway), so this should theoretically pass CI and I can give it a proper review. Thanks. |
I've merged master into this branch to make it up-to-date again. |
In a perfect world, any further work regarding currency would just extend it to all ISO currencies, at least the ones that If this can be done in a standardized way, ideally. I'll take a closer look at this today, though it looks like Jon already had plenty to say about it. Sorry this took so long to get back around to. |
Unfortunately the very first thing I did after switching to this branch was noticing that the custom
I'm not actually sure if there's an elegant way of being able to avoid passing this information to every place where this filter is invoked, but it also made me realize there's another wrinkle that already existed: Any page that displays the aggregate of -all- events is going to get the math wrong if there's more than one currency involved. In practice I'm not sure how much of a problem that is, and it shouldn't necessarily block this PR, but the issue of the money filter still needs to be resolved. Edit: Might be better to change the |
If that's the case (system locale) I can probably accept it as is and modify the tag myself later, thanks. Especially since once I looked at what the current code is doing it is in need a rewrite anyhow (it's messing with global state and that's bad). I'll try and get this another look on Tuesday. |
@uraniumanchor Did you manage to have a look at the PR? I tried to figure out why the migration need to be merged but locally did not show such conflicts |
Contributing to the Donation Tracker
First of all, thank you for taking the time to contribute!
Please fill out the template below and check the following boxes:
Issue from Pivotal Tracker
N/A
Description of the Change
Some events in Europe raise money in Euros instead of USD. This change adds support for Euros to the tracker.
Verification Process
I set up a local instance of the tracker and tested donations in Euros and USD, both work as intended.
edit: This branch has been used for BSG2023 during an event and works like a charm, all pages that display currency show the correct one.