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-21461: Case Dashlet enhancement #11304

Merged
merged 2 commits into from
Jan 30, 2018
Merged

Conversation

monishdeb
Copy link
Member

@monishdeb monishdeb commented Nov 21, 2017

Overview

  1. Convert Case dashlets 'All Cases'/'My Cases' with AJAX selectors to use DataTable for listing
  2. Add Case filters for search cases by status, type and 'Search Cases with Upcoming Activities' checkbox (unchecking will show cases with 'any' activities)
  3. Supported sorting by contact, subject, date, status, type and role.
  4. Editable Case subject.

Before

Case Dashboard:
screen shot 2017-11-28 at 11 20 31 am

Case Dashlets:
screen shot 2017-11-28 at 11 20 16 am

After

Case Dashboard:
screen shot 2017-11-28 at 11 18 20 am

Case Dashlets:
screen shot 2017-11-28 at 11 17 30 am


@monishdeb monishdeb added the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Nov 21, 2017
@monishdeb monishdeb force-pushed the CRM-21461 branch 5 times, most recently from f24fac6 to 00b753c Compare November 26, 2017 19:28
@@ -530,17 +537,27 @@ public static function getCaseActivityQuery($type = 'upcoming', $userID = NULL,

if ($condition) {
// CRM-8749 backwards compatibility - callers of this function expect to start $condition with "AND"
$query .= " WHERE (1) $condition ";
$query .= " WHERE (1) AND $condition ";
Copy link
Contributor

Choose a reason for hiding this comment

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

the AND threw an error. see getNextScheduledActivity -- the $condition that's passed to this already has an AND prefixed, resulting in a double AND. actually -- that error occurred in the contact's case tab. removing the AND throws errors in the dashlet. so we need to do some code review to make sure $condition is passed to this function in a consistent way.

Copy link
Member Author

Choose a reason for hiding this comment

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

Ahh ok, my bad will fix it and will check its usage on other places to avoid regression.

@monishdeb monishdeb force-pushed the CRM-21461 branch 3 times, most recently from 709bdbd to dc0adf1 Compare November 29, 2017 18:31
@monishdeb
Copy link
Member Author

Jenkins test this please

<th data-data="manager" data-orderable="false" class="crm-case-manager">{ts}Manager{/ts}</th>
<th data-data="date" cell-class="crm-case-date">{if $list EQ 'upcoming'}{ts}Next Sched.{/ts}{elseif $list EQ 'recent'}{ts}Most Recent{/ts}{/if}</th>
<th data-data="links" data-orderable="false" class="crm-case-links">&nbsp;</th>
</th>
Copy link
Contributor

@lcdservices lcdservices Dec 1, 2017

Choose a reason for hiding this comment

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

closing tag should be "tr"

@monishdeb monishdeb removed the needs-work-not-review-ready Submitter required to take action, will be closed after 1-2 weeks in this state label Dec 18, 2017
@lcdservices
Copy link
Contributor

this looks great. dashlets are much more dynamic and flexible now. @colemanw can you review and merge.

@colemanw colemanw changed the title [WIP] CRM-21461: Case Dashlet enhancement CRM-21461: Case Dashlet enhancement Dec 18, 2017
@monishdeb
Copy link
Member Author

@colemanw / @mlutfy can you please review this PR?

@colemanw
Copy link
Member

Code looks great. Merging based on Brian's testing.

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