felixcheung commented on a change in pull request #3271: [ZEPPELIN-3919] 
Paragraph config default value can be customized
URL: https://github.com/apache/zeppelin/pull/3271#discussion_r243751609
 
 

 ##########
 File path: 
zeppelin-zengine/src/main/java/org/apache/zeppelin/interpreter/InterpreterSettingManager.java
 ##########
 @@ -492,6 +493,22 @@ public ManagedInterpreterGroup 
getInterpreterGroupById(String groupId) {
     return editor;
   }
 
+  public Map<String, Object> getConfigSetting(String interpreterGroupId) {
+    InterpreterSetting interpreterSetting = get(interpreterGroupId);
+    if (null != interpreterSetting) {
+      List<InterpreterInfo> interpreterInfos = 
interpreterSetting.getInterpreterInfos();
+      for (InterpreterInfo intpInfo : interpreterInfos) {
+        if (intpInfo.isDefaultInterpreter() || (interpreterInfos.size() == 1)) 
{
+          if (intpInfo.getConfig() != null) {
 
 Review comment:
   merge L502 and 501?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to