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

Fix issues with case sorting/searching from case dashboard #21514

Merged
merged 1 commit into from
Mar 21, 2022

Conversation

mattwire
Copy link
Contributor

@mattwire mattwire commented Sep 17, 2021

Overview

  • Fixes https://lab.civicrm.org/dev/core/-/issues/1624: Case Dashboard/Dashlet gives datatables error if sort by type or status:
    Now works!

  • "Fixes" https://lab.civicrm.org/dev/core/-/issues/2319: Network error when trying to sort results by 'Next Scheduled date':
    Disables sorting on most recent / next scheduled. This is better than before where it allows you to sort but then triggers a DB error whenever you try. It looks more complex to actually make the sort work because of the complexity of the query and dependencies internally in CiviCRM.

Before

500 / network error when sorting by status/type.

After

Sorting/searching works without error.

Technical Details

See lab issues

Comments

@demeritcowboy

@civibot
Copy link

civibot bot commented Sep 17, 2021

(Standard links)

@civibot civibot bot added the master label Sep 17, 2021
@demeritcowboy
Copy link
Contributor

Thanks will check it out.

@demeritcowboy
Copy link
Contributor

I haven't looked closely yet but this has a weird effect on the Cases tab on a contact. It now shows two columns for Next Scheduled Date instead of one for Scheduled and one for Recent, and both are now blank.

@mattwire mattwire added the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Sep 23, 2021
@demeritcowboy
Copy link
Contributor

Maybe a good start but going to close this one until someone has time to make it work. The lab tickets link here already.

@mattwire mattwire reopened this Mar 18, 2022
@mattwire mattwire force-pushed the 1624_2319_casedashboard branch from 930fa28 to 0f73dba Compare March 18, 2022 10:34
@mattwire mattwire removed the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Mar 18, 2022
@mattwire
Copy link
Contributor Author

Hi @demeritcowboy I've just updated/refreshed this and updated the description above. I don't see any of the issues you mentioned introduced anymore and this should be an overall improvement in stuff actually working!

@demeritcowboy
Copy link
Contributor

Thanks will take a look.

@demeritcowboy
Copy link
Contributor

I think this seems an ok step (i.e. sorting doesn't work now so just remove the ability to sort).

These all seem ok:

  • Dashboard
  • Dashlets
  • Cases tab
  • Find Cases
  • Advanced search

@demeritcowboy demeritcowboy merged commit b807943 into civicrm:master Mar 21, 2022
@mattwire
Copy link
Contributor Author

Thanks @demeritcowboy

@mattwire mattwire deleted the 1624_2319_casedashboard branch March 21, 2022 15:00
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.

None yet

2 participants