Refactor form property logic rule to load condition mapping from external JSON file (#698)

* Refactor form property logic rule to load condition mapping from external JSON file

* fix CONDITION_MAPPING

* use config file for load mapping

* Simplify condition mapping retrieval in FormPropertyLogicRule

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Chirag Chhatrala
2025-02-15 04:02:55 +05:30
committed by GitHub
parent 82fae97a3e
commit e7585c32d3
5 changed files with 23 additions and 664 deletions

View File

@@ -6,4 +6,5 @@ return [
'template_editor_emails' => explode(',', env('TEMPLATE_EDITOR_EMAILS') ?? ''),
'extra_pro_users_emails' => explode(',', env('EXTRA_PRO_USERS_EMAILS') ?? ''),
'show_official_templates' => env('SHOW_OFFICIAL_TEMPLATES', true),
'condition_mapping' => json_decode(file_get_contents(resource_path('data/open_filters.json')), true),
];