From cc3068e2e7ffff5a774a7c1156476e03435030aa Mon Sep 17 00:00:00 2001 From: echoyang7 <50300391+echoyang7@users.noreply.github.com> Date: Wed, 29 Nov 2023 15:38:37 +0800 Subject: [PATCH] Feature/flow add apidiffconfig (#802) * flow add apidiffconfig --------- Co-authored-by: yangfan100 --- frontend/src/views/datamanager/DataDetailHttpData.vue | 3 ++- lyrebird/mock/handlers/mock_handler.py | 1 + lyrebird/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/views/datamanager/DataDetailHttpData.vue b/frontend/src/views/datamanager/DataDetailHttpData.vue index 6ba7585ff..5bcafe459 100644 --- a/frontend/src/views/datamanager/DataDetailHttpData.vue +++ b/frontend/src/views/datamanager/DataDetailHttpData.vue @@ -212,7 +212,8 @@ export default { this.editorCache.info = JSON.stringify({ id: val.id, name: val.name, - rule: val.rule + rule: val.rule, + apiDiffConfig: val.apiDiffConfig }) this.editorCache.req = JSON.stringify({ url: val.request.url, diff --git a/lyrebird/mock/handlers/mock_handler.py b/lyrebird/mock/handlers/mock_handler.py index 4492e31e0..311c421ef 100644 --- a/lyrebird/mock/handlers/mock_handler.py +++ b/lyrebird/mock/handlers/mock_handler.py @@ -91,4 +91,5 @@ def handle(self, handler_context): 'group_id': activated_group['id'], 'mock_id': hit_data['id'] }) + handler_context.flow['apiDiffConfig'] = hit_data.get('apiDiffConfig') MockDataHelper.read_mock_data(handler_context) diff --git a/lyrebird/version.py b/lyrebird/version.py index fd8ffe04f..7388cfd6b 100644 --- a/lyrebird/version.py +++ b/lyrebird/version.py @@ -1,3 +1,3 @@ -IVERSION = (2, 21, 2) +IVERSION = (2, 22, 0) VERSION = ".".join(str(i) for i in IVERSION) LYREBIRD = "Lyrebird " + VERSION