Closed josephfrazier closed 1 year ago
I noticed that the extractPlate
method does attempt to cache license plates per-image:
// TODO does this actually do anything? the returned result isn't used anywhere
if (this.attachmentPlates.has(attachmentFile)) {
const result = this.attachmentPlates.get(attachmentFile);
return result;
}
and I feel extractLocation
and extractDate
are pretty fast, so maybe we can take the re-extracting approach, once I get the extractPlate
caching properly separated from the mutations it does later:
if (
this.state.plate === '' &&
document.activeElement !== this.plateRef.current
) {
this.setLicensePlate(result);
}
this.setState({
plateSuggestion: result.plate,
});
400 fixed the main issue of extracting metadata from simultaneously uploaded files (https://github.com/josephfrazier/reported-web/issues/252), but there's a related issues, described at https://reportedcab.slack.com/archives/C9VNM3DL4/p1674696287367279?thread_ts=1673064919.656019&cid=C9VNM3DL4:
$USER responded:
I responded: