Skip to content

Instantly share code, notes, and snippets.

@mickadoo
Last active February 22, 2018 15:26
Show Gist options
  • Save mickadoo/1dd3b3b42de602f393e516ddb0a60fe9 to your computer and use it in GitHub Desktop.
Save mickadoo/1dd3b3b42de602f393e516ddb0a60fe9 to your computer and use it in GitHub Desktop.
Configurability Changes

1) Lock custom groups

Overview

Some custom groups are required by CiviHR and should not be editable.

Acceptance Criteria

The following custom groups do not appear on the civicrm/admin/custom/group page:

  • Extended demographics
  • Probation
  • Activity custom fields
  • Contact length of service
  • Application
  • Vacancy
  • Evauation field
  • Emergency contact
  • Inline custom field data

2) Reorganize the 'Configure' menu

Overview

The configure menu will be reorganized, adding some convenience links and limiting others links by permissions.

Acceptance Criteria

The 'Configure' menu should only be accessible by users with administrator, civihr_admin and civihr_admin_local roles.

See the google sheet for details on the menu structure and role permissions.

There will be a new permission called Access Advanced Configuration Options and it will be visible under the permissions tab in /admin/people. The administrator will be the only role to have this permission.

3) Hide options on localization page

Overview

Certain options should be hidden on the localization settings page, depending on role.

Acceptance Criteria

The localization page should only be accessible by users with administrator, civihr_admin and civihr_admin_local roles.

The administrator will see the following options:

  • Default Language
  • Inherit CMS Language
  • Default Language for contacts
  • Default Currency
  • Thousands Separator
  • Decimal Delimiter
  • Available Currencies
  • Monetary Amount Display
  • Monetary Value Display
  • Custom Translate Function
  • Legacy Encoding
  • Import / Export Field Separator
  • Default Country
  • Default State/Province
  • Available Countries
  • Available States and Provinces (by Country)

civihr_admin and civhr_admin_local will see the following options:

  • Default Currency
  • Available Currencies
  • Default Country
  • Default State/Province
  • Available Countries
  • Available States and Provinces (by Country)

4) Change permission on CiviHR website link in Help Menu

Overview

The "CiviHR Website" link should only be visible to the administrator.

Acceptance Criteria

The administrator can see the "CiviHR Website" link in the help menu. All other roles cannot.

5) Display gear icon for all editable option groups

Overview

CiviCRM already provides a gear icon to edit option values when an option group is displayed, but in some cases it is missing. This should be extended to always show the gear icon when an editable option group is displayed.

Acceptance Criteria

Editable option groups will be presented with a gear icon whenever they are displayed.

Non editable option groups will not show this icon.

See the sheet "List of Configurable Fields that need a Tool Icon" for a list of places to check where a gear icon should appear.

6) Make certain option groups uneditable

Overview

Some option groups should not be editable.

Acceptance Criteria

The following option groups should not be editable. That means they do not appear in /civicrm/admin/options and no gear icon is displayed next to them.

  • Phone Types
  • Pay Unit

7) Fix bug with editing locked option groups

Overview

There are 3 screens/routes from which you can edit dropdown options:

When "is_locked" = 1 only the first method stops you making changes to the multiple choice options.

Acceptance Criteria

We should modify the functionality so that:

  • The tool icon is not shown for option groups where is_locked = 1
  • All methods above stop user from making changes when is_locked = 1

8) Create new option group for 'Work Pattern Change Reasons'

Overview

'Work Pattern Change Reasons' currently uses a shared option group with contract change reason. Both of them use the option group hrjc_revision_change_reason. 'Work Pattern Change Reasons' should use a separate option group.

Acceptance Criteria

'Work Pattern Change Reasons' uses a different option group to 'Job Contract Change Reason'. Changes to one do not impact the other.

After making this change existing work patterns with change reasons are not affected and keep their old change reason.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment