Modified find project method to return nil if project not found
What does this MR do?
Files that belong to nonexistent projects get silently ignored.
What are the relevant issue numbers?
Closes #5300- 404 error from the search controller when the elasticsearch index is out of date
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides
Edited by Chantal Rollison