Skip to content

IBX-8452: Fixed string substitution for Plural Value Object when casting to string#360

Closed
alongosz wants to merge 4 commits into
mainfrom
target-5.0/fix-plural-translatable-to-string
Closed

IBX-8452: Fixed string substitution for Plural Value Object when casting to string#360
alongosz wants to merge 4 commits into
mainfrom
target-5.0/fix-plural-translatable-to-string

Conversation

@alongosz
Copy link
Copy Markdown
Member

@alongosz alongosz commented Apr 24, 2024

Warning

Pending 3.3 backport

🎫 Issue n/a

Description:

When an instance of Plural value object was cast to string, it produced results opposite to the expected. For plural result it used singular message and for singular result - a plural one.

TBD if my assumptions here are correct and if so this needs to be re-targeted to either 3.3 or 4.6

Fixed the issue via a042cf0. The other commits introduce more strictness.

For QA:

TBD if QA is needed / feasible.

@alongosz alongosz added the Bug Something isn't working label Apr 24, 2024
Base automatically changed from fix-missing-translation-cls-stringable to main April 25, 2024 08:09
@alongosz alongosz force-pushed the target-5.0/fix-plural-translatable-to-string branch from 747304d to ed870e1 Compare May 6, 2024 12:27
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented May 6, 2024

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@adamwojs
Copy link
Copy Markdown
Member

@alongosz Rebase is needed here

@alongosz alongosz force-pushed the target-5.0/fix-plural-translatable-to-string branch from ed870e1 to b356977 Compare June 22, 2024 12:22
@sonarqubecloud
Copy link
Copy Markdown

@alongosz alongosz marked this pull request as ready for review June 22, 2024 12:26
@alongosz
Copy link
Copy Markdown
Member Author

@alongosz Rebase is needed here

Done.
@adamwojs do we want to back-port a042cf0 to 4.6 or even 3.3?

@adamwojs
Copy link
Copy Markdown
Member

@alongosz It make sense for me.

@alongosz alongosz changed the title Fixed string substitution for Plural Value Object when casting to string IBX-8452: Fixed string substitution for Plural Value Object when casting to string Jun 25, 2024
@alongosz alongosz marked this pull request as draft June 25, 2024 08:33
@alongosz
Copy link
Copy Markdown
Member Author

Closing in favor of #394.

@alongosz alongosz closed this Jun 27, 2024
@alongosz alongosz deleted the target-5.0/fix-plural-translatable-to-string branch June 27, 2024 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants