Product-apim: API定義を編集できません

作成日 2020年02月25日  ·  3コメント  ·  ソース: wso2/product-apim

サンプルAPIを作成しました。
リソースの名前をmenuからmenu123に変更し、クリックしてコンテンツを更新すると
Screenshot from 2020-02-25 15-10-05

オーバービューで、menu123へのリソース変更の名前を見ることができます
Screenshot from 2020-02-25 15-17-58

次に、ランタイム構成で[保存]をクリックするだけで、メニューに戻ります
前に
Screenshot from 2020-02-25 15-26-14

Screenshot from 2020-02-25 15-27-05

3.1.0 PrioritHigh React-UI TypQuestion

全てのコメント3件

助けて~~

@Thangthanh 、回避策として、以下の手順に従うことができます。

  1. Swagger定義を更新する
  2. [ライフサイクル]タブからAPIを再デプロイします

再デプロイ後、実行時構成に変更を加えても、リソースに加えられた変更には影響しません。

@Thangthanh

この問題を報告していただきありがとうございます。

@ vithu30

この問題の潜在的な修正は次のとおりです。

diff --git a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
index b14a6305a9..fafd494bba 100644
--- a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
+++ b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/APIDefinition/APIDefinition.jsx
@@ -317,7 +317,7 @@ class APIDefinition extends React.Component {
      * <strong i="11">@param</strong> {string} toFormat The format it can be converted to.
      * */
     updateSwaggerDefinition(swaggerContent, specFormat, toFormat) {
-        const { api, intl } = this.props;
+        const { api, intl, updateAPI } = this.props;
         let parsedContent = {};
         if (this.hasJsonStructure(swaggerContent)) {
             parsedContent = JSON.parse(swaggerContent);
@@ -351,6 +351,7 @@ class APIDefinition extends React.Component {
                         this.setState({ swagger: swaggerContent });
                     }
                 }
+                updateAPI();
             })
             .catch((err) => {
                 console.log(err);
diff --git a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
index e18f4b1de4..5764c2e1aa 100644
--- a/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
+++ b/features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Apis/Details/index.jsx
@@ -651,7 +651,7 @@ class Details extends Component {
                                 <Route path={Details.subPaths.OVERVIEW} component={() => <Overview api={api} />} />
                                 <Route
                                     path={Details.subPaths.API_DEFINITION}
-                                    component={() => <APIDefinition api={api} />}
+                                    component={() => <APIDefinition api={api} updateAPI={this.updateAPI} />}
                                 />
                                 <Route
                                     path={Details.subPaths.WSDL}
このページは役に立ちましたか?
0 / 5 - 0 評価