-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Mark former OIDC config class fields for removal #46317
Mark former OIDC config class fields for removal #46317
Conversation
Status for workflow
|
🎊 PR Preview a6413e3 has been successfully built and deployed to https://quarkus-pr-main-46317-preview.surge.sh/version/main/guides/
|
Status for workflow
|
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.
Hi Michal, thanks, LGTM, but I wonder, should we try to mark the whole legacy class tree deprecated and mark it for removal ? I had a quick look, as far as recall, a few more factory methods reinitializing OidcTenantConfig interface impl were needed to support some of the OIDC recorder code.
We can merge it if you'd like, but I guess we won't be able to remove anything later without deprecating classes
I don't have firm opinon on this, but I'll share it:
I deprecated
We can avoid making
I think we can agree that changes in this PR should be done. My proposal is that I open a PR or two that address the fields that are still edited and one of following things happen:
|
The problem was, even if new interface methods were used, they were still marked as deprecated
IMHO we should deprecate it too, we have new interface. For those few cases where we internally need to modify the tenant id or some other property we can have some specifically named factory methods which would return a new interface instance...
OK, thanks |
But new interface classes are not part of public API while |
yes, I agreed with that change, but we can't have both 🤷 |
@michalvavrik Hey,
That class is not meant to be an API any more, The only reason I moved to API (it was internal long time ago) was because of
Sure, indeed, the short term is indeed about removing all those deprecated warnings, I can help as well. And then, once we remove those deprecations, I'm quite sure there will not too many reasons remaining to keep the legacy |
Agreed @sberyozkin, thanks for the context. |
Thanks @michalvavrik, ideally, at some point in the future, we'd not be required to modify both OidcTenantConfigImpl and this OidcTenantConfig every time a new property is added :-), I appreciate we need to do it now though |
This should give users impulse to migrate as we will eventually remove them, though not anytime soon.