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

CRM-20296 - order by even then odd numbers as advertised #10007

Closed
wants to merge 4 commits into from

Conversation

jmcclelland
Copy link
Contributor

@jmcclelland jmcclelland commented Mar 17, 2017

I have some mis-givings about this change. Another approach would be to remove the label that says the street numbering will be order by even/add and then put all of this functionality in the Campaign reports. That would keep the core code simpler for functionality that may only be wanted in Campaign mode (which includes the survey components that are typically used to generate these reports in the first place).


This change also enabled SurveyDetails to benefit from fix that allows
sorting by odd/even street numbers.
Perhaps this feature was removed because it was hard to understand why
it was in here in the first place.
@xurizaemon
Copy link
Member

Simpler sounds better. It might be worth making this optional at point of producing the report; while it's convenient to have it, we shouldn't presume all locations (eg rural) will be simplest to handle sorted odd/even. (Maybe it's already optional the, idk?)

@eileenmcnaughton
Copy link
Contributor

@jmcclelland I'm going to close this because it's stale & has a conflict. If you want to pick it up again we can look at it - there is another report related one that I need to look at soon that might mess with it though so not too soon...

@jmcclelland
Copy link
Contributor Author

Hi Eileen - which is the other report related issue? In the US, we are gearing up for an election cycle, which means more groups are doing the door-knocking reports that need the even/odd ordering so I will probably be keeping this commit in our production code. But I can certainly wait and re-submit later on once you make your changes.

Also, I could try to figure out how to stick it in the campaign reports only.

@eileenmcnaughton
Copy link
Contributor

@jmcclelland looking at it the other one doesn't apply that well.

You can override orderBy on the campaign reports - if you need to call a shared function it could be in the parent class although it might be nice to try a trait

@jmcclelland
Copy link
Contributor Author

This was fixed in a better way via: #12422

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