-
Notifications
You must be signed in to change notification settings - Fork 2
Feature: Allowing for batch file creation when the generated KPP file exceeds the file size limit #21
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
base: main
Are you sure you want to change the base?
Conversation
… for performing checks before saving the generated file
…sabling logic for batch file creation
…de file with a single institution ID
…Utils, and adding a buffer in the calculation
…he Args object in the batch file tests
d9136b8 to
ab1b467
Compare
9b0d3e9 to
be8cf03
Compare
|
Versjonsnummeret må oppdateres. Se veiledning. Håndtert i 28d36e2 |
…an XML file' logic, so that the resulting file size is directly accessible from disk
| {"epj-versjon=", "Versjon av EPJ", x => kppArgs.VersjonEpj = x }, | ||
| {"fhi-herid=", "FHIs HerId.", x => kppArgs.FhiHerId = x }, | ||
| {"batchfiles-enable=", "'true' dersom det er ønskelig å opprette delmeldinger om KPP-meldingen blir for stor", x => kppArgs.BatchFiles.EnableCreation = ParseBool(x) }, | ||
| {"batchfiles-maxfilesize=", "Maks. filstørrelse for KPP-meldingen i gigabyte (GB)", x => kppArgs.BatchFiles.MaxFileSizeInGigabytes = ParseInt(x) }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
De to batchfiles-*-input-argumentene er bredere enn de eksisterende argumentene. Når man kjører
.\Dhhr.KppParser.ConsoleApp.exe -hfor å vise veiledning for konsollapplikasjonen, ser det ikke så pent ut:
Har forsøkt å se på om det går an å konfigurere Mono.Options.OptionSet eller Mono.Options.OptionSet.WriteOptionDescriptions() for å øke avstanden mellom første og andre kolonne, men har ikke blitt klok på om det er mulig.
Feature: The KPP service can create batch files (delmeldinger) when the generated KPP file (
xmlfile) exceeds the maximum file size limit. The file size limit is only evaluated (and only needs to be provided) when the feature is enabled.Both the GUI application and the console application supports the creation of batch files.
Batch file creation is not available for episode files containing episodes associated with more than one institution.
Unit tests have been added to test different batch file scenarios.