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

Fix check already attached document #111

Merged
merged 1 commit into from
Dec 3, 2020

Conversation

dc7303
Copy link
Member

@dc7303 dc7303 commented Dec 2, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind api-change
/kind bug
/kind cleanup
/kind deprecation
/kind design
/kind documentation
/kind failing-test
/kind feature

/kind bug

What this PR does / why we need it:
In AttachDocument, ErrDocumentAlreadyAttached error is returned if
there is a document in the current client field. However, AttachDocument
also needs to check the document attachment status to determine whether to
return an error or not.

Which issue(s) this PR fixes:

Fixes yorkie-team/yorkie-js-sdk#111

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


Additional documentation:


In AttachDocument, [ErrDocumentAlreadyAttached] error is returned if
there is a document in the current client field. However, AttachDocument
also need to check the document attachment status to determine whether to
return an error or not.
Copy link
Member

@hackerwins hackerwins 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

@semin-park semin-park left a comment

Choose a reason for hiding this comment

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

Sounds great! Thanks for the quick fix!

@hackerwins hackerwins merged commit e75c25f into yorkie-team:master Dec 3, 2020
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.

Error: "document already attached" when trying to attach to a document that has been previously detached
3 participants