[ 
https://issues.apache.org/jira/browse/SOLR-17518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17933684#comment-17933684
 ] 

ASF subversion and git services commented on SOLR-17518:
--------------------------------------------------------

Commit aa6b3761f8475a7a5f14d807fad91068678131f2 in solr's branch 
refs/heads/deprecations from Pierre Salagnac
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=aa6b3761f84 ]

SOLR-17518: Deprecate UpdateRequest.getXml() and replace it with 
XMLRequestWriter (#3200)



> Refactor out a XmlRequestWriter so that RequestWriter is abstract
> -----------------------------------------------------------------
>
>                 Key: SOLR-17518
>                 URL: https://issues.apache.org/jira/browse/SOLR-17518
>             Project: Solr
>          Issue Type: Task
>          Components: SolrJ
>            Reporter: David Smiley
>            Assignee: Pierre Salagnac
>            Priority: Minor
>              Labels: newdev, pull-request-available
>             Fix For: main (10.0)
>
>          Time Spent: 2h 20m
>  Remaining Estimate: 0h
>
> RequestWriter writes XML; some subclasses write other things.  This is 
> terrible API design; the XML choice should be a subclass, RequestWriter 
> should be abstract (or an interface).
> While we're at this, the XML generation is kind of split into multiple 
> places; it should be consolidated: UpdateRequest & ClientUtils have XML 
> generation methods.  Those methods should move to the new XmlRequestWriter.
> BinaryRequestWriter should probably be final and/or ensure the CBOR one does 
> not subclass it, which is weird since CBOR != "javabin".
> Be sure to note this refactoring in the update notes since SolrJ users will 
> be impacted.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to