chongsun ahn <> in openlmis-requisition-ui

Bump ui-components to 7.1.0-SNAPSHOT

Dependency has changed its version.

Remove node_modules folder after build

To try to cut down disk usage on build server.

OLMIS-5514 Change requisition template columns validation

From alphanumeric to generally all UTF-8 characters.

    • -0
    • +32
OLMIS-5354 Update referencedata-ui to 5.5.0-SNAPSHOT

OLMIS-4982 Give visual indicator that requisition is report-only

Header shows a third option for requisition "type"--report only, and puts it in yellow to give attention to it.

    • -0
    • +1
OLMIS-4164 Add changelog entry

OLMIS-4164 Fix full supply and non full supply controllers to use existing permission checks

Requisition view routes now has permission booleans to determine if a user can do certain actions. Use those in the full supply and non full supply controllers for permission checks.

OLMIS-4164 Fix line item and product grid to check permission by program AND facility

Supervision rights need to be checked by program and facility. Changed program check from code to id, since that does not require an expanded response.

OLMIS-3527 Add to changelog

OLMIS-4004 Remove canSubmitAndAuthorize from requisition view factory

This method is confusing, and we should handle it in the controller logic.

OLMIS-4004 Redo how permissions are checked in viewing a requisition

Remove logic from controller (since controllers should be “thin”), and add logic to methods in a factory, which are named generically (canSubmit, canDelete—can this user do this action on this requisition). Logic to check permissions no longer uses authorizationService (which is synchronous), but now uses permissionService (which is asynchronous).

OLMIS-3527 Fix hasRight to check by program and facility

For a hasRight check to be correct for supervision rights, it needs to check by program and facility. Change program check from code to id, because it doesn’t depend on an expanded REST response.

OLMIS-3527 Change criteria for if a comment can be added or edited

Instead of checking whether a requisition is approved or released, the requisition should be checked to determine if it is editable.

OLMIS-4004 Change call to hasRight to include facilityId

When checking if the user has a certain right, it should be checked by programId and facilityId, not programCode. Requisition rights must be checked by both program and facility, since they are supervision type rights. Additionally, we should move away from using codes, which should only be used for an upload process and are only available in an expanded REST response, and use ids, which are available in a normal REST response.

OLMIS-4063 Update Convert to Order page to show geoZone, not parent

OLMIS-1933 Change infrastructure/dev images from latest to 1

Moving away from latest to versioned image.

OLMIS-403 Use directive for input buttons

Apply directive to <input> buttons. Add unit tests.

OLMIS-403 Add description tag to module

Based on review feedback.

OLMIS-403 Add interceptor to track 500 errors

Intercept all 500 errors and send to GA as an event. The unit tests are commented out because they don't work currently.

OLMIS-403 Add directive for buttons to track button clicks

Track all "button" clicks and send to GA as an event. Button means <button> and <input> of type=submit or type=button. The unit test is commented out because it doesn't work currently.

OLMIS-403 Add Analytics module and track page views

Add analytics module and new config setting analyticsTrackingId. Add GA code to index.html (this will eventually be replaced by downloading the analytics.js code during build time). Track page views during stateChangeSuccess.

Make report format buttons use button tag

Change report format buttons to use button tag to match styling of all other buttons. Also add them into a button group so they match styling of buttons in other places and make PDF and CSV the only primary buttons.

Merge branch 'feature/OLMIS-1182'

OLMIS-1788 Rename createdDate to initiatedDate

Matches API endpoint signature.

Merge branch 'feature/OLMIS-1726-rename-months'

OLMIS-1726 Update maxStock and minStock names to include periods

Update maxStock to maxPeriodsOfStock and minStock to minPeriodsOfStock. It's more descriptive and less confusing for developers.

OLMIS-1783 Load environment variables from env file

This is so TRANSIFEX_USER and TRANSIFEX_PASSWORD can be set in the CI machine and automatically used to sync with Transifex during the CI process.

OLMIS-1726 Rename references of months

Only seems to have been used in calculation factory (and test) and an unused set of css class names.

OLMIS-1604 Incorporate minor UI changes based on review

    • -1
    • +2
    • -18
    • +16
OLMIS-1604 Add report options page

Create page to show options of selected report. Basic layout. Only String datatypes with dropdown options from the SQL are supported.

    • -0
    • +52
    • -0
    • +77
    • -0
    • +20
    • -0
    • +30