-
Notifications
You must be signed in to change notification settings - Fork 624
Small indexing fixes #3275
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
Small indexing fixes #3275
Conversation
Coverage Report 1Affected Products
Test Logs
Notes |
Size Report 1Affected Products
Test Logs
Notes |
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.
lgtm
@@ -307,6 +307,10 @@ public FirebaseApp getApp() { | |||
Task<Void> setIndexConfiguration(String json) { | |||
ensureClientConfigured(); | |||
|
|||
if (!settings.isPersistenceEnabled()) { | |||
throw new IllegalStateException("Cannot enable indexes when persisted is disabled"); |
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.
s/persisted/persistence
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.
Done
JSONArray indices = jsonObject.getJSONArray("indexes"); | ||
for (int i = 0; i < indices.length(); ++i) { | ||
JSONObject definition = indices.getJSONObject(i); | ||
JSONArray indexes = jsonObject.getJSONArray("indexes"); |
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.
nit: rename parsedIndices
to parsedIndexes
.
@schmidt-sebastian: The following test failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
No description provided.