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

Ghsync integration #54

Merged
merged 1 commit into from
Jun 19, 2019
Merged

Ghsync integration #54

merged 1 commit into from
Jun 19, 2019

Conversation

smacker
Copy link
Contributor

@smacker smacker commented Jun 17, 2019

Fix: #52
Based on #51 only the last commit is new

Only docker-compose.yml needs to be changed

@smacker smacker requested a review from a team June 17, 2019 17:23
environment:
GHSYNC_ORG: ${GITHUB_ORGANIZATION:-}
GHSYNC_TOKEN: ${GITHUB_TOKEN:-}
GHSYNC_POSTGRES_DB: metadata
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd suggest the same than in src-d/ghsync#25 (comment)
I'd let the user choose it, and use metadata as a default value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

we don't allow to choose names of maindb or gitbase from the cli. Why should we allow to choose a name for metadata?
And of course, the user still can change all the names in docker-compose.yml manually.

Copy link
Contributor

@dpordomingo dpordomingo Jun 18, 2019

Choose a reason for hiding this comment

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

imo using vars also helps to understand the relations between different parts, but not a requirement to approve this PR, which LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

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

makes sense to use variables to avoid repeated hard-coded values in different containers! 👍
shouldn't be done in the PR though. I created an issue: #62

@smacker smacker changed the title [WIP] Ghsync integration Ghsync integration Jun 18, 2019
# wait for db to be created
# we need to use something like https://github.com/vishnubob/wait-for-it
# or implement wait in ghsync itself
command: ['-c', 'sleep 10s && ghsync migrate && ghsync fastsync']
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
command: ['-c', 'sleep 10s && ghsync migrate && ghsync fastsync']
command: ['-c', 'sleep 10s && ghsync migrate && ghsync shallow']

Only docker-compose.yml needs to be changed

Signed-off-by: Maxim Sukharev <[email protected]>
@smacker
Copy link
Contributor Author

smacker commented Jun 19, 2019

On clean installation with partial data (ghsync still downloads during the time of screenshots):
Screenshot 2019-06-19 at 18 31 43

Screenshot 2019-06-19 at 18 32 31

Screenshot 2019-06-19 at 18 33 04

@smacker smacker merged commit adc9d8c into src-d:master Jun 19, 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.

Integrate ghsync
3 participants