Globalshala / Eval-Bridge-bugs

In the Repository, we will add the bugs related to eval bridge system
0 stars 1 forks source link

Grade Scale edit: Task Approver: Invalid UpdateExpression Syntax Error when Approving Edited Grade Scale Data #105

Closed Adnan-shariff closed 3 months ago

Adnan-shariff commented 4 months ago

Describe the bug When attempting to update the Grade Scale by approving by clicking on accept. The error indicates an invalid UpdateExpression with syntax errors related to tokens such as grade_description and Id is being passed in approval section which seems also an issue

Scope of the bug This bug affects the functionality of updating Grade Scales in the application. Filter>Grade Scale type>Grade>Edit

Steps to Reproduce

  1. Open the Grade Scale section.
  2. Filter the grade scales by selecting "percentage" from the "grade_scale_type" filter.
  3. Select any data with "Grade" grade_scale_type.
  4. Click on the "Edit" button to open the Grade Scale Edit form.
  5. Make changes to the following fields: Country, Grade Scale type, Grade description, High range, Low range, out of, Scale.
  6. Click on the "Save" button.
  7. Go to "My Task Approver" section.
  8. Click on "Grade Scale Edit" task.
  9. Click on "Accept".
  10. Select "New request raised".
  11. Click on the "Accept" button.
  12. Error message appears.

Expected Behavior The Grade Scale should be successfully updated without any syntax errors.

Actual Behavior An error message is displayed indicating syntax errors in the UpdateExpression.

Test Data to Reproduce Tese data 1: Old grade scale data:

created_at : 1642764479000 column_range : gradedescription grade_scale_type : Grade Desscription Scale (Honor, Excellent, V. Good, Good, Fair) grade_description : Honor country : Syria scale : 4 modified_at : 1642764479000

Edit grade scale data: grade_description : Good id : 000000000G06C29MPTXFD3PXRE

Screenshots 2024-05-15 15_16_05-Window 2024-05-15 15_15_55-Window 2024-05-15 15_15_16-Window 2024-05-15 15_15_07-Window 2024-05-15 15_14_53-Window 2024-05-15 15_14_46-Window 2024-05-15 15_11_22-Window 2024-05-15 15_09_24-Window

Adnan-shariff commented 3 months ago

We are able to make changes for Country, Grade Scale type, Grade description, High range, Low range, out of, Scale succesfully working as intended on dev and local and also changes are applied in db and also in UI hence closing the issue.

2024-06-11 14_12_32-Window 2024-06-11 14_11_54-Window 2024-06-11 14_11_08- 2024-06-11 14_10_52-Window 2024-06-11 14_18_38-Window