openlmis-referencedata

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
OLMIS-1242: Add packRoundingThreshold and roundToZero fields to OrderableProduct

    • -0
    • +20
    /demo-data/referencedata.orderable_products.json
    • -1
    • +7
    /src/main/resources/api-definition.yaml
OLMIS-894 Split out JSON schema for role into separate file

    • -11
    • +12
    /src/main/resources/api-definition.yaml
    • -0
    • +33
    /src/main/resources/schemas/role.json
OLMIS-1162 Change rights search endpoint to return array of rights

Even though a search by name should only find one right every time, if the search adds more parameters, multiple rights may be returned. This is to minimize API changes in the future.

Also added a missing integration test for GET /rights/<rightId>.

    • -2
    • +2
    /src/main/resources/api-definition.yaml
OLMIS-894 Split out JSON schema for right into separate file

Need to make sure copyRamlToBuild includes these JSON schema files to build directory. Remove copyRaml task, since it appears to be a duplicate of copyRamlToBuild. Using JSON schema draft 4, so remove refactor required keys into an array of property names. Draft 4 is used, as it is less verbose, and it seems to be a "default" of sorts (if rightArray does not specify a schema, draft 4 seems to be assumed).

    • -12
    • +7
    /src/main/resources/api-definition.yaml
    • -0
    • +42
    /src/main/resources/schemas/right.json
OLMIS-1162 Add search endpoint to find a right by its name

Now that hasRight endpoint requires UUIDs for its query parameters, a search endpoint is necessary to get a right's UUID by its name.

    • -0
    • +22
    /src/main/resources/api-definition.yaml
OLMIS-1138 Minor fixes

    • -0
    • +1
    /src/main/resources/static/generated/.gitignore
Fixing build

    • -0
    • +1
    /src/main/resources/static/docs/generated/.gitignore
OLMIS-1138 Moving swagger to /docs/ url

    • -0
    • +124
    /src/main/resources/static/docs/index.html
    • -1
    • +0
    /src/main/resources/static/generated/.gitignore
    • -123
    • +0
    /src/main/resources/static/index.html
OLMIS-1104 After review fix

fixed tests

OLMIS-1104 After review fix

fixed tests, rename method

OLMIS-1104 After review fix

    • -1
    • +1
    /src/main/resources/api-definition.yaml
OLMIS-1162 Change hasRight endpoint to take UUIDs in URI

Preferable to have anything in the URI to be of UUID format.

    • -12
    • +12
    /src/main/resources/api-definition.yaml
OLMIS-1162 Change hasRight endpoint to return JSON object rather than simple boolean

To make sure the result can be parsed as valid JSON, return a JSON object vs. just a JSON boolean value. Update RAML and tests.

    • -0
    • +12
    /src/main/resources/api-definition.yaml
OLMIS-1162 Refactor SupervisionRoleAssignment to not use homeFacility property

Remove homeFacility property; it is not necessary, as it can be retrieved from the user. Change hasRight method to check for homeFacility from user. If somehow there is no supervisory node or home facility, then facility was not found.

OLMIS-1162 Remove assignTo method and use addSupervisions for SupervisionRoleAssignment

The assignTo user method is no longer necessary, as the user is assigned in the constructor. However, the extra logic that is performed for supervision role assignments has been renamed to addSupervisions, and this method is called instead.

OLMIS-1162 Refactor role assignments to require user in constructors

To avoid having a transient property homeFacility in the SupervisionRoleAssignment, and because it makes more sense conceptually, we need to ensure all role assignments are associated with a user. Change all constructors and all code depending on these constructors.

OLMIS-1138 Fixing swagger sources not being copied to the jar

    • -1
    • +1
    /src/main/resources/static/generated/.gitignore
    • -22
    • +25
    /src/main/resources/static/index.html
OLMIS-1219: Reference Data price per pack field, add pricePerPack field in ProgramProduct

    • -11
    • +22
    /demo-data/referencedata.program_products.json
    • -1
    • +1
    /src/main/resources/api-definition.yaml
OLMIS-1104 Calculation logic to determine number of months in period is incorrect

    • -32
    • +2
    /src/main/resources/api-definition.yaml
OLMIS-1197 Propose RequisitionGroupProgramSchedules refactor

    • -116
    • +31
    /src/main/resources/api-definition.yaml
OLMIS-1239 - Add dispensing unit/unit to OrderableProduct

    • -0
    • +10
    /demo-data/referencedata.orderable_products.json
OLMIS-1239 - Add dispensing unit/unit to OrderableProduct

    • -0
    • +10
    /demo-data/referencedata.orderable_products.json
OLMIS-1219: Reference Data price per pack field, add pricePerPack field in ProgramProduct

    • -11
    • +22
    /demo-data/referencedata.program_products.json
    • -1
    • +1
    /src/main/resources/api-definition.yaml
OLMIS-1219: Reference Data price per pack field, add pricePerPack field in ProgramProduct

    • -11
    • +22
    /demo-data/referencedata.program_products.json
    • -1
    • +1
    /src/main/resources/api-definition.yaml
OLMIS-1236 Ensure bootstrap data gets loaded before demo data

Demo data currently gets loaded right after Hibernate auto-generates DDL, while bootstrap data gets loaded later. Remove bootstrap data load from manual process, and add it to Spring Boot process. Also remove manual way of loading data into data source (with a data source bean), since it is not needed anymore.

Add @DirtiesContext to BaseWebIntegrationTest to clean up connections after each set of tests.

    • -0
    • +1
    /src/main/resources/bootstrap.sql
OLMIS-1162 Fix typo in check for hasRight

Need to use double ampersand (not single) to check if facilityMatches.

OLMIS-1138 Remove Swagger sources from OpenLMIS repos

    • -1362
    • +0
    /src/main/resources/static/css/print.css
    • -125
    • +0
    /src/main/resources/static/css/reset.css
    • -1489
    • +0
    /src/main/resources/static/css/screen.css
    • -250
    • +0
    /src/main/resources/static/css/style.css
    • -14
    • +0
    /src/main/resources/static/css/typography.css
    • binary
    /src/main/resources/static/fonts/DroidSans.ttf
    • binary
    /src/main/resources/static/images/collapse.gif
    • binary
    /src/main/resources/static/images/expand.gif
    • binary
    /src/main/resources/static/images/favicon.ico
    • binary
    /src/main/resources/static/images/logo_small.png
  1. … 33 more files in changeset.
OLMIS-1236 Update demo seed in build and image generation

Include demo seed task into the build process, but output the demo data SQL into the build/demo-data directory (keeping with all generated files to be under build directory). Add demo data to docker image.

OLMIS-1162 Update hasRight endpoint; remove optional supervisory node, add required facility

* Update SupervisionRoleAssignment to have home facility property. Either home facility or supervisory node is required in role assignment.

* Update hasRight in SupervisionRoleAssignment to check matching facility. Facility matches either if facility matches home facility, or supervisory node supervises the facility.

* Update RAML with new endpoint signature

* Update RightQuery to use new signature

* Update user controller with new endpoint signature, RightQuery signature and role assignment signature

* Update unit tests for role assignment and user controller

* Update integration tests for user controller

    • -3
    • +9
    /src/main/resources/api-definition.yaml
OLMIS-1162 Add supervises method to SupervisoryNode

This is so the supervisory node can indicate whether it supervises a specified facility in its hierarchy.