scrapinghub / portia

Visual scraping for Scrapy
BSD 3-Clause "New" or "Revised" License
9.28k stars 1.41k forks source link

An error when adding and then removing an annotation #684

Closed eng1neer closed 7 years ago

eng1neer commented 7 years ago

When adding an annotation and then removing it right away an alert flashes and the console displays the following error:

Error: Attempted to handle event `deleteRecord` on <portia-ui@model:annotation::ember3132:2aad-44da-b749|0e37-4d53-9d83> while in state root.loaded.updated.inFlight

(I'm using a develop branch)

ruairif commented 7 years ago

That happens because the annotation still hasn't been created so it can't be deleted. Ideally there would be a request queue for each object so it could merge updates and prioritize deletes without throwing an error