mdn-bcd-collector icon indicating copy to clipboard operation
mdn-bcd-collector copied to clipboard

update-bcd: `null` is not replaced with `false`

Open queengooborg opened this issue 1 year ago • 6 comments

This seems to have been introduced in the last update, most likely. If BCD has the version set to null, but the collector determines false, it does not appear to overwrite null.

queengooborg avatar Jan 09 '24 09:01 queengooborg

CC @foolip @mzgoddard

queengooborg avatar Jan 10 '24 03:01 queengooborg

@queengooborg do you mean this is a likely regression? Can this be reproduced using current results in https://github.com/openwebdocs/mdn-bcd-results and for which BCD path?

foolip avatar Jan 10 '24 08:01 foolip

This is a definite regression. This can be reproduced easiest with the add-new-bcd script. In any feature added that a browser doesn't support, the default null value is left instead of being replaced with false. The HTMLElement constructor that is being added is a great demonstration of this:

image

queengooborg avatar Jan 10 '24 08:01 queengooborg

Update: after making some tweaks to enable verbosity, it appears that this is an issue with the logic for hasSupportUpdates. I'm getting a warning that updates were skipped because the support matrix matches current BCD support data, but that's not accurate if BCD says null and we know it should be false.

I don't know the new version of the update-bcd script well enough to be able to fix this. 😞

queengooborg avatar Jan 12 '24 17:01 queengooborg

I'll take a look at this.

foolip avatar Feb 14 '24 03:02 foolip

I'm sorry it took me this long, but I finally made the time to debug this and make a fix: https://github.com/openwebdocs/mdn-bcd-collector/pull/1473

foolip avatar May 19 '24 16:05 foolip