Loris icon indicating copy to clipboard operation
Loris copied to clipboard

[Schedule Module] add new schedule module into Loris

Open kongtiaowang opened this issue 4 years ago • 43 comments

Brief summary of changes

Rewrite this module from IBIS.

Testing instructions

Test plan Screen Shot 2020-03-10 at 1 15 34 PM

kongtiaowang avatar Mar 09 '20 20:03 kongtiaowang

@johnsaigle Thanks for your reviews.

kongtiaowang avatar Mar 10 '20 20:03 kongtiaowang

restart travis

kongtiaowang avatar Mar 11 '20 20:03 kongtiaowang

This PR can't start Travis. I will reopen it.

kongtiaowang avatar Apr 24 '20 15:04 kongtiaowang

restart travis

kongtiaowang avatar Apr 24 '20 17:04 kongtiaowang

@zaliqarosli Could you test this module?

kongtiaowang avatar Jul 14 '20 15:07 kongtiaowang

The schedule permission does not show up on the user accounts module. I am also able to add, edit, and delete an appointment without having the permission.

CamilleBeau avatar Aug 18 '20 13:08 CamilleBeau

restart Travis

kongtiaowang avatar Aug 19 '20 01:08 kongtiaowang

From the admin account or from an account with the scheduling permission, I am not able to add an appointment. When I click on "Add appointment", it brings me to this blank page: image

CamilleBeau avatar Aug 25 '20 12:08 CamilleBeau

@CamilleBeau You need to run the SQL/New_patches/2020-03-03-schedule_module.sql patch " INSERT INTO user_perm_rel(UserID,PermID) VALUES ( (SELECT ID FROM users WHERE UserID='admin'), (SELECT permID FROM permissions WHERE code='schedule_module') ); " in this PR. Have you run "sudo make " to compile react? I have tested it. It works well. 屏幕快照 2020-09-03 上午10 07 53

kongtiaowang avatar Sep 03 '20 14:09 kongtiaowang

@kongtiaowang Strange, I am still getting the same error of a blank page after clicking "Add appointment." Maybe we should have another reviewer check to see if it is working for them

CamilleBeau avatar Sep 04 '20 15:09 CamilleBeau

reopen to rerun travis

kongtiaowang avatar Sep 08 '20 15:09 kongtiaowang

@CamilleBeau Could you test it again? I have fixed the can't load issue after rebasing to new main branch.

kongtiaowang avatar Sep 09 '20 18:09 kongtiaowang

Looks good. I only found two issues:

  • Can not order by "Data Entry Status" properly
  • When deleting an appointment, I am brought to the same blank page I referenced earlier (attached) instead of back to the appointment results.

image

CamilleBeau avatar Sep 09 '20 21:09 CamilleBeau

Sep-11-2020 12-36-25 @CamilleBeau Could you show me more detail on the console? I can't reproduce the issuse you found. Maybe before you run make, you need to run "git pull aces main" to rebase this branch.

kongtiaowang avatar Sep 11 '20 16:09 kongtiaowang

@CamilleBeau Could you show me more detail on the console? I can't reproduce the issuse you found. Maybe before you run make, you need to run "git pull aces main" to rebase this branch.

@kongtiaowang Yes no longer getting the issue.

CamilleBeau avatar Sep 14 '20 13:09 CamilleBeau

@ridz1208 @driusan I think this PR is ready to merge. It is better to go into 24.0-release.

kongtiaowang avatar Sep 14 '20 15:09 kongtiaowang

Just manually tested, everything looks good but the module is only accessible if the user has permission "Schedule Module: edit and delete the appointment". Is this intended? Or is the user supposed to be able to view the module (but not edit/delete appointments) without this permission?

CamilleBeau avatar Dec 04 '20 19:12 CamilleBeau

@CamilleBeau For the premission, it is intended base on IBIS and test plan.

kongtiaowang avatar Dec 21 '20 16:12 kongtiaowang

@ridz1208 Could you review again?

kongtiaowang avatar Jan 18 '21 19:01 kongtiaowang

@kongtiaowang can you fix the tests please ?

@CamilleBeau can you re-add the approve and pass manual test flag if its tested please

ridz1208 avatar Feb 23 '21 17:02 ridz1208

Looks good

CamilleBeau avatar Mar 08 '21 16:03 CamilleBeau

@maltheism would you have a chance to review this module?

driusan avatar Apr 12 '21 17:04 driusan

@kongtiaowang should CandID be used when it's referenced in LORIS as DCCID? Also might want to swap the table column order for PSCID being shown first and then DCCID after like how the candidate_list module has as order for consistency.

maltheism avatar Apr 12 '21 18:04 maltheism

Hi @kongtiaowang, a few browser console errors:

Warning: Failed prop type: Invalid prop `minYear` of type `number` supplied to `DateElement`, expected `string`.
Warning: Failed prop type: Invalid prop `value` supplied to `SelectElement`.
Warning: Failed prop type: Invalid prop `columns` of type `string` supplied to `Filter`, expected `number`.
Warning: Failed prop type: Invalid prop `value` of type `boolean` supplied to `TextboxElement`, expected `string`.
Warning: Failed prop type: Invalid prop `value` of type `boolean` supplied to `DateElement`, expected `string`.
Warning: Failed prop type: Invalid prop `value` of type `boolean` supplied to `TimeElement`, expected `string`.
Warning: Failed prop type: Invalid prop `columns` of type `string` supplied to `FieldsetElement`, expected `number`.

maltheism avatar Apr 12 '21 18:04 maltheism

Hi @kongtiaowang, when a new appointment has been created, the user has to hard refresh the module after the success dialogue for seeing the new appointment in the table. I think it should be an automatic refresh or by having the new appointment details be added to the table. The delete appointment functionality seems to remove from the table without needing to refresh the module.

maltheism avatar Apr 12 '21 18:04 maltheism

@CamilleBeau Could you review this PR again please?

cmadjar avatar Jun 08 '21 13:06 cmadjar

To be discussed at the LORIS meeting today.

cmadjar avatar Jun 08 '21 13:06 cmadjar

@kongtiaowang I think this one needs your attention

ridz1208 avatar Jun 22 '21 18:06 ridz1208

@kongtiaowang this one is in your court.

cmadjar avatar Jul 13 '21 13:07 cmadjar

Screen-Recording-2021-07-16-at-1 14 34-PM

All the issues will be fixed after rebase to origin/main. I think this PR is ready.

kongtiaowang avatar Jul 16 '21 17:07 kongtiaowang