Skip to content

Undeprecate catalogConfigUnsafe()#1970

Closed
dimas-b wants to merge 1 commit intoapache:mainfrom
dimas-b:undeprecate-compat-config
Closed

Undeprecate catalogConfigUnsafe()#1970
dimas-b wants to merge 1 commit intoapache:mainfrom
dimas-b:undeprecate-compat-config

Conversation

@dimas-b
Copy link
Contributor

@dimas-b dimas-b commented Jun 27, 2025

As discussed in #1894, catalogConfigUnsafe() has a use case in the main codebase - that is to support gradual migration to new property names.

Using legacy names in runtime already leads to a user-face WARN log message.

As discussed in apache#1894, `catalogConfigUnsafe()` has a use case in the
main codebase - that is to support gradual migration to new property
names.

Using legacy names in runtime already leads to a user-face WARN log message.

Support for those legacy property names is to be dropped in 2.0.
@eric-maynard
Copy link
Contributor

Support for those legacy property names is to be dropped in 2.0.

If that's true, wouldn't we also drop the method catalogConfigUnsafe? And, if so, isn't it fair to say the method is marked as deprecated for removal in 2.0?

@dimas-b
Copy link
Contributor Author

dimas-b commented Jun 27, 2025

I removed Support for those legacy property names is to be dropped in 2.0. from the description for now. We can decide what to unsupport and when on a case-by-case basis.

@dimas-b
Copy link
Contributor Author

dimas-b commented Jun 27, 2025

[...] isn't it fair to say the method is marked as deprecated for removal in 2.0?

I'd expect that we may want to rename other properties as the project matures... catalogConfigUnsafe() might still be useful after 2.0.

@eric-maynard
Copy link
Contributor

eric-maynard commented Jun 27, 2025 via email

@dimas-b
Copy link
Contributor Author

dimas-b commented Jun 27, 2025

I see your point now @eric-maynard . In this case, I believe changes in #1894 are actually correct (no need to span build logs with warnings about known calls to catalogConfigUnsafe()) and sufficient for now. We should not add any new calls to catalogConfigUnsafe() and probably remove it in 2.0. I'll file an issue for that.

@dimas-b
Copy link
Contributor Author

dimas-b commented Jun 27, 2025

Cf. #1974

@dimas-b dimas-b closed this Jun 27, 2025
@github-project-automation github-project-automation bot moved this from PRs In Progress to Done in Basic Kanban Board Jun 27, 2025
@dimas-b dimas-b deleted the undeprecate-compat-config branch June 27, 2025 23:33
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.

2 participants