Page MenuHomePhabricator

Replace Harbormaster "BuildItem" with Lint/Unit messages
ClosedPublic

Authored by epriestley on Jun 17 2015, 2:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 1, 7:42 PM
Unknown Object (File)
Oct 21 2024, 10:56 PM
Unknown Object (File)
Oct 18 2024, 6:29 PM
Unknown Object (File)
Oct 18 2024, 4:45 AM
Unknown Object (File)
Oct 15 2024, 10:18 PM
Unknown Object (File)
Oct 11 2024, 9:19 PM
Unknown Object (File)
Oct 9 2024, 2:09 AM
Unknown Object (File)
Sep 30 2024, 10:55 PM

Details

Summary

Ref T8095.

Harbormaster has a BuildItem class, but it has no table and is unused. This was an earlier idea about representing lint/unit results and some other possible types of messages, but I think we want to be more specific than this.

Remove BuildItem and add Lint and Unit storage. These tables roughly parallel how we store lint/unit messages today, with some guesses about how where they'll go in the future.

Test Plan

Ran bin/storage upgrade and got a clean adjust out of it.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Replace Harbormaster "BuildItem" with Lint/Unit messages.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: btrahan.
btrahan edited edge metadata.
btrahan added inline comments.
resources/sql/autopatches/20150617.harbor.1.lint.sql
8–9

Depending on how much re-design wiggle room you have here, perhaps "code" can also encompass "severity"?

This revision is now accepted and ready to land.Jun 17 2015, 10:31 PM

For reference, this will conflict with D11692, which will need to be updated to use these new storage classes.

This revision was automatically updated to reflect the committed changes.

I think it's desirable that "severity" remain separate from "code". In some projects a message with the same code (say, something like some sort of whitespace issue) might be a "warning", while in others it might only be "advice". It seems reasonable to let projects configure how much they care about each kind of issue lint can raise.