Skip to content

SCB-1325 Refactoring the delete function#14

Closed
wangqj wants to merge 3 commits intoapache:masterfrom
wangqj:master
Closed

SCB-1325 Refactoring the delete function#14
wangqj wants to merge 3 commits intoapache:masterfrom
wangqj:master

Conversation

@wangqj
Copy link
Contributor

@wangqj wangqj commented Jun 28, 2019

}, {
Method: http.MethodDelete,
Path: "/v1/kv/{ids}",
Path: "/v1/kv/",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path: "/v1/kv/",

since param is path parameters, I guess you shoult write this Path right

err = s.Delete(kvID, labelID, domain.(string))
if err != nil {
openlogging.Error(fmt.Sprintf("delete ids=%s,err=%s", ids, err.Error()))
openlogging.Error(fmt.Sprintf("delete kvID=%s,labelID=%s,error=%s", kvID, labelID, err.Error()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from now use structured logging, refer to som of my log code call "WithTag"

@tianxiaoliang
Copy link
Contributor

and write rest api level UT plz

@wangqj wangqj closed this Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants