Decide if we want to fallback on "in-patch" instead of latest revision by date

Open
#1,716 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
python
Domain
devtools

Research direction

Start by tracing how the system selects the latest revision by date and how an in-patch revision could be selected when the parent revision is unavailable or unanalyzed. Use D3533 and the listed revisions as the validation case; done means the project has a decided fallback behavior that avoids overpublishing or misclassifying the issue.

Written by the indexing model from the issue text.

Description

With latest revision by date, in case the parent revision of a patch is not public or was not analyzed and stored in the backend for some reason, we can overpublish.

E.g. this happened in https://phabricator-dev.allizom.org/D3533, where the revision couldn't be found on the backend (since the revision is from staging m-c).
In ab25e7dfc0dc5bb8217fb436aac0957faf03a793, the issue was there.
In ffee8e3a7870875ab78af162638548f72cdabddf, the issue was not there anymore because it was fixed.
Andi's revision is based on ab25e7dfc0dc5bb8217fb436aac0957faf03a793, so the issue is still there in his revision.
When we get the latest revision by date, we get ffee8e3a7870875ab78af162638548f72cdabddf (or newer), and so the issue is not there
and so we consider the issue as new.

Dominant language
Python
Stars
67
Forks
52
Avg merge
3d 23h
Merged PRs (30d)
54

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from mozilla/code-review

All issues in mozilla/code-review

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.