stats4sd / aec_portfolio

A proof of concept for the AEC Consortium Project Management / Assessment System
GNU General Public License v3.0
0 stars 0 forks source link

Add custom assessment criteria #55

Closed dave-mills closed 1 year ago

dave-mills commented 1 year ago

This PR fixes #40. It adds a new "Custom" AssessmentCriteria model.

NOTE: I suggest merging in the previous #54 first as it'll make it easier to review this branch.

TODO:

dave-mills commented 1 year ago

Update:

I'm not going to fix the status here, because after a discussion with Emily we're going to modify the assessment status and how it is presented anyway, so we'll do that in a separate PR.

dan-tang-ssd commented 1 year ago

Thank you Dave.

I checkout dev branch, get latest code. Performed testing successfully for review readlines and assess project. Then checkout this branch, get latest code. Run migration files.

Below please find my testing result FYI.

Main menu

image

image

image

dan-tang-ssd commented 1 year ago

Performed below testing with positive result:

  1. Create new additional criteria, with examples
  2. Create new additional criteria, without example
  3. Reorder additional criteria

A very minor question, should we be consistent in menu item name and CRUD panel name?

image

dan-tang-ssd commented 1 year ago

Project CRUD panel, list view, added new button "Assess Additional Criteria".

In database, corresponding additional_criteria_assessment records for existing assessments also created automatically after adding a new additional criteria.

image

In additional criteria 1, I ticked custom score tags then saved image

When I come back from additional criteria 2 to additional criteria 1, my ticked custom score tags are not ticked... image

image

dan-tang-ssd commented 1 year ago

I performed testing for adding custom score tags.


Additional criteria 2, it does not have any score tag. Custom score tag can be added successfully. image

image


Additioanl criteria 1, it has two score tags. Custom score tag cannot be added. image

image

image

dave-mills commented 1 year ago

Oops - I somehow managed to put that example / custom example save outside the foreach loop inm the AssessCustomOperation before committing. Thanks for finding that.

Should be all fixed in the latest commit - tested just now locally and I was able to properly save + retrieve examples + custom examples for multiple additional criteria.

CleanShot 2023-05-24 at 11 04 01

CleanShot 2023-05-24 at 11 04 05

dan-tang-ssd commented 1 year ago

Thank you Dave.

I got latest code and run migration files again. Then performed same testings with positive result. All mentioned items fixed.

I think it is good to merge it into dev branch now.