-
Notifications
You must be signed in to change notification settings - Fork 154
New Feature : conflicting claims #279
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
base: master
Are you sure you want to change the base?
Conversation
utils/datautils.js
Outdated
@@ -48,6 +48,18 @@ function getClaimById(claimId) { | |||
return db.Claim.findById(claimId) | |||
} | |||
|
|||
function getConflictingClaimByPr(pullRequestId) { |
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.
Not the correct logic. just checking the presence of id does not decide the id is for pr or issue.
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.
I think i named the parameter wrongly in this one.
for a the url
https://github.com/coding-blocks/boss/pull/279
this is the value of the parameter
coding-blocks/boss/pull/279
and not only 279
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.
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.
This checks the unique part of the URL, which is of the type user/repository/pull/id
. The above confusion arose due to improper variable naming, which I've fixed now.
let response, conflicts | ||
|
||
/** | ||
* the database has internal checks for duplicate items in the pull request column |
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.
does not cover all the cases.
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.
could you please mention which type of case is not handled
@hereisnaman, @championswimmer waiting for review |
Reviews usually take from 1-3 days. You can start working on other issues. |
Awaiting review. |
|
A few thigns to mention:
Working on a solution of the above problems. |
What is the use case behind having urls with hashes? Can't we clean them in the add claim form? |
@YashKumarVerma can you first create a PR with the following:
I'll give you separate points for that. |
@hereisnaman I wrote the script but there's one issue we need to tackle. An alternative approach can be that we
|
With #390 sent, now we can create a more robust conflict view.
admins must have a complete view of where all were the issues and pull requests submitted |
Carried forward in #392 |
Fixes #260
Ref #258
Preview
Raw data used to build page

When there are no conflicts

When conflicts arise
