4.1.4 Upgrade Instructions

Post-upgrade instructions

ElasticSearch

We’ve made significant changes to how MintHCM uses ElasticSearch.

The main change is the ability to boost records. For example, from this version on, a phrase found in a last name or record name is considered more important than one in the description. This makes working with lists or Global Search more practical.

  • Add an entry to legacy/config.php: 'elasticsearch_index_prefix' => 'mint_prod_' (you can choose a short value). This is the prefix for indices stored in ElasticSearch. In previous versions, unique_key was used, but it was too long.
  • Perform a rebuild in the system: Administration -> Repair -> Quick Repair and Rebuild to rebuild the field mapping file for ES.
  • Reindex the records. Go to the instance directory and run: ./MintCLI elasticsearch:reindex. If the file is not executable, add execution permissions.

API Extensibility

We’ve made several changes to API files to allow upgrade-safe customization of configuration files, such as:

  • api/constants/legacy_views.php
  • api/constants/list_constants.php
  • api/constants/module_icons.php
  • api/constants/quick_create.php

If you want to modify these files, you can create custom files in the appropriate folders. For example:

api/custom/constants/legacy_views/custom_legacy_view.php

with a sample body like:

<?php

return [
    'SalaryRanges' => [
        'list' => true,
        'record' => true,
    ],
    'mn_CustomModule' => [
        'list' => false,
        'record' => true,
    ],
];

These files will be aggregated and will override the default settings. This will make future Mint upgrade processes easier.

Similar Posts

  • |

    MintHCM 3.0.3 is out

    Hello Mint followers. It has been a while. But we officially have some exciting news for you today! Long anticipated 3.0.3 version of our software is now out. Get it from GitHub or our DOWNLOAD page. But before you do… here is what we have developed this time. It’s MintHCM certified! Lately we have decided to start keeping information about…

  • MintHCM. A fresh way to do HR!

    A short story about MintHCM A while before coming up with the idea for MintHCM we have had a simple need of our own. As the organization grew, we have faced several difficulties trying to manage our team. Sounds familiar? Well, because we are a group of experienced developers, we have had the advantage of being able to help ourselves there. First, we have created a simple time…

  • MintHCM 3.0.2 released

    It has been three months, and we are coming to you with the fresh and minty version of our software. MintHCM 3.0.2 is now alive and available to download from our web page. UI reinvented It might seem like a long time since our last post but please bear with me as I explain what we were able to accomplish in the meantime. First and…

  • Employee Interaction Tracking

    Introducing: Employee Interaction Tracking new feature for the after COVID-19 business reality Are you ready to get back to work? For those tired of home office hours but still concerned about COVID-19 – here is a feature that we have been working on during quarantine. Employee Interaction Tracking holds information about who and when was in contact with each coworker. Employee…