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/core#1008 add ended status to new contribution recur status group #14403

Closed

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Per https://lab.civicrm.org/dev/core/issues/1008 I think there is a case for another using facing status for the
nunaces on ways that recurrings end - somewhere between 'they actively cancelled it' and 'they completed it'
lies - it ended & neither of the others are quite the right fit

Before

Ended status does not exist

After

Ended status exists

Technical Details

Builds on the work in #14395 & the earlier PR that separated out recurring contribution statuses from contribution statuses

Comments

@civibot
Copy link

civibot bot commented Jun 2, 2019

(Standard links)

@civibot civibot bot added the master label Jun 2, 2019
`option_group_id`, {localize field='label'}`label`{/localize}, `value`, `name`, `weight`, `is_reserved`, `is_active`, `is_default`
)
VALUES(
@option_group_id_ps, 'Ended', @maxValue + 3, 'Processing', @maxWeight + 3, 1 , 1 , 0
Copy link
Contributor

Choose a reason for hiding this comment

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

@@ -9,3 +9,33 @@ SELECT @option_group_id_ps as option_group_id, {localize field='label'}`label`{/
FROM civicrm_option_value ov
INNER JOIN civicrm_option_group og
ON og.id = ov.option_group_id AND og.name = 'contribution_status';

SELECT @maxValue := MAX(value) FROM `civicrm_option_value` where option_group_id = @option_group_id_ps;
Copy link
Contributor

Choose a reason for hiding this comment

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

value is of type VARCHAR so MAX won't be accurate unless we convert it.

SELECT @maxValue := MAX(CAST( valueAS UNSIGNED )) FROMcivicrm_option_value where option_group_id = @ option_group_id_ps;

Per https://lab.civicrm.org/dev/core/issues/1008 I think there is a case for another using facing status for the
nunaces on ways that recurrings end - somewhere between 'they actively cancelled it' and 'they completed it'
lies - it ended & neither of the others are quite the right fit
@yashodha
Copy link
Contributor

yashodha commented Jun 4, 2019

@pradpnayak this is now ready to merge right?

@agh1
Copy link
Contributor

agh1 commented Jun 4, 2019

I guess I disagree with the premise of this--it sounds like a wording change or a site-specific nuance. I'll go into more depth on dev/core#1008. In one sense it's harmless, but in another, we're cluttering up the interface with extra options that may confuse the user.

@agh1
Copy link
Contributor

agh1 commented Jun 4, 2019

I wrote a bit at https://lab.civicrm.org/dev/core/issues/1008#note_18551. Basically, unlike the new statuses in #14395, this doesn't come with a natural programmatic distinction. In fact, "Ended" isn't added to the hard-coded list of inactive statuses:

public static function getInactiveStatuses() {
return ['Cancelled', 'Failed', 'Completed'];
}

However, instead of just adding a new thing to that list, I just thing there's a case for keeping the reserved statuses that need to be there but then letting site owners add statuses if they feel the current ones are insufficient.

@eileenmcnaughton
Copy link
Contributor Author

@agh1 perhaps we could co-opt the 'grouping' field or the 'filter' field - if the latter it would mean 'filter' =>1 would be 'active'

@@ -1056,6 +1056,7 @@ VALUES
(@option_group_id_crs, '{ts escape="sql"}Overdue{/ts}' , 6, 'Overdue' , NULL, 0, NULL, 6, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Processing{/ts}' , 7, 'Processing' , NULL, 0, NULL, 7, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Failing{/ts}' , 8, 'Failing' , NULL, 0, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL),
(@option_group_id_crs, '{ts escape="sql"}Ended{/ts}' , 9, 'Ended' , NULL, 0, NULL, 8, NULL, 0, 1, 1, NULL, NULL, NULL),
Copy link
Contributor

Choose a reason for hiding this comment

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

7th column should 9 instead 8?

@eileenmcnaughton
Copy link
Contributor Author

thanks @yashodha @pradpnayak I think we need to slow this down on concept approval though

@eileenmcnaughton
Copy link
Contributor Author

I'm closing this for now - It is targetting 5.15 & is not going to be merged for that release so needs re-work. In addition the concept is not agreed so github isn't the place to track it

@eileenmcnaughton eileenmcnaughton deleted the recur_status2 branch June 4, 2020 07:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants