Skip to content

Commit

Permalink
fix review
Browse files Browse the repository at this point in the history
  • Loading branch information
slievrly committed Jan 8, 2024
1 parent 14f28ce commit 504c78c
Show file tree
Hide file tree
Showing 9 changed files with 31 additions and 31 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ Depending on the scenario, choose one of the two dependencies: `io.seata:seata-a

## Quick Start

[Quick Start](https://seata.apache.org/zh-cn/docs/ops/deploy-guide-beginner.html)
[Quick Start](https://seata.apache.org/zh-cn/docs/ops/deploy-guide-beginner)

## Documentation


You can view the full documentation from Seata Official Website: [Seata Website page](https://seata.apache.org/zh-cn/docs/overview/what-is-seata.html).
You can view the full documentation from Seata Official Website: [Seata Website page](https://seata.apache.org/zh-cn/docs/overview/what-is-seata).

## Reporting bugs

Expand Down
2 changes: 1 addition & 1 deletion saga/seata-saga-statemachine-designer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ $ npm run build
copy 'index.html' and 'dist' directory to static html directory of web server

## Usage
To understand the state types of the state machine, please see [document of Saga](https://seata.apache.org/zh-cn/docs/user/saga.html). After using the designer to complete the design of the state machine, you can click the 'Json View' button on the toolbar to switch to the Json view, and save the Json to the project of your own application. Although the Json generated by the designer is different from the standard Json of the Saga state machine (because the json generated by the designer has layout information), the state machine can be directly loaded and it will be converted into the Json of the Saga state machine standard.
To understand the state types of the state machine, please see [document of Saga](https://seata.apache.org/zh-cn/docs/user/mode/saga). After using the designer to complete the design of the state machine, you can click the 'Json View' button on the toolbar to switch to the Json view, and save the Json to the project of your own application. Although the Json generated by the designer is different from the standard Json of the Saga state machine (because the json generated by the designer has layout information), the state machine can be directly loaded and it will be converted into the Json of the Saga state machine standard.
2 changes: 1 addition & 1 deletion saga/seata-saga-statemachine-designer/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ $ npm run build
然后将index.html和dist目录拷贝到web server的静态页面目录下

## 使用
了解状态机的种状态类型,请看Saga的[文档](https://seata.apache.org/zh-cn/docs/user/saga.html)。 通过设计器完成设计后可以点击工具栏的'Json View'按钮切换到Json视图,将Json拷贝保存到自己应用的工程里。虽然设计器生成的Json与Saga标准的Json有所差别(因为设计器生成的json带有布局信息),但状态机可以直接加载,它会将其转化成Saga状态机标准的Json。
了解状态机的种状态类型,请看Saga的[文档](https://seata.apache.org/zh-cn/docs/user/mode/saga)。 通过设计器完成设计后可以点击工具栏的'Json View'按钮切换到Json视图,将Json拷贝保存到自己应用的工程里。虽然设计器生成的Json与Saga标准的Json有所差别(因为设计器生成的json带有布局信息),但状态机可以直接加载,它会将其转化成Saga状态机标准的Json。
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ class DetailForm extends React.Component {
initialValue: JSON.stringify(stateProps, null, 2),
})(<TextArea onBlur={this.handleSubmit} rows={16} />)}
</Item>
<a target="_blank" style={{ float: 'right' }} href="https://seata.apache.org/zh-cn/docs/user/saga.html">How to fill the properties?</a>
<a target="_blank" style={{ float: 'right' }} href="https://seata.apache.org/zh-cn/docs/user/mode/saga">How to fill the properties?</a>
</Fragment >
);
};
Expand All @@ -142,7 +142,7 @@ class DetailForm extends React.Component {
initialValue: JSON.stringify(stateProps, null, 2),
})(<TextArea onBlur={this.handleSubmit} rows={16} />)}
</Item>
<a target="_blank" style={{ float: 'right' }} href="https://seata.apache.org/zh-cn/docs/user/saga.html">How to fill the properties?</a>
<a target="_blank" style={{ float: 'right' }} href="https://seata.apache.org/zh-cn/docs/user/mode/saga">How to fill the properties?</a>
</Fragment>
);
};
Expand Down
2 changes: 1 addition & 1 deletion script/config-center/config.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#For details about configuration items, see https://seata.apache.org/zh-cn/docs/user/configurations.html
#For details about configuration items, see https://seata.apache.org/zh-cn/docs/user/configurations
#Transport configuration, for client and server
transport.type=TCP
transport.server=NIO
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,36 +123,36 @@ public boolean isSqlSyntaxSupports() {
public boolean visit(SQLInSubQueryExpr x) {
//just like: ...where id in (select id from t)
throw new NotSupportYetException("not support the sql syntax with InSubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLSubqueryTableSource x) {
//just like: select * from (select * from t)
throw new NotSupportYetException("not support the sql syntax with SubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLReplaceStatement x) {
//just like: replace into t (id,dr) values (1,'2'), (2,'3')
throw new NotSupportYetException("not support the sql syntax with ReplaceStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLMergeStatement x) {
//just like: merge into ... WHEN MATCHED THEN ...
throw new NotSupportYetException("not support the sql syntax with MergeStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLInsertStatement x) {
if (null != x.getQuery()) {
//just like: insert into t select * from t1
throw new NotSupportYetException("not support the sql syntax insert with query:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,22 @@ public boolean isSqlSyntaxSupports() {
public boolean visit(OracleSelectJoin x) {
//just like: UPDATE table a INNER JOIN table b ON a.id = b.pid ...
throw new NotSupportYetException("not support the sql syntax with join table:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(OracleUpdateStatement x) {
if (x.getTableSource() instanceof OracleSelectSubqueryTableSource) {
//just like: "update (select a.id,a.name from a inner join b on a.id = b.id) t set t.name = 'xxx'"
throw new NotSupportYetException("not support the sql syntax with join table:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
List<SQLUpdateSetItem> updateSetItems = x.getItems();
for (SQLUpdateSetItem updateSetItem : updateSetItems) {
if (updateSetItem.getValue() instanceof SQLQueryExpr) {
//just like: "update a set a.id = (select id from b where a.pid = b.pid)"
throw new NotSupportYetException("not support the sql syntax with join table:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
}
return true;
Expand All @@ -151,36 +151,36 @@ public boolean visit(OracleUpdateStatement x) {
public boolean visit(SQLInSubQueryExpr x) {
//just like: ...where id in (select id from t)
throw new NotSupportYetException("not support the sql syntax with InSubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(OracleSelectSubqueryTableSource x) {
//just like: select * from (select * from t) for update
throw new NotSupportYetException("not support the sql syntax with SubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLReplaceStatement x) {
//just like: replace into t (id,dr) values (1,'2'), (2,'3')
throw new NotSupportYetException("not support the sql syntax with ReplaceStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLMergeStatement x) {
//just like: merge into ... WHEN MATCHED THEN ...
throw new NotSupportYetException("not support the sql syntax with MergeStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLInsertStatement x) {
if (null != x.getQuery()) {
//just like: insert into t select * from t1
throw new NotSupportYetException("not support the sql syntax insert with query:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,15 @@ public boolean isSqlSyntaxSupports() {
public boolean visit(SQLSubqueryTableSource x) {
//just like: select * from (select * from t) for update
throw new NotSupportYetException("not support the sql syntax with SubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(PGUpdateStatement x) {
if (x.getFrom() != null) {
//just like: update a set id = b.pid from b where a.id = b.id
throw new NotSupportYetException("not support the sql syntax with join table:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
return true;
}
Expand All @@ -101,29 +101,29 @@ public boolean visit(PGUpdateStatement x) {
public boolean visit(SQLInSubQueryExpr x) {
//just like: ...where id in (select id from t)
throw new NotSupportYetException("not support the sql syntax with InSubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLReplaceStatement x) {
//just like: replace into t (id,dr) values (1,'2'), (2,'3')
throw new NotSupportYetException("not support the sql syntax with ReplaceStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLMergeStatement x) {
//just like: merge into ... WHEN MATCHED THEN ...
throw new NotSupportYetException("not support the sql syntax with MergeStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(PGInsertStatement x) {
if (null != x.getQuery()) {
//just like: insert into t select * from t1
throw new NotSupportYetException("not support the sql syntax insert with query:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,36 +114,36 @@ public boolean isSqlSyntaxSupports() {
public boolean visit(SQLInSubQueryExpr x) {
//just like: ...where id in (select id from t)
throw new NotSupportYetException("not support the sql syntax with InSubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLSubqueryTableSource x) {
//just like: select * from (select * from t)
throw new NotSupportYetException("not support the sql syntax with SubQuery:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLReplaceStatement x) {
//just like: replace into t (id,dr) values (1,'2'), (2,'3')
throw new NotSupportYetException("not support the sql syntax with ReplaceStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLMergeStatement x) {
//just like: merge into ... WHEN MATCHED THEN ...
throw new NotSupportYetException("not support the sql syntax with MergeStatement:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}

@Override
public boolean visit(SQLInsertStatement x) {
if (null != x.getQuery()) {
//just like: insert into t select * from t1
throw new NotSupportYetException("not support the sql syntax insert with query:" + x
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml.html");
+ "\nplease see the doc about SQL restrictions https://seata.apache.org/zh-cn/docs/user/sqlreference/dml");
}
return true;
}
Expand Down

0 comments on commit 504c78c

Please sign in to comment.