Opened 6 years ago
Closed 3 years ago
#18230 closed defect (fixed)
pt_assistant uses error code 3701 which is also used by RightAngleBuildingTest
| Reported by: | GerdP | Owned by: | Biswesh |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Plugin pt_assistant | Version: | |
| Keywords: | ignore | Cc: | taylor.smock |
Description
The current implementation to ignore errors expects that the error key is somehow unique. Unfortunately there seems to be no method to verify that and I just found a conflict.
The code 3701 is used by RightAngleBuildingTest and by plugin pt_assistent.
In fact, it seems to be used for two different kinds of errors in pt_assistent:
I see different sources in pt_assisten with code 3701:
./validation/BicycleFootRouteValidatorTest.java: public static final int ERROR_CODE_CONTINUITY = 3701; ./validation/PTAssistantValidatorTest.java: public static final int ERROR_CODE_FROM_TO_ROUTE_TAG = 3701;
The plugins directory contains two plugins which use TestError, pt_assistant and wikipedia.
I think pt_assistant uses range 3700..3799, wikipedia seems to reserve 30000..31000, not just
30000..30100.
IIGTR pt_assistant is newer than RightAngleBuildingTest, so it should probably be changed to use a different range.
Maybe we can somehow log a warning when a plugin creates a TestError with a code < 30000?
Attachments (1)
Change History (8)
by , 6 years ago
| Attachment: | 18230-fix-ignore-codes.patch added |
|---|
comment:1 by , 6 years ago
18230-fix-ignore-codes.patch changes the error codes produced by the plugin pt_assistant to use the range 30700..30799 instead of 3701..3799.
It would be good to be able to fix ignore list entries for the code 3702..3799.
I see only one way to handle this:
- The modified plugin adds similar ignore list entries in the range 30702 .. 30799 for those with codes 3702..3799
- The RightAngleBuildingTest is also changed to use a new range, e.g. 4000..4100
- The code range 3700 .. 3799 must never be used again
- In one year or so we may remove the entries for 3700..3799
comment:2 by , 3 years ago
| Cc: | added |
|---|
@Taylor:
Did you fix this while fixing the other duplicates of error code a few weeks ago?
comment:3 by , 3 years ago
comment:5 by , 3 years ago
| Summary: | pt_assistent uses error code 3701 which is also used by RightAngleBuildingTest → pt_assistant uses error code 3701 which is also used by RightAngleBuildingTest |
|---|
comment:7 by , 3 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |



patch for plugin