AverageLabelTime for multiple labels is not reliable due to a few reasons:
Not all issues are synced up with GitHub;
Initial implementation of multiple labeled ALT (#30) wasn't really smart for cases when one of the labels was unlabeled;
GitHub Events API returns historical events, meaning label names in these events matching to original values, and does not include updated (renamed) label names.
This PR is fixing the first two points, while the third point can be only fixed manually via re-labeling.
What is done is this PR:
I've removed "Trigger Label Rescan" button and related code from an admin settings page (fc47d6b3c4e81d69bf0ad136a9384f1734e23b36 & 8f4461bf3dafcdcef62d984a394bd6aa76c5941f)
Instead, I included label rescan functionality into Repo Sync task (019f78c46c5d4caaead4228412d7097d9d9671d8)
Added a way to reset Repo Sync status via a button in the admin settings page
Fixed the bug in current_average_label_time for multiple labels (1080078ae1e478a7f001c8e1089a8eb090b5ca92)
Added PHPCS into the project (ead225ad04b476ec33bcb13da43cd6ce916179bd)
AverageLabelTime for multiple labels is not reliable due to a few reasons:
This PR is fixing the first two points, while the third point can be only fixed manually via re-labeling.
What is done is this PR:
current_average_label_time
for multiple labels (1080078ae1e478a7f001c8e1089a8eb090b5ca92)