atomic-server icon indicating copy to clipboard operation
atomic-server copied to clipboard

Cli import items not indexed

Open joepio opened this issue 1 year ago • 1 comments

Items imported through the atomic-server import cli command are not properly added to the search index. Perhaps because the commit monitor isn't activated? Perhaps because it's exited before it can process all items?

If it's the latter, we need some que that prevents shutdown

joepio avatar Aug 14 '24 17:08 joepio

The cause is indeed a lack of CommitMonitor, because the import command is not starting an Actix runtime. In other words: the messages are sent but not received.

For now I just added a warning message, so users know to run --rebuild-indexes afterwards if they need to search.

The main goal of this import CLI was to export or import an entire database anyways.

A better, proper solution to this is to use the /import endpoint, preferably using the GUI. We could also add this feature to the client app.

joepio avatar Aug 15 '24 12:08 joepio