Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure local FVYYMM_pruefi_docx_filename_map.toml is reasonably up-to-date #300

Open
DeltaDaniel opened this issue May 14, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@DeltaDaniel
Copy link
Contributor

When KohlrAHBi is used to parse docx documents for a specific format version (FV), it initially scans the compatible directory in the local edi_energy_mirror repository to create a pruefi to docx filemapping. These files are kept in a cache folder. This speeds up later parsing processes. However, if some files are changed (updated repository or alternating use of real and test repositories) those mappings need to be updated in order to provide reliable results. Therefore, we could either

  • provide a --delete-cache flag or
  • check for the last date the specific filemapping has been created and update it after a set time (e.g. two weeks)
@DeltaDaniel DeltaDaniel added the enhancement New feature or request label May 14, 2024
@hf-kklein
Copy link
Contributor

imho we should make the --delete-cache / bypass cache option the new default. with every update on edi-energy.de we'd have to re-generate the .toml file and re-add it to a new kohlrahbi version. A cache that is outdated by default and needs a new package version to be updated is not a good cache.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants