#6144 (CreateExamByCourse)
35 · by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kokkuvõte
Children
Kommentaarid
- 1 aasta, 4 kuud ago by Sharif Mehedi about #6144 (CreateExamByCourse) (1 reply) : The skills now get created on hitting OK on CreateExamByCourse dialog.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : I increased priority of this ticket because Laura is waiting for it.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : We tested it together. It almost works. But the challenges don't get created. The run_from_ui method of my custom action is never called. Lino seems to just run the standard SubmitInsert action.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : I saw only now that my little change this morning (a single SHOW_INSERT action instance used by most actors) breaks the customized help texts of the insert actions. Not yet sure whether to drop this "feature" (if it was one). Maybe we can implement it differently, by having a help_text attribute on ...
- 1 aasta, 4 kuud ago by Sharif Mehedi about #6144 (CreateExamByCourse) (1 reply) : Having action names on the global list of actions as the bound_action.full_name() has a drawback as such that the other actors doesn't know the name of the defining_actor of an action hence unable to find an action effectively.
- 1 aasta, 4 kuud ago by Sharif Mehedi about #6144 (CreateExamByCourse) : I just published some changes on prima and react, related to this ticket.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : IMHO it makes sense that you run the dev.lino-framework.org/dev/mtsuite.html
- 1 aasta, 4 kuud ago by Sharif Mehedi about #6144 (CreateExamByCourse) : To merge the "choices" and the "apchoices" views, we need a way of the backend letting frontend know whether the action has parameters or not.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : I fixed the bugs in CreateExamByCourse.run_from_ui() and got it to work when it's installed as a normal action. TODO for @8lurry : but it still doesn't work when it's installed using get_insert_action().
- 1 aasta, 4 kuud ago by Sharif Mehedi about #6144 (CreateExamByCourse) (1 reply) : The linked yield statement was causing CreateExamByCourse to respond with an empty json. kernel doesn't know how to handle a run_from_ui generator. removing the yield statement causes the action to behave normally.
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : Let's try to get it working as a normal action (not inherit from ShowInsert) because in the long run we want to remove ShowInsert alltogether. TODO: Unite choices and apchoices views. When no action is specified, it would lookup the default action, which is ShowTable, which has no parameters. Why do...
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : This leads us back to #6125 (Reimplement the ShowInsert action). The root of all evil is that the insert dialog existed before Lino had dialog actions. Theoretically we should remove this special status from ShowInsert and convert it to a normal dialog action. The only special thing is that its action parameters are defined by the actor (t...
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) (6 replies) : The other problem is that, when it opens, the comboboxes don't work. The skill_1 combo asks for its choices with /choices/ratings/ExamsByCourse/skill_1 but this can't work, the layout owner is not the actor (ExamsByCourse) but the action (CreateExamByCourse).
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : I fixed a few "internal bugs" and now the insert dialog comes correctly at on the second click. On the first click it doesn't open because the front end sends an empty record_id, so the request goes to the ApiList view instead of ApiElement:
[10/Jun/2025 01:57:47] "GET /api/ratings/ExamsByCourse?an=... - 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : Something must be special, I'm having different issues depending on how I turn it. For example Exception: 20130827 <django.db.models.fields.related.ForeignKey: skill_1>.remote_field.model is 'school.Skill'
- 1 aasta, 4 kuud ago by Luc Saffre about #6144 (CreateExamByCourse) : Created new Ticket #6144 (CreateExamByCourse).