-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Link Datadoc to GitHub Directory #7
Conversation
b4d0a3e
to
2ff8786
Compare
datadoc_id = sql.Column( | ||
sql.Integer, sql.ForeignKey("data_doc.id"), nullable=False, unique=True | ||
) | ||
user_id = sql.Column(sql.Integer, sql.ForeignKey("user.id"), nullable=False) |
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.
what is this user_id for ? is it the doc owner or the first user commits the datadoc?
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.
its the user who links the current GitHubs directory to the datadoc
|
||
|
||
@with_session | ||
def create_repo_link( |
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.
realized that, do we allow user to unlink a datadoc, or change the directory of the doc?
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.
Yep, plan to add support for it later on, with maybe a warning saying it will change version history
2ff8786
to
daa18d2
Compare
feat: Add serializing util for datadoc github
Context
Changes
Depends on PR: pinterest#1497