Problem Statement
If you are using a venv (not an issue with uvx), when --get is first used, logstory copies the usecase/$USECASE from:
LOGSTORY_USECASES_BUCKETS=file://...
to:
venv/lib/python3.12/site-packages/logstory/usecases/$USECASE
Once copied, the next time it runs, it finds that $USECASE dir already exists and does not copy again. This is confusing when you are developing a usecase and the changes you make are not detected.
Proposed Solutions
- Add a
--force flag that copies regardless of the presence of the $USECASE dir in site-packages.
- Create a checksum for the contents of the EVENTS and ENTITIES dirs and keep it in the metadata. Regenerate the checksums whenever --get is used and if different, copy the files.
- ...
Problem Statement
If you are using a
venv(not an issue withuvx), when--getis first used, logstory copies theusecase/$USECASEfrom:to:
Once copied, the next time it runs, it finds that
$USECASEdir already exists and does not copy again. This is confusing when you are developing a usecase and the changes you make are not detected.Proposed Solutions
--forceflag that copies regardless of the presence of the$USECASEdir insite-packages.