elasticsearch/libs/core
Yang Wang 8d376c89ce ProjectResolver.getProjectId now takes no argument (MP-1749)
A ProjectResolver should be able to fetch the ProjectId without the need
of a cluster state. This PR changes the method to take no argument and
fixes cascading changes. It also adds a separate ProjectIdResolver
interface to host the new no-arg getProjectId method. The existing
ProjectResolver interface extends the new interface.

The major impact of the change is for tests and test helpers. It has
been made more obvious that most tests rely on the default project ID.
Previously this was hidden by the no arg `singleProjectOnly()` that just
pops the only project from cluster state. This only project is the
default project anyway in the current tests. The change just made this
fact explicit which I think is not a bad thing. We can definitely tidy
up the tests and test helpers once more pieces fall into places. Happy
to take suggestions.
2024-11-07 11:21:38 +11:00
..
src ProjectResolver.getProjectId now takes no argument (MP-1749) 2024-11-07 11:21:38 +11:00
build.gradle Use directory name as project name for libs (#115720) 2024-10-29 13:02:28 -07:00