Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@PravinRanjan10
Copy link
Contributor

What this PR does / why we need it:
It stores the metadata of access rule for fileshare based
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

Special notes for your reviewer:

Release note:

Copy link
Collaborator

@wisererik wisererik left a comment

Choose a reason for hiding this comment

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

please use lowercase in error log

}
// Unmarshal the request body
if err := json.NewDecoder(f.Ctx.Request.Body).Decode(&fileshareacl); err != nil {
reason := fmt.Sprintf("Parse fileshare access rules request body failed: %s", err.Error())
Copy link
Collaborator

Choose a reason for hiding this comment

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

lowercase

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

BaseModel: &model.BaseModel{
Id: "d2975ebe-d82c-430f-b28e-f373746a71ca",
},
Description: "This is a sample fileshare for testing",
Copy link
Collaborator

Choose a reason for hiding this comment

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

change description

@xing-yang
Copy link
Collaborator

@PravinRanjan10 It looks like you created a new repo under the opensds org by accident: https://github.com/opensds/AccessApi. I'm going to delete that repo. Please save your work.

@PravinRanjan10
Copy link
Contributor Author

@PravinRanjan10 It looks like you created a new repo under the opensds org by accident: https://github.com/opensds/AccessApi. I'm going to delete that repo. Please save your work.

Yeah..To just have backup the code i have created. You may delete it. I have backup in local machine. Thanks

@xing-yang
Copy link
Collaborator

Ok. Will do. Thanks.

@coveralls
Copy link

coveralls commented May 9, 2019

Coverage Status

Coverage decreased (-0.3%) to 28.941% when pulling 2146002 on PravinRanjan10:development into e772087 on opensds:development.


func (c *Client) CreateFileShare(ctx *c.Context, fshare *model.FileShareSpec) (*model.FileShareSpec, error) {
//profiles, err := c.ListProfiles(ctx)
//if err != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

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

remove unused codes

_, err := db.C.GetFileShare(ctx, in.FileShareId)
if err != nil {
log.Error("FileshareID is not valid: ", err)
return nil, err
Copy link
Collaborator

Choose a reason for hiding this comment

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

FilesareID -> file share id

Copy link
Collaborator

@wisererik wisererik left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Collaborator

@xing-yang xing-yang left a comment

Choose a reason for hiding this comment

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

Please rebase. After that, this can be merged.

uuid "github.com/satori/go.uuid"
)

//function to store filesahreAcl metadata into database
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: add space after //

Copy link
Collaborator

@leonwanghui leonwanghui left a comment

Choose a reason for hiding this comment

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

LGTM

@wisererik wisererik merged commit e41ff0c into sodafoundation:development May 11, 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.

5 participants