New Feature : conflicting claims
Fixes #260 Ref #258
- [x] Shows a list of conflicting claims made by various users in the sidebar
- [x] Provision to match URLs who differ only in the protocol, trailing slashes, ports, hashes, query strings etc
- [x] Inline documentation added for codebase edits
- [x] All errors inside route handled
Preview
-
Raw data used to build page

-
When there are no conflicts

-
When conflicts arise

@hereisnaman, @championswimmer waiting for review
@hereisnaman, @championswimmer waiting for review
Reviews usually take from 1-3 days. You can start working on other issues.
Awaiting review.
~~Requesting someone to carry it forward~~
A few thigns to mention:
- if only the number is matched using a wildcard, then issue 10 will show conflicts with 100, 101, 102...
- if it will be assumed that the issue / pr id will be followed by a slash or terminate immediately, it's also a wrong lead, as URLs ending with hashes are also submitted
Working on a solution of the above problems.
A few thigns to mention:
* if only the number is matched using a wildcard, then issue 10 will show conflicts with 100, 101, 102... * if it will be assumed that the issue / pr id will be followed by a slash or terminate immediately, it's also a wrong lead, as URLs ending with hashes are also submittedWorking 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?
A few thigns to mention:
* if only the number is matched using a wildcard, then issue 10 will show conflicts with 100, 101, 102... * if it will be assumed that the issue / pr id will be followed by a slash or terminate immediately, it's also a wrong lead, as URLs ending with hashes are also submittedWorking 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?
We should surely add checks in the form where new claim is added, but the problem is, We already have entries like this.

So either we update the entries like these, or we accommodate things like this in the conflicts code. In any of these cases, we still need to add checks in the input form
@YashKumarVerma can you first create a PR with the following:
- in add claim api, clean the urls, removing all the hashes, query params and add trailing slash.
- write a script to transform the current items for the same.
I'll give you separate points for that.
@YashKumarVerma can you first create a PR with the following:
- in add claim api, clean the urls, removing all the hashes, query params and add trailing slash.
- write a script to transform the current items for the same.
I'll give you separate points for that.
@hereisnaman I wrote the script but there's one issue we need to tackle. The pullUrl column is set as unique, so if there exist entries with and without trailing slash, it will throw error and not let us update it.
An alternative approach can be that we
- do not fix the old claims (as removing the slash and # would cause conflicts in db as the column is set to unique in the schema and ideally, we should not change that)
- we check new claims that are made, and make sure that the above point is not repeated in new claims.
- in the conflicting claims page, we write the code to handle the cases like these (I've found a workaround for it)
With #390 sent, now we can create a more robust conflict view. Reasons:
- There are multiple PRs sent for the same issue. we need to list them.
- Shows number of PRs for single issue submitted on BOSS portal

- There are
- 100 claims which have the same URL submitted for both handles.
- 140 claims which have different URLs submitted
admins must have a complete view of where all were the issues and pull requests submitted
Carried forward in #392