Skip to content

Commit

Permalink
[webkitbugspy] Implement ability to relate radars (Follow-up)
Browse files Browse the repository at this point in the history
rdar://120013230
https://bugs.webkit.org/show_bug.cgi?id=266790

Unreviewed follow-up fix.

* Tools/Scripts/libraries/webkitbugspy/webkitbugspy/radar.py:
(Tracker): Include 'clone' relationship.
* Tools/Scripts/libraries/webkitbugspy/webkitbugspy/tests/radar_unittest.py:

Canonical link: https://commits.webkit.org/276575@main
  • Loading branch information
JonWBedard committed Mar 22, 2024
1 parent 2e0302d commit ccde402
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tools/Scripts/libraries/webkitbugspy/webkitbugspy/radar.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class Tracker(GenericTracker):
TASK
]

RELATIONSHIP_TYPES = ['related-to', 'blocked-by', 'blocking', 'parent-of', 'subtask-of', 'cause-of', 'caused-by', 'duplicate-of', 'original-of']
RELATIONSHIP_TYPES = ['related-to', 'blocked-by', 'blocking', 'parent-of', 'subtask-of', 'cause-of', 'caused-by', 'duplicate-of', 'original-of', 'clone-of', 'cloned-to']

ALWAYS = 'Always'
SOMETIMES = 'Sometimes'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
from webkitbugspy import Issue, Tracker, User, radar, mocks
from webkitcorepy import mocks as wkmocks, OutputCapture

RELATED_BLANK = {'related-to': [], 'blocked-by': [], 'blocking': [], 'parent-of': [], 'subtask-of': [], 'cause-of': [], 'caused-by': [], 'duplicate-of': [], 'original-of': []}
RELATED_BLANK = {'related-to': [], 'blocked-by': [], 'blocking': [], 'parent-of': [], 'subtask-of': [], 'cause-of': [], 'caused-by': [], 'duplicate-of': [], 'original-of': [], 'clone-of': [], 'cloned-to': []}


class TestRadar(unittest.TestCase):
Expand Down Expand Up @@ -473,7 +473,7 @@ def test_relate_simple(self):

self.assertEqual(issue.related, RELATED_BLANK)
issue.relate(related_to=issue2)
self.assertEqual(issue.related, {'related-to': [issue2], 'blocked-by': [], 'blocking': [], 'parent-of': [], 'subtask-of': [], 'cause-of': [], 'caused-by': [], 'duplicate-of': [], 'original-of': []})
self.assertEqual(issue.related, {'related-to': [issue2], 'blocked-by': [], 'blocking': [], 'parent-of': [], 'subtask-of': [], 'cause-of': [], 'caused-by': [], 'duplicate-of': [], 'original-of': [], 'clone-of': [], 'cloned-to': []})

def test_relate(self):
with wkmocks.Environment(RADAR_USERNAME='tcontributor'), mocks.Radar(issues=mocks.ISSUES, projects=mocks.PROJECTS):
Expand Down

0 comments on commit ccde402

Please sign in to comment.