Wiaas Orders #12

Merged
akrdzic merged 7 commits from orders into master 2018-08-14 14:42:52 +02:00
akrdzic commented 2018-08-14 13:15:41 +02:00 (Migrated from gitlab.com)

Details

Asana Card

  • Active and history orders visualization on frontend
  • Order enumaration with '100000' prefix
  • Order details in place and contact support dialog for history orders
  • Order hierarchical management for orders (overview, active and history orders)
    (for now we work with premise that every user is organization admin, later on this will be handled as part of user profile)
    • Every company admin can see all orders from its organization and all of its departments
    • If show all orders is not checked only private customer orders are shown
    • If show all orders is checked all orders from admin organization are shown with Placed by field that contains customer that created the order

Setup
Following must be executed to apply changes

cd backend
composer install
composer update-db

Unit tests

Tests are added for backend implementation of user organizations and orders handling. To test them run:

cd backend/app/plugins/wiaas
./tests/bin/setup.sh [db_root] [db_root_pass]
phpunit

Smoke test

  1. Create testing organizations with following hierarchy:

     ├── organization
     │   ├── department1
     │       ├── subdepartment1
     │   ├── department2
     │       ├── subdepartment2
    
  2. Create testing customer for each of organizational levels

  3. Create orders with every of these customer

  4. Login to frontend with every of them and review that:

    1. every customer has access to orders from its own organizational level and lower
    2. order numbers are correctly prefixed
    3. order details are correctly shown for active and history orders
    4. Support dialog for history orders shows all orders packages with correct end dates and statues
      (currently only production for completed order and cancelled for cancelled order)
**Details** [Asana Card](https://app.asana.com/0/697944902557002/744133144344689) * Active and history orders visualization on frontend * Order enumaration with '100000' prefix * Order details in place and contact support dialog for history orders * Order hierarchical management for orders (overview, active and history orders) (for now we work with premise that every user is organization admin, later on this will be handled as part of user profile) * Every company admin can see all orders from its organization and all of its departments * If show all orders is not checked only private customer orders are shown * If show all orders is checked all orders from admin organization are shown with *Placed by* field that contains customer that created the order **Setup** Following must be executed to apply changes cd backend composer install composer update-db **Unit tests** Tests are added for backend implementation of user organizations and orders handling. To test them run: cd backend/app/plugins/wiaas ./tests/bin/setup.sh [db_root] [db_root_pass] phpunit **Smoke test** 1) Create testing organizations with following hierarchy: ├── organization │ ├── department1 │ ├── subdepartment1 │ ├── department2 │ ├── subdepartment2 2) Create testing customer for each of organizational levels 3) Create orders with every of these customer 4) Login to frontend with every of them and review that: 1) every customer has access to orders from its own organizational level and lower 2) order numbers are correctly prefixed 3) order details are correctly shown for active and history orders 4) Support dialog for history orders shows all orders packages with correct end dates and statues (currently only *production* for completed order and *cancelled* for cancelled order)
akrdzic commented 2018-08-14 13:16:30 +02:00 (Migrated from gitlab.com)

changed the description

changed the description
bilal.catic commented 2018-08-14 14:42:52 +02:00 (Migrated from gitlab.com)

mentioned in commit 6017ae8cf3

mentioned in commit 6017ae8cf38a9cca7988a8722440efca659e26ce
bilal.catic commented 2018-08-14 14:42:52 +02:00 (Migrated from gitlab.com)

merged

merged
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: senaduka/old-new-wiaas#12