Skip to content

Conversation

@Florian-Merle
Copy link
Contributor

No description provided.

@Florian-Merle Florian-Merle force-pushed the expression-field branch 3 times, most recently from 6def5c5 to 1fb1dda Compare November 12, 2024 08:53
@Florian-Merle Florian-Merle changed the base branch from 1.13 to 1.14 November 15, 2024 15:05
@Florian-Merle Florian-Merle force-pushed the expression-field branch 9 times, most recently from 1b07253 to 7589179 Compare November 22, 2024 16:17
@Florian-Merle Florian-Merle marked this pull request as ready for review November 22, 2024 16:17
@Florian-Merle Florian-Merle force-pushed the expression-field branch 2 times, most recently from 7a02791 to 0a4881e Compare November 26, 2024 09:30

```yaml
# config/packages/sylius_grid.yaml

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This line break is present in all YAML/PHP examples in this file. Should I remove it?

<argument>%sylius_grid.timezone%</argument>
<tag name="sylius.grid_field" type="datetime" />
</service>
<service id="sylius.grid_field.datetime" alias="Sylius\Component\Grid\FieldTypes\DatetimeFieldType" />
Copy link
Member

Choose a reason for hiding this comment

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

Normally it has been flipped back. I have to check.

Copy link
Member

Choose a reason for hiding this comment

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

I confirmed, I think your branch is not up to date.

Copy link
Member

Choose a reason for hiding this comment

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

No!! @GSadee, you forgot the upmerge from 1.13 to 1.14

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I updated the config files

composer.json Outdated
"symfony/dependency-injection": "^5.4 || ^6.4 || ^7.0",
"symfony/deprecation-contracts": "^2.2 || ^3.1",
"symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0",
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
"symfony/expression-language": "^5.4 || ^6.4 || ^7.0",

Expression
----------

The **Expression** column provides flexibility by allowing you to specify an expression that will be evaluated on the fly.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
The **Expression** column provides flexibility by allowing you to specify an expression that will be evaluated on the fly.
The **Expression** field type provides flexibility by allowing you to specify an expression that will be evaluated on the fly.

label: app.ui.price
options:
expression: 'value ~ "$"'

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

options:
expression: '"<strong>" ~ value ~ "</strong>"'
htmlspecialchars: false

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

<service id="Sylius\Bundle\GridBundle\FieldTypes\TwigFieldType" alias="sylius.grid_field.twig" />
</services>
</container>

Copy link
Member

Choose a reason for hiding this comment

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

Suggested change

"symfony/config": "^5.4 || ^6.4 || ^7.0",
"symfony/deprecation-contracts": "^2.2",
"symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.0",
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"symfony/expression-language": "^5.4 || ^6.0 || ^7.0",
"symfony/expression-language": "^5.4 || ^6.4 || ^7.0",

<service id="sylius_grid.expression_language" class="Symfony\Component\ExpressionLanguage\ExpressionLanguage">
<factory service="sylius_grid.expression_language.factory" />
</service>
<service id="Symfony\Component\ExpressionLanguage\ExpressionLanguage" alias="sylius_grid.expression_language" />
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we can use symfony vendor class as alias for our locale expression language instance.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I did this without thinking

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.

3 participants