Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1563 +/- ##
==========================================
- Coverage 76.81% 76.46% -0.36%
==========================================
Files 92 91 -1
Lines 14325 14398 +73
==========================================
+ Hits 11004 11009 +5
- Misses 3321 3389 +68
Continue to review full report at Codecov.
|
hhyo
reviewed
Jun 3, 2022
| result = {'status': 1, 'msg': '暂时不支持%s类型数据库通过进程id构建请求' % instance.db_type , 'data': []} | ||
| return HttpResponse(json.dumps(result), content_type='application/json') | ||
| # 返回查询结果 | ||
| return HttpResponse(json.dumps(result, cls=ExtendJSONEncoder, bigint_as_string=True), |
Owner
There was a problem hiding this comment.
上面已经移除了simplejson,这个序列化包含bigint_as_string,是否会报错?
Collaborator
Author
There was a problem hiding this comment.
>>> from common.utils.extend_json_encoder import ExtendJSONEncoder, ExtendJSONEncoderBytes
>>> import json
>>> result={"a":11111111111111111111111111111111111111111111111111111111111}
>>> json.dumps(result, cls=ExtendJSONEncoder, bigint_as_string=True)
'{"a": "11111111111111111111111111111111111111111111111111111111111"}'
使用ExtendJSONEncoder这个类就没有问题
Collaborator
Author
|
这样改动有点多,再单独开一个pr搞吧? |
Owner
|
看起来ci没过,case需要mock一下 |
Merged
xxlaila
pushed a commit
to xxlaila/Archery
that referenced
this pull request
Feb 15, 2025
* 修复下载权限名字错误 * 支持mongodb进程状态查看 * mongodb进程状态查看、kill功能迁移到engine中 * mongodb进程状态查bug修复 Co-authored-by: Leo Q <LeoQuote@users.noreply.github.com> Co-authored-by: 小圈圈 <rtttte@qq.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
会话管理->进程状态可以查看mongodb的连接信息。因为依赖库pymongo版本的原因,只支持mongodb3.6及以上版本。