Commit 99e2a6f
Fix environment loader (#4617)
* fix: set cache when env loader overrides data
* feat?: call env helper on config get
* feat?: backend: show data from env
* feat?: backend: disable field when ENV data is available
* Update app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
* Update app/code/core/Mage/Core/Helper/EnvironmentConfigLoader.php
* feat?: backend: do not log on invalid stores - creates infinite loop
* feat: move env variables "str_starts_with"
* feat: add env flag to disable/enable feature
* fix: fix tests
* feat: set disabled, set scope label
* feat: remove checkbox to override
* chore: remove inline helper variable name
* Update tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php
Co-authored-by: Sven Reichel <[email protected]>
* Update tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php
Co-authored-by: Sven Reichel <[email protected]>
* Update app/code/core/Mage/Core/Helper/EnvironmentConfigLoader.php
Co-authored-by: Sven Reichel <[email protected]>
* Update app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
Co-authored-by: Sven Reichel <[email protected]>
* Update tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php
Co-authored-by: Sven Reichel <[email protected]>
* Update app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
Co-authored-by: Sven Reichel <[email protected]>
* feat: add "hasPath" test
* feat: add "asArray" test
* tests: add test cases
* Update app/code/core/Mage/Core/Helper/EnvironmentConfigLoader.php
Co-authored-by: Sven Reichel <[email protected]>
* fix: onStore(re)init the env vars would be lost
* envLoader: fix loading from scopes
* chore: run phpcs
* chore: phptan: add ignore line comment about internal method
* envLoader: fix tests, fix scope default
* chore: run rector:fix
* Update tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php
* Update tests/unit/Mage/Core/Helper/EnvironmentConfigLoaderTest.php
* sonar update
* fix
* phpstan L10
* update
* fix: run php-cs-fixer
* fix? phpstan?
* chore: run rector fix
* fix config
* refactor
* update
* update
* added cypress test
* Refactor web environment configuration in cypress.yml
* Simplify ddev config command in workflow
* Update registration success message in tests
* Update cypress/e2e/openmage/backend/system/config/general/general.cy.js
Co-authored-by: Copilot <[email protected]>
* Update app/code/core/Mage/Adminhtml/Block/System/Config/Form.php
Co-authored-by: Copilot <[email protected]>
* Update cypress/support/openmage/backend/system/config/general/general.js
Co-authored-by: Copilot <[email protected]>
* fix: websites do not allow "-" character, but A-Z0-9_, starting with letter
* fix: superflous website tests and testing suite bootstrap
Websites may not have a "-" character so this test is removed
Removed website test for "base_ch", as its the same as "base", so superflous.
Add testing stores if not existing and remove afterwards.
* chore: linter fixes
* chore: run rector:fix
---------
Co-authored-by: Pascal Querner <[email protected]>
Co-authored-by: Sven Reichel <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent 1814050 commit 99e2a6f
File tree
15 files changed
+810
-78
lines changed- .github/workflows
- app/code/core/Mage
- Adminhtml
- Block/System/Config
- Model/Config
- Core
- Helper
- EnvironmentConfigLoader
- Model
- cypress
- e2e/openmage
- backend/system/config/general
- frontend/customer
- support
- openmage
- _utils
- backend/system/config/general
- tests/unit/Mage/Core/Helper
15 files changed
+810
-78
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Lines changed: 39 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| 78 | + | |
76 | 79 | | |
77 | 80 | | |
78 | 81 | | |
| |||
380 | 383 | | |
381 | 384 | | |
382 | 385 | | |
383 | | - | |
| 386 | + | |
384 | 387 | | |
385 | 388 | | |
386 | 389 | | |
| |||
396 | 399 | | |
397 | 400 | | |
398 | 401 | | |
399 | | - | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
400 | 411 | | |
401 | 412 | | |
402 | 413 | | |
| |||
645 | 656 | | |
646 | 657 | | |
647 | 658 | | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
648 | 685 | | |
649 | 686 | | |
650 | 687 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
355 | 355 | | |
356 | 356 | | |
357 | 357 | | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
358 | 366 | | |
359 | 367 | | |
360 | 368 | | |
| |||
0 commit comments