nick-boss-tech commented on code in PR #5370:
URL: https://github.com/apache/solr/pull/5370#discussion_r4656422866


##########
solr/core/src/java/org/apache/solr/handler/designer/SchemaDesignerConfigSetHelper.java:
##########
@@ -585,6 +589,35 @@ ManagedIndexSchema loadLatestSchema(String configSet) {
     return loadLatestSchema(loadSolrConfig(configSet));
   }
 
+  List<Language> listAvailableLanguages() throws IOException {
+    if 
(!cc.getConfigSetService().checkConfigExists(MULTILINGUAL_CONFIGSET_NAME)) {
+      return List.of();

Review Comment:
   🤖 *AI text below* 🤖
   
   On a slim installation without `_multilingual`, this disables the language 
selector even if an existing configset contains language types. For example, an 
upgraded cluster can retain the old `_default` configset in ZooKeeper. Could 
Designer still offer the languages from the schema being edited in that case?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


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

Reply via email to