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

dev/financial#197 Revert freezing on total_amount field on recurring form #23796

Closed
wants to merge 1 commit into from

Conversation

eileenmcnaughton
Copy link
Contributor

@eileenmcnaughton eileenmcnaughton commented Jun 14, 2022

Overview

dev/financial#197 Revert freezing on total_amount field on recurring form

Before

#21473 results in the amount field being frozen for recurring contributions - it was reviewed as "PASS: The change would be intuitive or unnoticeable for a majority of users who work with this feature." - but that is pretty clearly wrong as users are used to editing the amount, and are unfamiliar with the template contribution - which often does NOT permit editing the amount

After

The field is editable again

Technical Details

This returns the field to the previous state. On checking the code this might mean the recurring amount is out of sync with the template contribution. However, that just takes us back to the status quo which was fine for most users. For single line item contributions the contribution_recur.amount field takes precedence and it doesn't matter if the two are out of sync.

Ideally we need to ensure that any changes to the ContributionRecur.amount are blocked for non-single row or cause a corresponding update for single row templates and this needs to happen regardless of whether the form or the api or BAO makes the update. (It currently IS the case on this form)

Comments

We agreed to underlying schema changes in Barcelona - which have been implemented. Since then UI changes have also been made to add the contribution template to the UI. UI changes definitely need more scrutiny but unfortunately I merged the PR that made this change based on the review, rather than my own analysis, and did not realise it made an important UI change that should have gone through the dev list.

This implements a quick revert on the problematic part (as suggested by Matt). We can re-discuss a fix in master but after testing this out I don't think the freeze is acceptable while we do this

@KarinG @mattwire @adixon @seamuslee001

@civibot
Copy link

civibot bot commented Jun 14, 2022

(Standard links)

@mattwire
Copy link
Contributor

@eileenmcnaughton I'd prefer if we just commented out the freeze rather than removing the code. I know it's available in git history (if you can find it) but we're likely to revisit this soon and I'd like the next developer (me included) to remember why we can't simply freeze that field.

@eileenmcnaughton
Copy link
Contributor Author

Happy for you to put up an alternate version that you find clearer

@mattwire
Copy link
Contributor

See #23805

monishdeb added a commit that referenced this pull request Jun 15, 2022
dev/financial#197 Revert freezing on total_amount field on recurring form (alt to #23796)
@eileenmcnaughton eileenmcnaughton deleted the recur_amount branch June 15, 2022 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants