Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
OLMIS-982: Move refui root from /public to /

  1. … 830 more files in changeset.
OLMIS-1338: view offline requisitions

refactored requisition view page i.e. changed from grid to table

added offline storage for facilities and requisitions

added offline checkbox on requisition view page

refactored requisition and facility services to work while offline

  1. … 22 more files in changeset.
Updated to Angular 1.6

The major change in Angular 1.6 is enforcing uncaught promises, this

meant refactoring some tests and some code to have the proper promise

structure.

- Removed legacy karma tests that we were not using

  1. … 3 more files in changeset.
OLMIS-1122: revert remove close loading modal from login-modal interceptor

OLMIS-1122: add close loading modal to auth interceptor

OLMIS-1122: fix log in through modal from auth page and position modal on center

OLMIS-1122: add params to access state after log in

OLMIS-1122: remove reload page, create access-token factory

access-token factory is used by auth-interceptor-http and login-modal-interceptor

    • -0
    • +84
    ./access-token.factory.js
    • -0
    • +68
    ./access-token.factory.spec.js
OLMIS-982: Nested locations/endpoints in service discovery.

  1. … 18 more files in changeset.
OLMIS-1375: added auth interceptor test for access rights

  1. … 7 more files in changeset.
OLMIS-1122: clean up code with sonar

OLMIS-1375: refactored checking rights on entering the state

moved check logic from interceptor to auth service

changed all single rights to array in states

  1. … 6 more files in changeset.
OLMIS-1122: add login modal styles, add unit tests

unit tests for:

- emit proper event after login

- appropriate behavior on events: event:auth-loggedIn, auth.login, auth.login-modal

OLMIS-1375: added checking user rights on entering state

added accessRight parameter in all requisition states

  1. … 6 more files in changeset.
turn on unit disabled unit tests

OLMIS-1373: Added tests for Right class

    • -0
    • +104
    ./right.factory.spec.js
OLMIS-1122: remove unnecessary spies and injections from AuthInterceptorHttp tests

OLMIS-1373: Added JSDoc to the right.factory.js file

OLMIS-1122: separate login-modal interceptor from auth http interceptor, change checking state name to $state.is

    • -0
    • +70
    ./login-modal.interceptor.js
    • -0
    • +53
    ./login-modal.interceptor.spec.js
OLMIS-1441: moved rights constant to olmis-core module and changed controller method name

  1. … 4 more files in changeset.
OLMIS-1122: login controller/service is nowe extensible

- remove duplicated login code using events

- added LoginController directly to the login form

- 'auth.login' event moved from loginController to loginService

OLMIS-1441: disable edit template link when user has no permission to configure tempaltes.

  1. … 2 more files in changeset.
OLMIS-1122: url can have different things appended

OLMIS-1122: remove forgot password link from login form

OLMIS-1122: repair retry request with old access token

Interceptor retried request with 401 always with same params (including old access_token), after changes it always set current token to request

    • -0
    • +50
    ./common.factory.spec.js
OLMIS-1373: Modified authorization service to better fit our current model of permissions

    • -0
    • +19
    ./rights.constant.js
  1. … 3 more files in changeset.
OLMIS-1122: refactor, redirect to login page after logout, repair padding in modals

refactor:

- remove login-modal.service and put functionality to auth-interceptor-http

- remove login-modal.html

- add auth/login-page.html that is parent for login-form.html in states

- remove not implemented forgot password

  1. … 2 more files in changeset.
OLMIS-1122: mock get messages in AuthInterceptor test

OLMIS-1122: refactor in auth

Change InterceptorService to LoginModalService and remake method LoginModalService.onLoginRequired to return promise.

    • -0
    • +69
    ./login-modal.service.js
    • -0
    • +53
    ./login-modal.service.spec.js
OLMIS-1122: repair unexpected get test fail