Eric Pugh created SOLR-18702:
--------------------------------
Summary: 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
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).
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]