-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
merge 2309 #1957
merge 2309 #1957
Conversation
feat:dingtalk support execution
fix spelling
fix:git commit error
Slowlog filter
fix spelling
username in jwt token will be check when http request go throuth middleware and use username to check if user exist, if using md5 algorithm to resize username, the middleware cannot find user by token. @LinXiaoTao
hot-fix: cannot using hash algo in generate token
fix issue 1743 7
api definitions
fix parameter of api definitions
optimize index suggestion
fix:error delete syntax in mysql5.7
fix: extract sqls from xml file only save one
fix rule description
test: swagger | ||
cd $(PROJECT_NAME) && GOOS=$(GOOS) GOARCH=amd64 go test -v ./... | ||
test: | ||
cd $(PROJECT_NAME) && GOOS=$(GOOS) GOARCH=amd64 go test -v ./... -count 1 |
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.
-count 1
目的是啥
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.
禁用测试缓存,避免本地用缓存跑测试
README.md
Outdated
@@ -184,6 +184,18 @@ SQLE 提供了多种安装部署的方式,用户可以结合自己的环境和 | |||
|
|||
# 📞 商业支持 | |||
如果您想获得 SQLE 的商业支持, 您可以联系我们: | |||
|渠道 | 链接 | |
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.
readme 的内容以v3的为准
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.
使用了最新的v3文档
sqle/api/app.go
Outdated
@@ -268,6 +271,18 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti | |||
v1ProjectRouter.POST("/:project_name/audit_plans/:audit_plan_name/sqls/full", v1.FullSyncAuditPlanSQLs, sqleMiddleware.ScannerVerifier()) | |||
v1ProjectRouter.POST("/:project_name/audit_plans/:audit_plan_name/sqls/partial", v1.PartialSyncAuditPlanSQLs, sqleMiddleware.ScannerVerifier()) | |||
|
|||
// sql manager | |||
v1ProjectRouter.GET("/projects/:project_name/sql_manages", v1.GetSqlManageList) |
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.
v1ProjectRouter 里的url不需要再带/projects
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.
已调整
sqle/api/app.go
Outdated
@@ -357,7 +371,7 @@ func StartApi(net *gracenet.Net, exitChan chan struct{}, config *config.SqleOpti | |||
v1Router.GET("/custom_rules/:db_type/rule_types", v1.GetRuleTypeByDBType) | |||
|
|||
// task | |||
v1Router.POST("/projects/:project_name/tasks/audits", v1.CreateAndAuditTask) | |||
v1ProjectRouter.POST("/projects/:project_name/tasks/audits", v1.CreateAndAuditTask) |
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.
v1ProjectRouter 里的url不需要再带/projects
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.
已调整
0429cf8
to
b2a429c
Compare
if err != nil { | ||
return controller.JSONBaseErrorReq(c, fmt.Errorf("check project manager failed: %v", err)) | ||
} | ||
if !up.IsProjectAdmin() { |
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.
原始的权限是成员即可访问
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.
已处理,移除管理员校验
} | ||
|
||
data := map[string]interface{}{ | ||
"filter_project_name": projectUid, |
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.
调整为filter_project_id
?
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.
已调整
sqle/model/sql_audit_record_list.go
Outdated
var sqlAuditRecordQueryBodyTpl = ` | ||
{{ define "body" }} | ||
FROM sql_audit_records | ||
LEFT JOIN projects AS p ON sql_audit_records.project_id = p.id |
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.
projects 表已经没有了
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.
已修改
sqle/model/sql_manage.go
Outdated
FROM sql_manages sm | ||
LEFT JOIN sql_audit_records sar ON sm.sql_audit_record_id = sar.id | ||
LEFT JOIN audit_plans ap ON ap.id = sm.audit_plan_id | ||
LEFT JOIN projects p ON p.id = sm.project_id |
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.
projects 表没有了
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.
已修改
No description provided.