Skip to content
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

Remove qid vs id, add _type field #42

Merged
merged 5 commits into from
Oct 12, 2016
Merged

Conversation

aenario
Copy link
Contributor

@aenario aenario commented Oct 12, 2016

No description provided.

@aenario aenario force-pushed the replace-qid-types branch 3 times, most recently from cbc676a to 4b9cfa6 Compare October 12, 2016 10:06
@@ -21,7 +20,7 @@ type dirAttributes struct {
// interfaces.
type DirDoc struct {
// Qualified file identifier
QID string `json:"_id"`
QID string `json:"_id,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

@aenario shouldn't QID be renamed in ID?

Copy link
Contributor

Choose a reason for hiding this comment

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

it would conflict with the ID() method. but i agree we should find another name (or make it private..)

return ""
}
return qid[0:strings.Index(qid, "/")]
return j.Type
}

// SetID is used to set the qualified identifier of the document
Copy link
Contributor

Choose a reason for hiding this comment

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

s/qualified indentifier/identifier/ (there may be other comments using this term)

@nono nono merged commit 4615f3e into cozy:master Oct 12, 2016
@aenario aenario deleted the replace-qid-types branch October 18, 2016 13:49
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.

None yet

3 participants