这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@JohnVillalovos
Copy link
Contributor

config.devel.php was missing some config setting that were present in config.dist.php. This caused some failures.

In particular the missing 'enforce.custom.mail.template' setting caused a failure.

Also add a CI check to make sure the config files stay in sync. It does not require the values are in sync but that all settings are defined in both files.

Copilot AI review requested due to automatic review settings July 15, 2025 00:10

This comment was marked as outdated.

@JohnVillalovos JohnVillalovos force-pushed the jlvillal/devel_config branch 2 times, most recently from fad28f0 to d8b805b Compare July 15, 2025 00:14
@JohnVillalovos JohnVillalovos requested a review from Copilot July 15, 2025 00:14

This comment was marked as outdated.

config.devel.php was missing some config setting that were present in
config.dist.php. This caused some failures.

In particular the missing 'enforce.custom.mail.template' setting caused
a failure.

Also add a CI check to make sure the config files stay in sync. It does
not require the values are in sync but that all settings are defined in
both files.

Also fix two typos.
@JohnVillalovos JohnVillalovos force-pushed the jlvillal/devel_config branch from d8b805b to 4867bff Compare July 15, 2025 00:16
@JohnVillalovos JohnVillalovos requested a review from Copilot July 15, 2025 00:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR ensures that config.devel.php includes all settings from config.dist.php by adding the missing enforce.custom.mail.template key, fixes a minor typo in a comment, and introduces a CI check to keep both config files in sync.

  • Added a new config-check Tox environment and CI step to compare keys in both config files.
  • Updated config.dist.php to correct a typo in the comment for enforce.custom.mail.template.
  • Synchronized config.devel.php by adding the missing setting and several development-only defaults.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tox.ini Added config-check env and included it in the envlist.
config/config.dist.php Corrected typo in the enforce.custom.mail.template comment.
config/config.devel.php Added missing enforce.custom.mail.template and other dev-only settings.
ci/config-check.py New script to verify both config files define the same keys.
.github/workflows/lint-and-analyse-php.yml Added a tox -e config-check step to the CI workflow.
Comments suppressed due to low confidence (3)

config/config.devel.php:218

  • The comment for hide.position incorrectly references the phone field; it should mention the position requirement instead.
$conf['settings']['registration']['hide.position'] = 'false';               //Hide position field when 'true', but show it when the phone is required

config/config.devel.php:219

  • The comment for hide.organization incorrectly references the phone field; it should mention the organization requirement instead.
$conf['settings']['registration']['hide.organization'] = 'false';           //Hide organization field when 'true', but show it when the phone is required

ci/config-check.py:21

  • The CI script compares all config keys between dist and devel but does not exclude dev-only settings (e.g., authentication and delete.old.data sections), causing the check to fail; consider adding an ignore list or filtering logic for dev-specific keys.
    missing_devel = dist_configs - devel_configs

@JohnVillalovos JohnVillalovos merged commit ce6221e into develop Jul 15, 2025
10 checks passed
@JohnVillalovos JohnVillalovos deleted the jlvillal/devel_config branch July 15, 2025 00:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants