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

feat(gitextractor): add progress info when cloning git repos #6195

Merged
merged 5 commits into from
Dec 11, 2023

Conversation

d4x1
Copy link
Contributor

@d4x1 d4x1 commented Oct 8, 2023

⚠️ Pre Checklist

Please complete ALL items in this checklist, and remove before submitting

  • I have read through the Contributing Documentation.
  • I have added relevant tests.
  • I have added relevant documentation.
  • I will add labels to the PR, such as pr-type/bug-fix, pr-type/feature-development, etc.

Summary

What does this PR do?

  1. run commands go mod tidy && go mod download, so mod file has changed.
  2. add progress info when cloning git repos, because go-git has an option which can get the human readable information sent by the server, so this PR parse the information and set current/total with SetProgress.

Does this close any open issues?

Closes None

Screenshots

Include any relevant screenshots here.

API Response

image

Debug log

image

All tasks are completed successfully

image

Other Information

Any other information that is important to this PR.

@d4x1 d4x1 added the pr-type/feature-development This PR is to develop a new feature label Oct 26, 2023
}
}

type testSubTaskContext struct{}
Copy link
Contributor

Choose a reason for hiding this comment

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

you should be able to just create a mock of SubTaskContext and just override the SetProgress method instead

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@keon94 Can you give me some tutorial on "create a mock of SubTaskConext"? I am not familiar with it.

@abeizn abeizn merged commit f7f6ea1 into apache:main Dec 11, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-type/feature-development This PR is to develop a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants