Browse Source

Merge pull request #13949 in DESIGN/design from bugfix/11.0 to feature/x

* commit '1215d046e1c4fe43836d04946ddbdfe6accf8b13':
  修改方法名称
  修改方法名称
  REPORT-118163 获取到了数据集sql语句中注释的参数
  REPORT-118629 FRM并行计算偶发埋点记录失败
  INO-19848 fix:英文的翻譯會令客戶誤會
  无jira任务,修复单测
  REPORT-115482 fix: 客户模板中报表块单元格插入图片,预览报错,编辑卡死
feature/x
superman 6 months ago
parent
commit
fc895cfb9b
  1. 2
      designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java
  2. 7
      designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java
  3. 8
      designer-base/src/main/java/com/fr/design/style/background/image/ImagePreviewPane.java
  4. 2
      designer-base/src/test/java/com/fr/design/EnvChangeEntranceTest.java
  5. 2
      designer-form/src/main/java/com/fr/design/widget/ui/designer/ComboBoxDefinePane.java

2
designer-base/src/main/java/com/fr/design/data/datapane/preview/sql/PreviewPerformedSqlPane.java

@ -251,7 +251,7 @@ public class PreviewPerformedSqlPane extends JDialog implements ActionListener {
private static Parameter[] processParameters(DBTableData tableData, Calculator calculator) { private static Parameter[] processParameters(DBTableData tableData, Calculator calculator) {
ParameterProvider[] parameters = tableData.getParameters(); ParameterProvider[] parameters = tableData.getParameters();
if (parameters == null || parameters.length == 0) { if (parameters == null || parameters.length == 0) {
tableData.setParameters(ParameterHelper.analyze4Parameters(tableData.getQuery(), false)); tableData.setParameters(ParameterHelper.analyze4Parameters(tableData.getQueryWithoutComments(), false));
return new Parameter[0]; return new Parameter[0];
} }
return Parameter.providers2Parameter(Calculator.processParameters(calculator, parameters)); return Parameter.providers2Parameter(Calculator.processParameters(calculator, parameters));

7
designer-base/src/main/java/com/fr/design/record/analyzer/advice/MonitorAdvice.java

@ -88,8 +88,9 @@ public class MonitorAdvice implements DesignerAnalyzerAdvice {
MessageRecorderFactory.getInstance().syncSubmit(message); MessageRecorderFactory.getInstance().syncSubmit(message);
} }
} }
} catch (Exception ignore) { } catch (Exception ex) {
//埋点信息入库失败应该不能影响业务流程 //埋点信息入库失败应该不能影响业务流程
FineLoggerFactory.getLogger().debug("[Metric] failed to log message.", ex);
} finally { } finally {
sessionBinder.detachSession(); sessionBinder.detachSession();
} }
@ -113,7 +114,11 @@ public class MonitorAdvice implements DesignerAnalyzerAdvice {
} }
public static void recordSQLDetail(String uuid) { public static void recordSQLDetail(String uuid) {
try {
DBMeterFactory.getMeter().submit(uuid); DBMeterFactory.getMeter().submit(uuid);
} catch (Exception e) {
FineLoggerFactory.getLogger().debug("[Metric] failed to log sql detail.", e);
}
} }
public static void recordSQL(Compute once, MeasureObject measureObject) { public static void recordSQL(Compute once, MeasureObject measureObject) {

8
designer-base/src/main/java/com/fr/design/style/background/image/ImagePreviewPane.java

@ -9,6 +9,7 @@ import com.fr.base.Style;
import com.fr.design.gui.iscrollbar.UIScrollBar; import com.fr.design.gui.iscrollbar.UIScrollBar;
import com.fr.general.ImageWithSuffix; import com.fr.general.ImageWithSuffix;
import com.fr.log.FineLoggerFactory;
import com.fr.stable.CoreGraphHelper; import com.fr.stable.CoreGraphHelper;
import javax.swing.JComponent; import javax.swing.JComponent;
@ -92,9 +93,14 @@ public class ImagePreviewPane extends JComponent implements Scrollable, ImagePre
isLoading = false; isLoading = false;
CoreGraphHelper.waitForImage(image); CoreGraphHelper.waitForImage(image);
if (image.getFineImage() != null && image.getImage() != null) {
try {
imageWidth = image.getWidth(null); imageWidth = image.getWidth(null);
imageHeight = image.getHeight(null); imageHeight = image.getHeight(null);
} catch (Exception e) {
FineLoggerFactory.getLogger().error(e.getMessage(), e);
}
}
this.setToolTipText("Image Size: " + imageWidth + "x" + imageHeight + "px"); this.setToolTipText("Image Size: " + imageWidth + "x" + imageHeight + "px");
} }
fireChangeListener(); fireChangeListener();

2
designer-base/src/test/java/com/fr/design/EnvChangeEntranceTest.java

@ -49,7 +49,7 @@ public class EnvChangeEntranceTest {
EasyMock.expect(selectedEnv.getRemindTime()).andReturn(null); EasyMock.expect(selectedEnv.getRemindTime()).andReturn(null);
FunctionalHttpRequest request = EasyMock.mock(FunctionalHttpRequest.class); FunctionalHttpRequest request = EasyMock.mock(FunctionalHttpRequest.class);
EasyMock.expect(request.getServiceList()).andReturn(null); EasyMock.expect(request.getServiceList(connectionInfo)).andReturn(null);
PowerMock.expectNew(FunctionalHttpRequest.class, connectionInfo).andReturn(request).anyTimes(); PowerMock.expectNew(FunctionalHttpRequest.class, connectionInfo).andReturn(request).anyTimes();
EasyMock.expect(request.getServerBranch()).andReturn(remoteBranch); EasyMock.expect(request.getServerBranch()).andReturn(remoteBranch);

2
designer-form/src/main/java/com/fr/design/widget/ui/designer/ComboBoxDefinePane.java

@ -27,7 +27,7 @@ public class ComboBoxDefinePane extends DictEditorDefinePane<ComboBox> {
public Component[] createWaterMarkPane() { public Component[] createWaterMarkPane() {
waterMarkField = new UITextField(); waterMarkField = new UITextField();
return new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_WaterMark")), waterMarkField}; return new Component[]{new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_PlaceHolder")), waterMarkField};
} }
protected void populateSubDictionaryEditorBean(ComboBox ob){ protected void populateSubDictionaryEditorBean(ComboBox ob){

Loading…
Cancel
Save