Skip to content

FLAGS page reports incorrect info in 'Totals' section

The FLAGS page on segments-web has 3 sets of 3 columns, ACTIVE, KNOWN, and TOTAL (in that order), with 3 columns in each, TOTAL, START, and STOP (in that order). The TOTAL set of columns should show the sum of known and active segments in its TOTAL column, the earliest known or active segment in its START column, and the latest known or active segment in its STOP column. Since active is (should be) a subset of known, TOTAL:START and TOTAL:STOP should be duplicates of KNOWN:START and KNOWN:STOP. However, TOTAL:STOP seems to be a duplicate of ACTIVE:STOP, which is often earlier than KNOWN:STOP, e.g.: in K1:SCIENCE_MODE/1 (which is a good example because it is no longer being updated, so values should not change, and the start and stop values for both known and active differ), where ACTIVE runs 1270287158 to 1271463799, KNOWN runs 1270252818 to 1271548818, and TOTAL runs 1270252818 to 1271463799. TOTAL:STOP should be 1271548818, but it is 1271463799.

As best I can tell, TOTAL:TOTAL and TOTAL:START match up.

Probably not worth any effort, and maybe not worth changing because users might be used to it, but the order (within a group of columns) total, start, stop seems less intuitive (to me) than start, stop, total. Similarly, active, known, total (groups of columns) seems less intuitive than known, active, total - though maybe this was done because many users are specifically looking for active segments.

Another issue (which might deserve its own ticket) is that flags with only KNOWN segments but no ACTIVE segments do not have their TOTAL segments reported properly, such as L1:DCH-BAD_FRAME/2, which has KNOWN segments but TOTAL columns are all 0s. (As expected, I do not see any flags with no KNOWN segments.) This is not likely to cause issues to individuals looking at the page (though maybe a small amount of confusion), but it could cause issues if the data were being scraped by a tool, which would not have the common sense to recognize and correct the error, as a person does.