Page MenuHomePhabricator

Add deletion logic to WSIndex API
Closed, ResolvedPublicFeature

Description

Currently the API is not removing works which no longer follow the set criteria.

If on Day 1 there were 10 results for the set criteria and on Day 2 there are only 9, the API is updating the 9 items and leaving the last one as it is. We need to figure out a way to remove items which no longer follow the criteria. Currently we periodically flush the entire DB and re run the update catalog script.

Event Timeline

Hello @Saiphani02 , I have made a PR in the Wsindex repo: https://codeberg.org/ph4ni/wsindex/pulls/7
Please kindly review

If we do "--languages bn", it should only update Bengali books and leave other languages as it is. But right now, all books in the db are removed and only bn books are updated.

@Saiphani02 Apologies for not seeing that, I have made a fix: https://codeberg.org/ph4ni/wsindex/pulls/8
Please kindly review, let me know if it works well