Skip to content

Commit

Permalink
Bugfix/tempmock decode error (#872)
Browse files Browse the repository at this point in the history
* fix,inspector request miss data

* Fix the bug where requests that need decoding/encoding cannot be temporarily mocked successfully.
  • Loading branch information
echoyang7 authored Aug 23, 2024
1 parent 53d8051 commit 25d6576
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend/src/views/inspector/FlowDetail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ export default {
newData['response'] = newResp
newData.id = this.editorCache.id
newData['lyrebirdInternalFlow'] = 'tempmock'
this.$store.dispatch('createTempMockData', newData)
},
Expand Down
1 change: 1 addition & 0 deletions lyrebird/mock/blueprints/apis/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ def post(self):
data = request.json.get('data')

if parent_id == 'tmp_group':
application.encoders_decoders.encoder_handler(data)
new_data_id = context.application.data_manager.temp_mock_tree.add_data(data)
return application.make_ok_response(data_id=new_data_id)

Expand Down
2 changes: 1 addition & 1 deletion lyrebird/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
IVERSION = (3, 0, 5)
IVERSION = (3, 0, 6)
VERSION = ".".join(str(i) for i in IVERSION)
LYREBIRD = "Lyrebird " + VERSION

0 comments on commit 25d6576

Please sign in to comment.