[ 
https://issues.apache.org/jira/browse/SOLR-18702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Eric Pugh updated SOLR-18702:
-----------------------------
    Description: 
Follow-up to SOLR-18701 (if the prefixed-operationId approach in PR #5422 is 
the one merged, which I expect!). Some v2 methods put the resource name into 
the method name, apparently to avoid an operationId collision. Now that a 
colliding method can keep its natural name and set a {{<tag>_<methodName>}} 
operationId, rename:
 * {{CollectionSnapshotApis.createCollectionSnapshot}} -> {{createSnapshot}} 
(operationId {{{}collectionSnapshots_createSnapshot{}}})
 * {{CollectionSnapshotApis.deleteCollectionSnapshot}} -> {{deleteSnapshot}} 
(operationId {{{}collectionSnapshots_deleteSnapshot{}}})
 * {{CollectionBackupApi.createCollectionBackup}} -> {{createBackup}} 
(operationId {{{}collectionBackups_createBackup{}}})
 * Schema Designer (SOLR-18700, PR #5420): {{deleteDesignerField}} / 
{{deleteDesignerDynamicField}} / {{deleteDesignerFieldType}} -> {{deleteField}} 
/ {{deleteDynamicField}} / {{deleteFieldType}} (operationIds 
{{{}schemaDesigner_...{}}})

The snapshot and backup methods shipped in 10.1 (snapshots in 9.x too), so 
renaming them changes SolrJ class names, e.g. 
{{CollectionSnapshotsApi.CreateCollectionSnapshot}} -> {{{}CreateSnapshot{}}}. 
That needs an entry in the 10.2 SolrJ upgrade notes. HTTP endpoints are 
unchanged. The Schema Designer names are unreleased, so they can be renamed for 
free.

Left as is: {{ClusterCommandsApi.getClusterCommandStatus}} (its sibling methods 
consistently include "Cluster") and 
{{{}GetSchemaApi.listSchemaFields{}}}/{{{}listSchemaFieldTypes{}}} 
(inconsistent, but no collision drove it).   Maybe now is the time to fix that? 
 Since we are still in our Experimental about to change time!

  was:
Follow-up to SOLR-18701 (if the prefixed-operationId approach in PR #5422 is 
the one merged). Some v2 methods put the resource name into the method name, 
apparently to avoid an operationId collision. Now that a colliding method can 
keep its natural name and set a {{<tag>_<methodName>}} operationId, rename:

* {{CollectionSnapshotApis.createCollectionSnapshot}} -> {{createSnapshot}} 
(operationId {{collectionSnapshots_createSnapshot}})
* {{CollectionSnapshotApis.deleteCollectionSnapshot}} -> {{deleteSnapshot}} 
(operationId {{collectionSnapshots_deleteSnapshot}})
* {{CollectionBackupApi.createCollectionBackup}} -> {{createBackup}} 
(operationId {{collectionBackups_createBackup}})
* Schema Designer (SOLR-18700, PR #5420): {{deleteDesignerField}} / 
{{deleteDesignerDynamicField}} / {{deleteDesignerFieldType}} -> {{deleteField}} 
/ {{deleteDynamicField}} / {{deleteFieldType}} (operationIds 
{{schemaDesigner_...}})

The snapshot and backup methods shipped in 10.1 (snapshots in 9.x too), so 
renaming them changes SolrJ class names, e.g. 
{{CollectionSnapshotsApi.CreateCollectionSnapshot}} -> {{CreateSnapshot}}. That 
needs an entry in the 10.2 SolrJ upgrade notes. HTTP endpoints are unchanged. 
The Schema Designer names are unreleased, so they can be renamed for free.

Left as is: {{ClusterCommandsApi.getClusterCommandStatus}} (its sibling methods 
consistently include "Cluster") and 
{{GetSchemaApi.listSchemaFields}}/{{listSchemaFieldTypes}} (inconsistent, but 
no collision drove it).


> Use shorter verb+noun names for collection snapshot/backup and Schema 
> Designer delete v2 APIs
> ---------------------------------------------------------------------------------------------
>
>                 Key: SOLR-18702
>                 URL: https://issues.apache.org/jira/browse/SOLR-18702
>             Project: Solr
>          Issue Type: Sub-task
>            Reporter: Eric Pugh
>            Priority: Major
>
> Follow-up to SOLR-18701 (if the prefixed-operationId approach in PR #5422 is 
> the one merged, which I expect!). Some v2 methods put the resource name into 
> the method name, apparently to avoid an operationId collision. Now that a 
> colliding method can keep its natural name and set a {{<tag>_<methodName>}} 
> operationId, rename:
>  * {{CollectionSnapshotApis.createCollectionSnapshot}} -> {{createSnapshot}} 
> (operationId {{{}collectionSnapshots_createSnapshot{}}})
>  * {{CollectionSnapshotApis.deleteCollectionSnapshot}} -> {{deleteSnapshot}} 
> (operationId {{{}collectionSnapshots_deleteSnapshot{}}})
>  * {{CollectionBackupApi.createCollectionBackup}} -> {{createBackup}} 
> (operationId {{{}collectionBackups_createBackup{}}})
>  * Schema Designer (SOLR-18700, PR #5420): {{deleteDesignerField}} / 
> {{deleteDesignerDynamicField}} / {{deleteDesignerFieldType}} -> 
> {{deleteField}} / {{deleteDynamicField}} / {{deleteFieldType}} (operationIds 
> {{{}schemaDesigner_...{}}})
> The snapshot and backup methods shipped in 10.1 (snapshots in 9.x too), so 
> renaming them changes SolrJ class names, e.g. 
> {{CollectionSnapshotsApi.CreateCollectionSnapshot}} -> 
> {{{}CreateSnapshot{}}}. That needs an entry in the 10.2 SolrJ upgrade notes. 
> HTTP endpoints are unchanged. The Schema Designer names are unreleased, so 
> they can be renamed for free.
> Left as is: {{ClusterCommandsApi.getClusterCommandStatus}} (its sibling 
> methods consistently include "Cluster") and 
> {{{}GetSchemaApi.listSchemaFields{}}}/{{{}listSchemaFieldTypes{}}} 
> (inconsistent, but no collision drove it).   Maybe now is the time to fix 
> that?  Since we are still in our Experimental about to change time!



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to