-
Notifications
You must be signed in to change notification settings - Fork 154
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
Conflict Analysis on Claim Review #392
Conflict Analysis on Claim Review #392
Conversation
@hereisnaman |
To merge this PR the one I asked for earlier has to be merged first. This PR doesn't take care about different url formatting. Secondly you are pulling all the data upfront when only some part of it is required. |
Thanks for the review.
|
On a re look it seems fine to have the current clause. About loading data. In getConflictsReport I can see you are loading data for issues, pull and both. When you are only consuming partial data from that. |
Consuming partial data as in ? The view renders the array that the queries return. If they return an empty array, the views don't display anything. Are you referring to making 3 queries (a separate query to get |
Case 2 and 3 are not required at all. mainly conflicted claims are those where there is same issue and multiple PRs (both pull or new issue case) are there. I haven't seen any rejected claim where a person has used someone else's pull request URL and that too on some not-related issue. That's too impractical to happen in real scenario. |
I think Case 2/3 will be triggered when someone submits the two URLs interchanged, i.e. pull request in issues column, and issueUrl in the pull request column. That would trigger case 1 as well, no doubts to that. It's just a method to specifically point it out. With the inputs and history URLs clean, I think we can remove it. |
Yes, This check should be at add page. We shouldn't allow incorrect claims in any way. |
thanks for pointing out 😄 |
You are making 3 queries and after fetching checking which one to use. |
Fixes #260
Follow up of #279 as tree became too messed up.
Underlying Idea
With #390 sent, now we can create a more robust conflict view.
Reasons:
Only displaying claims which submit the same issue and same PR may not provide full context.
Admins must have a complete view of where all were the issues and pull requests submitted
UI
Zoom