Open hariis opened 13 years ago
The least and easiest to do is create an action from some controller that only admin has access to (in this case, username == 'hari' or 'satish') and that action loads the question and financial objects, reruns the rules checker and updates the question.expert_reason field.
Dropping out of v1 due to Satish's recommendation
Actually you can regenerate expert reason by navigating to the following URL http://localhost:3000/questions/get_expert_verdict/question_id#payment_mode eg: http://localhost:3000/questions/get_expert_verdict/42#payment_mode
Something to think about: It is highly likely that we may add rules and / or change existing rules. If that happens, we may have to rerun them on the existing questions and update them.
So we have to think if the current structure allows it