Skip to content

[WIP]IBX-9631: Implement parser fetching content fields from expression #1500

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 4.6
Choose a base branch
from

Conversation

barw4
Copy link
Contributor

@barw4 barw4 commented Mar 14, 2025

🎫 Issue IBX-9631

TODO:

add more test cases

Description:

The parser will parse the following expressions:

expr         ::= (<group> '/')? <content_type> '/' <field> 
group        ::= id | '{' <id> (',' <id>)* '}'
content_type ::= id | '{' <id> (',' <id>)* '}' | '*'
field        ::= id | '{' <id> (',' <id>)* '}' 

fetch asked field definitions and provide an output in the form of a list that consists of field definition ids.

Example of usage:

$extractedFieldIds = $this->contentTypeFieldsExtractor->extractFieldsFromExpression('{Media,Content}/*/name');

will result in:

.array:2 [
  0 => 8
  1 => 9
]

For QA:

Documentation:

@barw4 barw4 added Feature New feature request Work in progress labels Mar 14, 2025
@barw4 barw4 self-assigned this Mar 14, 2025
Copy link

@barw4 barw4 changed the title IBX-9631: Implement parser fetching content fields from expression [WIP]IBX-9631: Implement parser fetching content fields from expression Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature request Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants