Skip to content
This repository has been archived by the owner on Jan 25, 2025. It is now read-only.

[K-12] Recording a Positive Behavior On Case Object #203

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 34 additions & 7 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,10 @@ tasks:
sobject: hed__Behavior_Response__c
field: hed__Type__c
values: "Detention,Expulsion with Services,In-School Suspension,Out-of-School Suspension,Removal from Classroom"
restricted: true
restricted: True
sorted: True
namespaced: False


add_case_location_values:
description: Adds additional picklist values to the Location field.
class_path: tasks.add_picklist_values.AddPicklistValues
Expand All @@ -118,7 +117,21 @@ tasks:
values: "Administrative Offices Area,Athletic Field or Playground,Auditorium,Bus Stop,Cafeteria Area,Classroom,Computer Lab,Hallway or Stairs,Library/Media Center,Locker Room or Gym Areas,Off Campus,On Campus,Online,Parking Lot,Restroom,School Bus,Stadium,Unknown,Walking to or from School"
existing_values: "Off Campus, On Campus"
recordtypes: Incident
restricted: true
restricted: True
sorted: True
namespaced: False

add_case_category_values:
description: Adds additional picklist values to the Category field.
class_path: tasks.add_picklist_values.AddPicklistValues
group: 'K-12: Metadata'
options:
sobject: Case
field: hed__Category__c
values: "Cooperation,Integrity,Leadership,Respect,School Code of Conduct,School Violation,State Offense,Teamwork"
Copy link
Contributor

Choose a reason for hiding this comment

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

@kdy618 The result for this is that Positive Behavior for case has all of the values listed instead of the values specified in the spec. Please change this so we may have only the desired record types for Positive Behavior cases.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@MatthewBlanski , although I have removed the 3 extra values, I'm still seeing it on the selected value column on the record type. I've communicated this to @jofsky as well on slack.

existing_values: "School Code of Conduct, School Violation, State Offense"
recordtypes: Positive_Behavior
restricted: True
sorted: True
namespaced: False

Expand Down Expand Up @@ -180,6 +193,8 @@ flows:
task: add_behavior_response_type_values
9:
task: add_case_location_values
10:
task: add_case_category_values


trial_org:
Expand All @@ -204,6 +219,8 @@ flows:
task: add_behavior_response_type_values
8:
task: add_case_location_values
9:
task: add_case_category_values

qa_org:
#description: Set up an org as a QA environment for unmanaged metadata
Expand All @@ -221,8 +238,10 @@ flows:
9:
task: add_case_location_values
10:
task: execute_install_apex
task: add_case_category_values
11:
task: execute_install_apex
12:
task: snapshot_changes

dev_org:
Expand All @@ -241,8 +260,10 @@ flows:
9:
task: add_case_location_values
10:
task: execute_install_apex
task: add_case_category_values
11:
task: execute_install_apex
12:
task: snapshot_changes

dev_org_namespaced:
Expand Down Expand Up @@ -270,9 +291,13 @@ flows:
task: add_case_location_values
options:
namespaced: True
10:
task: execute_install_apex
10:
task: add_case_category_values
options:
namespaced: True
11:
task: execute_install_apex
12:
task: snapshot_changes

upgraded_org:
Expand Down Expand Up @@ -314,6 +339,8 @@ flows:
task: add_behavior_response_type_values
8:
task: add_case_location_values
9:
task: add_case_category_values

