Skip to content

Bug 1594822 - Remove Autoclassify and Crossreference code#6897

Merged
camd merged 2 commits into
masterfrom
remove-autoclassify
Dec 14, 2020
Merged

Bug 1594822 - Remove Autoclassify and Crossreference code#6897
camd merged 2 commits into
masterfrom
remove-autoclassify

Conversation

@camd
Copy link
Copy Markdown
Collaborator

@camd camd commented Dec 4, 2020

This removes nearly all the code for Autoclassify and Crossreferencing. There are small parts left behind because they're used by Push Health, etc.

This compliments Aki's PR for #6891, which removed the lines that call into this code. So this is basically just a cleanup after his.

@camd camd requested a review from a team as a code owner December 4, 2020 22:39
@camd camd force-pushed the remove-autoclassify branch 2 times, most recently from 229c5cd to a559aee Compare December 7, 2020 22:13
@codecov-io
Copy link
Copy Markdown

codecov-io commented Dec 7, 2020

Codecov Report

Merging #6897 (cebe27d) into master (c1b4a31) will decrease coverage by 0.36%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #6897      +/-   ##
==========================================
- Coverage   88.17%   87.81%   -0.37%     
==========================================
  Files         285      276       -9     
  Lines       13398    12859     -539     
==========================================
- Hits        11814    11292     -522     
+ Misses       1584     1567      -17     
Impacted Files Coverage Δ
tests/autoclassify/utils.py 82.69% <ø> (-11.65%) ⬇️
tests/conftest.py 95.93% <ø> (-0.06%) ⬇️
tests/extract/conftest.py 100.00% <ø> (ø)
tests/model/test_classified_failure.py 100.00% <ø> (ø)
treeherder/config/settings.py 88.70% <ø> (ø)
treeherder/model/error_summary.py 94.11% <ø> (-1.18%) ⬇️
treeherder/model/models.py 80.25% <ø> (-6.65%) ⬇️
treeherder/webapp/api/jobs.py 82.22% <ø> (-0.20%) ⬇️
...erder/model/migrations/0023_remove_autoclassify.py 100.00% <100.00%> (ø)
... and 4 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c1b4a31...cebe27d. Read the comment docs.

@camd camd requested a review from sarah-clements December 8, 2020 19:13
Comment thread treeherder/model/models.py Outdated
autoclassify_status = models.IntegerField(choices=AUTOCLASSIFY_STATUSES, default=PENDING)

# TODO: Remove coalesced_to_guid next time the jobs table is modified (bug 1402992)
coalesced_to_guid = models.CharField(max_length=50, null=True, default=None)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth removing project_specific_id and coalesced_to_guid while you're here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great point, yeah. I'll do that.

Copy link
Copy Markdown
Contributor

@sarah-clements sarah-clements left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm :)

@camd camd force-pushed the remove-autoclassify branch from a512e59 to cebe27d Compare December 9, 2020 00:52
@camd camd merged commit f0bf415 into master Dec 14, 2020
@camd camd deleted the remove-autoclassify branch December 14, 2020 23:53
camd pushed a commit that referenced this pull request Dec 15, 2020
@camd camd restored the remove-autoclassify branch December 15, 2020 18:08
@camd camd deleted the remove-autoclassify branch December 15, 2020 18:08
camd pushed a commit that referenced this pull request Dec 15, 2020
camd pushed a commit that referenced this pull request Dec 15, 2020
camd pushed a commit that referenced this pull request Dec 15, 2020
#6915)

* Revert "Revert "Bug 1594822 - Remove Autoclassify and Crossreference code (#6897)""

This reverts commit f671b32.
* remove migration changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants