-
Type:
Suggestion
-
Resolution: Unresolved
-
None
-
Component/s: Pull Requests
-
None
-
7
-
5
Summary
Currently the integrity checker is able to detect situations where the database contains pull requests that are not present in the repository on disk, because it throws a message like this in the logs:
2018-08-10 05:05:19,537 INFO [Caesium-1-1] c.a.s.i.i.DefaultIntegrityCheckReporter PROJ/repo[1234]: The following 1 inconsistencies were found: [PROJ/repo[1234]: The following pull requests are missing on disk: [1, 2, 3]]
If those three pull requests have a status of "merged" in the database, Integrity Checker does currently not resolve the inconsistency, because merged pull requests cannot be deleted. This also isn't possible for a user - the only resolution currently is to modify the state of the affected pull requests in the database and then delete them manually via the UI.
Solution
Identify Checkers should resolve such inconsistency for missing merged pull requests automatically and without requiring the administrator to modify the backend database.