ci_feature_beta_deps:
description: When run, the latest version (including betas) of Cumulus and EDA are installed, and all tests are run.
Expand Down
165 changes: 165 additions & 0 deletions src/layouts/Case-K12 Kit Positive Behavior Layout.layout
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
<?xml version="1.0" encoding="UTF-8"?>
<Layout xmlns="http://soap.sforce.com/2006/04/metadata">
<excludeButtons>Submit</excludeButtons>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>false</detailHeading>
<editHeading>false</editHeading>
<label>Fields</label>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>ContactId</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>hed__Category__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Subject</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Description</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>hed__Occurrence_Date__c</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>hed__Location__c</field>
</layoutItems>
</layoutColumns>
<layoutColumns>
<layoutItems>
<behavior>Edit</behavior>
<field>OwnerId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>AccountId</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Priority</field>
</layoutItems>
<layoutItems>
<behavior>Required</behavior>
<field>Status</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>Origin</field>
</layoutItems>
<layoutItems>
<behavior>Edit</behavior>
<field>SuppliedEmail</field>
</layoutItems>
</layoutColumns>
<style>TwoColumnsLeftToRight</style>
</layoutSections>
<layoutSections>
<customLabel>true</customLabel>
<detailHeading>true</detailHeading>
<editHeading>false</editHeading>
<label>Custom Links</label>
<layoutColumns/>
<layoutColumns/>
<layoutColumns/>
<style>CustomLinks</style>
</layoutSections>
<platformActionList>
<actionListContext>Record</actionListContext>
<platformActionListItems>
<actionName>Edit</actionName>
<actionType>StandardButton</actionType>
<sortOrder>0</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewNote</actionName>
<actionType>QuickAction</actionType>
<sortOrder>1</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewTask</actionName>
<actionType>QuickAction</actionType>
<sortOrder>2</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewEvent</actionName>
<actionType>QuickAction</actionType>
<sortOrder>3</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>LogACall</actionName>
<actionType>QuickAction</actionType>
<sortOrder>4</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>SendEmail</actionName>
<actionType>QuickAction</actionType>
<sortOrder>5</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>NewCase</actionName>
<actionType>QuickAction</actionType>
<sortOrder>6</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>PrintableView</actionName>
<actionType>StandardButton</actionType>
<sortOrder>7</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>ChangeOwnerOne</actionName>
<actionType>StandardButton</actionType>
<sortOrder>8</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Clone</actionName>
<actionType>StandardButton</actionType>
<sortOrder>9</sortOrder>
</platformActionListItems>
<platformActionListItems>
<actionName>Delete</actionName>
<actionType>StandardButton</actionType>
<sortOrder>10</sortOrder>
</platformActionListItems>
</platformActionList>
<relatedContent>
<relatedContentItems>
<layoutItem>
<behavior>Readonly</behavior>
<field>ContactId</field>
</layoutItem>
</relatedContentItems>
<relatedContentItems>
<layoutItem>
<behavior>Readonly</behavior>
<field>AccountId</field>
</layoutItem>
</relatedContentItems>
</relatedContent>
<relatedLists>
<fields>NAME</fields>
<fields>hed__Contact__c</fields>
<fields>hed__Role__c</fields>
<relatedList>hed__Behavior_Involvement__c.hed__Case__c</relatedList>
</relatedLists>
<relatedObjects>ContactId</relatedObjects>
<relatedObjects>AccountId</relatedObjects>
<showEmailCheckbox>false</showEmailCheckbox>
<showHighlightsPanel>false</showHighlightsPanel>
<showInteractionLogPanel>false</showInteractionLogPanel>
<showKnowledgeComponent>false</showKnowledgeComponent>
<showRunAssignmentRulesCheckbox>false</showRunAssignmentRulesCheckbox>
<showSubmitAndAttachButton>true</showSubmitAndAttachButton>
<summaryLayout>
<masterLabel>00hS0000000ZPG2</masterLabel>
<sizeX>4</sizeX>
<sizeY>0</sizeY>
<summaryLayoutStyle>Default</summaryLayoutStyle>
</summaryLayout>
</Layout>
1 change: 1 addition & 0 deletions src/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<members>Account-K12 Kit Organization Layout</members>
<members>Account-K12 Kit Sports Organization Layout</members>
<members>Case-K12 Kit Incident Layout</members>
<members>Case-K12 Kit Positive Behavior Layout</members>
<members>Contact-K12 Kit Faculty Staff Layout</members>
<members>Contact-K12 Kit Guardian Layout</members>
<members>Contact-K12 Kit Student Layout</members>
Expand Down
Loading