Skip to content
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

[Form] Fix custom formats deprecation with HTML5 widgets #37837

Merged
merged 1 commit into from Sep 24, 2020

Conversation

fancyweb
Copy link
Contributor

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #37698
License MIT
Doc PR -
  1. The options resolver only show the deprecations for user defined (overidden) options.
  2. The default value of the html5 option is enough to pass the logical condition of the callback.

That means that only setting the format option (like in the reproducer) does not trigger the deprecation while it should. I think we need a feature in the options resolver component to handle those kind of cases 🤷‍♂️

Meanwhile, we can fix the issue by "deprecating" all the concerned options of the logical condition of the callback.

@fancyweb
Copy link
Contributor Author

Looking at the failing tests I just noticed I did not fix all cases yet. Before putting more efforts in, what do you think of the proposed solution @xabbuh?

@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Aug 31, 2020
@nicolas-grekas
Copy link
Member

@fancyweb up to move this forward?
@xabbuh any comment?

@xabbuh
Copy link
Member

xabbuh commented Sep 1, 2020

@fancyweb Isn't the test just failing because of the bug you are fixing here? I mean the test does not set the html5 option and thus now the deprecation is properly triggered which wasn't the case before while it should have been.

@fabpot
Copy link
Member

fabpot commented Sep 19, 2020

@fancyweb Can you have a look at the last comment?

@fancyweb
Copy link
Contributor Author

@xabbuh I finally took the time to look at this and you were right. I set the html5 option to false on the failing test.

@fabpot
Copy link
Member

fabpot commented Sep 24, 2020

Thank you @fancyweb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants