Conversation
| @@ -1,13 +0,0 @@ | |||
| ibexa: | |||
There was a problem hiding this comment.
Not used - but it should be toolbar, not toolbars
| security: | ||
| firewalls: | ||
| # ... | ||
| ibexa_cdp: |
There was a problem hiding this comment.
Was outdated - stolen from configuration provided when installing the project
| # Raptor Recommendations API URL, optional, set by default | ||
| recommendations_api_url: '%ibexa.connector.raptor.recommendations.api_url%' | ||
| # Raptor Recommendations API URI, optional, set by default | ||
| recommendations_api_uri: '%ibexa.connector.raptor.recommendations.api_uri%' |
| http: | ||
| enabled: true | ||
| batch_size: 64 | ||
| enabled: true |
There was a problem hiding this comment.
This sample had mixed tabs and spaces
code_samples/ change report
|
| - | ||
| path: docs/users/user_authentication.md | ||
| line: 41 | ||
| message: '~Unrecognized option "encoders" under "security"\. Available options are "access_control", "access_decision_manager", "access_denied_url", "erase_credentials", "expose_security_errors", "firewalls", "hide_user_not_found", "password_hashers", "providers", "role_hierarchy", "session_fixation_strategy"\.~' |
There was a problem hiding this comment.
This one is valid (incorrect code sample), but I want to tackle this in a follow-up
|
| - | ||
| path: docs/release_notes/ez_platform_v2.4.md | ||
| line: 221 | ||
| message: '~Unrecognized option "require_previous_session" under "security\.firewalls\.ezpublish_front\.form_login"\. Available options are "always_use_default_target_path", "check_path", "csrf_parameter", "csrf_token_id", "default_target_path", "enable_csrf", "failure_forward", "failure_handler", "failure_path", "failure_path_parameter", "form_only", "login_path", "password_parameter", "post_only", "provider", "remember_me", "success_handler", "target_path_parameter", "use_forward", "use_referer", "username_parameter"\.~' |
There was a problem hiding this comment.
This one is valid (incorrect code sample), but I want to tackle this in a follow-up
adriendupuis
left a comment
There was a problem hiding this comment.
I focused on everything not in docs/ dir for this first pass
| content: | ||
| tree_root: | ||
| location_id: location_id_of_customer_portals_root_folder | ||
| location_id: 9999 # location_id_of_customer_portals_root_folder |
There was a problem hiding this comment.
Consistency with the changes above and below:
location_id_of_customer_portal = 9999
location_id_of_customer_portals_root_folder = 999
| location_id: 9999 # location_id_of_customer_portals_root_folder | |
| location_id: 999 # location_id_of_customer_portals_root_folder |
| run: | | ||
| curl -H "Authorization: token $TOKEN" -L https://github.com/ibexa/vale-styles/archive/refs/heads/main.zip -o vale.zip | ||
| rm -rf tests | ||
| unzip vale.zip |
There was a problem hiding this comment.
Keep archive removal
| unzip vale.zip | |
| unzip vale.zip | |
| rm vale.zip |
| ```yaml | ||
| --8<-- | ||
| some/file.yaml | ||
| ``` |
There was a problem hiding this comment.
Just to mimic the real syntax:
| ```yaml | |
| --8<-- | |
| some/file.yaml | |
| ``` | |
| ```yaml | |
| --8<-- | |
| some/file.yaml | |
| --8<-- | |
| ``` |




This PR allows us to test all the YAML code samples in the doc - both in the code_samples directory (.yaml files) and the ones embedded directly in Markdown (by extracting the ``` yaml code blocks).
There are two checks:
ibexa,security,ibexa_migrationsetc.Not everything is checked - for example, Ibexa Migration files are not validated.
To run the tests, run:
There's a baseline for samples that should be ignored - to put something in the baseline, run
phpunit-update-baseline