[ https://issues.apache.org/jira/browse/SOLR-8560?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shai Erera updated SOLR-8560: ----------------------------- Attachment: SOLR-8560.patch Patch introduces {{RequestStatusState}} and replaces code which did e.g. {{state.equals("completed")}} with {{state == RequestStatusState.COMPLETED}}. I also cleaned up {{CollectionsHandler.CollectionOperation.REQUESTSTATUS_OP}} a bit. > Add RequestStatusState enum > --------------------------- > > Key: SOLR-8560 > URL: https://issues.apache.org/jira/browse/SOLR-8560 > Project: Solr > Issue Type: Improvement > Components: clients - java > Reporter: Shai Erera > Assignee: Shai Erera > Priority: Minor > Fix For: 5.5, Trunk > > Attachments: SOLR-8560.patch > > > The REQUESTSTATUS API returns a "state" that is currently a String. This > issue adds a {{RequestStatusState}} enum with the currently returned > constants, for easier integration by clients. For backwards compatibility it > parses the returned state in a lowercase form, as well resolve "notfound" to > {{NOT_FOUND}}. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org