processmaker icon indicating copy to clipboard operation
processmaker copied to clipboard

FOUR-21665 Elasticsearch integration for cases models

Open devmiguelangel opened this issue 8 months ago • 1 comments
trafficstars

Issue & Reproduction Steps

Prepare a proof of concept enabling elastic search for Cases

How to Test

  • Configure the following env variables
    • SCOUT_DRIVER=elastic
    • ELASTIC_HOST=http://elasticsearch:9200
    • ELASTIC_CASES_SEARCHABLE=case_status
  • Start the Elesticsearch service in elastic/docker-compose.yaml
  • Run the following artisan commands to sync the current cases:
    • php artisan scout:import 'ProcessMaker\Models\CaseStarted'
    • php artisan scout:import 'ProcessMaker\Models\CaseParticipated'

Related Tickets & Packages

FOUR-21665

Code Review Checklist

  • [ ] I have pulled this code locally and tested it on my instance, along with any associated packages.
  • [ ] This code adheres to ProcessMaker Coding Guidelines.
  • [ ] This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • [ ] This solution fixes the bug reported in the original ticket.
  • [ ] This solution does not alter the expected output of a component in a way that would break existing Processes.
  • [ ] This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • [ ] This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • [ ] This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • [ ] This ticket conforms to the PRD associated with this part of ProcessMaker.

devmiguelangel avatar Mar 19 '25 14:03 devmiguelangel

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube