-
Notifications
You must be signed in to change notification settings - Fork 111
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
Filter reviews based on workspace source #702
Conversation
legend-sdlc-server/src/main/java/org/finos/legend/sdlc/server/gitlab/api/GitLabReviewApi.java
Outdated
Show resolved
Hide resolved
c8c4922
to
40949cd
Compare
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.
First, if sources is null or empty, that should mean all sources should be accepted. The logic as you have it now means that no sources will be accepted. You can fix this by only applying the filter on the MR stream if sources is non-null and non-empty.
Second, if sources is of size 1, then the target branch should be included in the MergeRequestFilter. It's best to filter things on the GitLab side when possible.
Third, if you are applying the sources filter on the MR stream, then you should use a Set rather than a List.
8931bc1
to
10732cc
Compare
No description provided.