-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[java] remove deprecated classes and their tests #13200
[java] remove deprecated classes and their tests #13200
Conversation
I'm going to merge #13198 & #13199 for 4.16. @diemol what do you think? |
Yes. Good idea. Thank you, @RevealOscar! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @RevealOscar!
* add mini blog * Update website_and_docs/content/blog/2023/java-removal-of-deprecated-events-classes.md --------- Co-authored-by: Diego Molina <[email protected]> Merging as SeleniumHQ/selenium#13200 got merged. [deploy site]
* add mini blog * Update website_and_docs/content/blog/2023/java-removal-of-deprecated-events-classes.md --------- Co-authored-by: Diego Molina <[email protected]> Merging as SeleniumHQ/selenium#13200 got merged. [deploy site] 26d7cfd
@diemol I think it was too early to merge this PR. #13210 is not completed, it closes the gap and provide the full replacement for the functionality removed by this PR. IMHO the expected flow should be:
The functionality is removed from |
This PR is not in a production release. It is in preparation for 4.17 which will be released at the beginning of the year. What we have here is 95+% solution and addresses 99+% of use cases from existing users. You can always create your own That said, you're right, there are more things we need to do in #13210, and we want to get that out in 4.17 as well. @RevealOscar how is that PR going? Do you have time to work on that in the next few weeks? Do you want help finishing it up? |
Yes, this is clear. My comment is aimed at potentially minimizing risks. For now, we've removed the deprecated functionality. However, the replacement is not ready yet and hasn't undergone testing since we don't fully comprehend all the use cases; we can merely conjecture. This sets up the risk of losing certain functionalities in the next release, or releasing functionality that may not meet user needs. In other words, users may face difficulties migrating to newer versions.
Let's be honest, we don't know usage statistics 😄
Certainly, it's possible. However, the issue is that users would need to implement workarounds for the reworked functionalities that are not yet usable. In essence, the rework would not present any value, only result in losses. My proposal:
If the team lacks of resources and time, I can help with implementation of #13210. |
This might be true. However, most people do not move to a new implementation until the deprecated code is no longer there. We have seen this when we released Selenium 4 and other major versions. So yeah, we could have both sets of code, even a fully completed and featured new listener, but that does not mean people move to it. The old one has been deprecated for a long time, and I believe you have been the only one raising concerns. I would say we focus on finishing #13210 and being reactive to issue reports. |
I'm on record that I think all of this code should be removed from Selenium entirely and implemented by someone else in a separate package. The only reason I'm spending any time reviewing this at all is to support deleting deprecated code. If you can find a single reference anywhere online to someone using a Listener method that isn't supported in the current implementation, I'll happily provide a public mea-culpa. But I've removed support for many features that had more users than this, so I'm more than happy to upset the one person who may be using this. 😂 Let's see where Oscar is at in availability before we jump in with additional help. |
I use Listener methods which are not supported yet, I can't move to new implementation and need to live with deprecated API, that's why I'm so active in this topic 😉 : |
Can you add the missing methods to #13210? Either as a comment or as a code example. |
@diemol @valfirst @titusfortner I don't mind adding or having someone else add the target locator stuff thats missing to #13210 |
Thanks for contributing to Selenium!
A PR well described will help maintainers to quickly review and merge it
Before submitting your PR, please check our contributing guidelines.
Avoid large PRs, help reviewers by making them as simple and short as possible.
remove deprecated event classes. extension of #12578
Description
Motivation and Context
Types of changes
Checklist