This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Adjust db struct to make faster and clearer #59
Merged
Merged
Changes from 1 commit
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
fee2ce8
adjust db struct to make faster and clearer
5901c50
adjust db struct to make faster and clearer
94cee6b
Update api.py
guochaorong 177c2b7
Update db.py
guochaorong 2e75c17
Update main.py
guochaorong 98f23aa
Update view.py
guochaorong b1ad43a
Update view.py
guochaorong f6f2e2f
Update api.py
guochaorong d96bb5c
adjust api struct to looks more clear
933d2d6
Update api.py
guochaorong d427f21
Update api.py
guochaorong File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个函数是不是private 就可以了,用户需要显式调用吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
脚本外目前没有调用的。就是拿1个task 的 kpi infos。
returns dict of KpiRecord
keys equal to kpi name,
values equal to KpiRecord'''
现在在commitRecord 类里面调用了这个函数, 改个名字 get_kpis? 是不是可以暴露出去
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一个 TaskRecord 应该直接包含多个 KpiRecord,这个接口应该不需要额外调,所以不一定需要
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
嗯啊 这是个现有鸡还是先有蛋的问题, 如果他仅仅初始化了一个TaskRecord 对象, 还没调用任何方法, 这个对象还是空的。
现在在CommitRecord 这个类里面用到了TaskRecord 里面的这个方法, 如果写成私有的CommitRecord类还能调用到它么
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
感觉改个更general的名字, 比如get_kpis, 然后作为public 方法看着还行?