Files
gerrit/java/com/google/gerrit/testing
Marco Miller ce07093cc2 ChangeQueryBuilder: Remove GerritServerConfig field injection
Replace with IndexConfig usage. Add index type support to IndexConfig
for that purpose. Add the necessary isElasticsearch method prototype to
IndexType, this one based on the String value of the checked index type.
Fix the IndexType toString method to consistently return the type String
value -instead of the object identity.

Apply the once postponed yet related review comment from Iaa452e5b (by
dborowitz) that way.

Move IndexType out of IndexModule to the non-server index package, so
that IndexConfig can use it. Non-server index package classes (such as
IndexConfig) cannot depend on server.index package classes. This is
because the latter package already depends on the former. This would
(then) otherwise introduce a circular dependency in the build graph.

Add the resulting Config-based constructor to IndexType. Remove the no
longer used getIndexType method from IndexModule in turn.

Bug: Issue 10889
Change-Id: I372708cb923c038f6310defe1abc3390e726edfd
2019-09-26 19:28:30 -04:00
..
2019-09-18 18:57:54 +09:00
2019-05-06 11:12:41 -07:00