Clone
 

chongsun ahn <cahn922@yahoo.com> in openlmis-stockmanagement

Update db image to debezium

    • -2
    • +2
    /local-manual-api-test/docker-compose.yml
Add cleanup to Jenkinsfile

To avoid file system errors in subsequent builds.

Fix Sonar issue

Merge 'OLMIS-6772-spring-boot-2'

OLMIS-6772 Fix more Sonar issues

OLMIS-6772 Fix Sonar issues

OLMIS-6772 Fix report generation errors

* Jasper report generation is giving an error while trying to get the temp file that was created. Skip this temp file step as it does not seem necessary.

* Remove all exporters, as only PDFs are being generated.

* Specify correct datasource for different reports.

OLMIS-6772 Update Spring Boot version to 2.x

* Update to Spring Boot 2.2.2

* Spring Security OAuth2 now needs to be reconfigured to same version (2.2.2)

* Update Flyway to version supported by Spring Boot 2.2 (Flyway 6.0.8)

* Spring Data and pagination methods have changed

* Pagination does not allow a null sort, and by default returns an object, rather than an array, so add CustomSortSerializer to serialize Sort

* Fix digest subscription DTO to serialize digestConfiguration property

* Update RAML parser and tester to fix random errors during integration tests

* Re-implement generation of Jasper reports.

  1. … 70 more files in changeset.
Update raml2html to 3.0

To fix security vulnerabilities of nunjucks and minimatch.

Update package lock file

To potentially fix build issues.

OLMIS-3186 Refactor NearExpiryNotifier to fix possible async bug, try 2

Refactor code to use composition over inheritance. NearExpiryNotifier and StockoutNotifier now has StockCardNotifier as a component. This improves separation of testing.

Revert "OLMIS-3186 Refactor NearExpiryNotifier to fix possible async bug"

This reverts commit 4e253a62329e6db1e9cf95e77f0b83840503c65f.

OLMIS-3186 Refactor NearExpiryNotifier to fix possible async bug

Refactor code to use composition over inheritance. NearExpiryNotifier and StockoutNotifier now has StockCardNotifier as a component. This improves separation of testing.

OLMIS-3186 Add to changelog and bump up service version

Since we are adding new functionality.

OLMIS-3186 Add another unit test

For Sonar.

OLMIS-3186 Add unit tests

For Sonar.

OLMIS-3186 Add more unit tests

For Sonar.

OLMIS-3186 Add notification of near expiry

* Add new NearExpiryNotifier to check if any lots have stock cards which will expire in six months.

* Enable Spring scheduling to make this check based on a cron expression (default once a day).

* Refactor StockoutNotifier into StockCardNotifier for code reuse of notification logic.

* Add new call of getting lots by expiration date and getting stock cards based on lot IDs

* Rename message keys to be more generic.

* Add tests; StockoutNotifierTest also tests its superclass, as that seems to be the simplest way to do so.

    • -0
    • +953
    /package-lock.json
OLMIS-4701 Make schema export script more robust

Ensure pgpassfile is deleted for script cleanup.

OLMIS-4701 Update READMEs

    • -10
    • +3
    /src/main/resources/db/demo-data/README.md
OLMIS-4701 Use StreamGobbler to try to fix Sonar issue

OLMIS-4701 Fix Sonar issue

Remove error stream consuming to potentially fix sonar issue.

OLMIS-4701 Attempt to fix sonar issue

OLMIS-4701 Ensure schema name has a value

So a null schema file is not created.

OLMIS-4701 Do not set owner for pg_dump

These SQL scripts assume the owner of the schema is the user that runs the script.

OLMIS-4701 Remove quotes from CSV demo data

For consistency.

OLMIS-4701 Move remaining CSV files away from LFS

For some reason, these were still tracked by LFS.

OLMIS-4701 Stop tracking CSVs using LFS

OLMIS-4701 Remove CSVs from demo-data folder

The ones that are small enough will be moved to inside the resources folder. The VLDD will be in the demo data repo.

    • -3
    • +0
    /demo-data/stockmanagement.jasper_templates.csv
    • -3
    • +0
    /demo-data/stockmanagement.organizations.csv
    • -3
    • +0
    /demo-data/stockmanagement.physical_inventories.csv
    • -3
    • +0
    /demo-data/stockmanagement.physical_inventory_line_item_adjustments.csv
    • -3
    • +0
    /demo-data/stockmanagement.physical_inventory_line_items.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_card_line_item_reason_tags.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_card_line_item_reasons.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_card_line_items.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_cards.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_event_line_items.csv
    • -3
    • +0
    /demo-data/stockmanagement.stock_events.csv
    • -3
    • +0
    /demo-data/stockmanagement.valid_destination_assignments.csv
    • -3
    • +0
    /demo-data/stockmanagement.valid_reason_assignments.csv
    • -3
    • +0
    /demo-data/stockmanagement.valid_source_assignments.csv
OLMIS-4701 Add demo data files to service image

So that the demo data build process can pick them up to add to the demo data image.