LDSSA / portal

LDSA Portal
3 stars 2 forks source link

Add report submission #198

Closed hcastilho closed 2 years ago

hcastilho commented 2 years ago

Closes #197

cimendes commented 2 years ago

My dear @hcastilho, I am confused... And I broke the thing. I don't know if this was your purpose, but if it was, great success!

To test I wanted to submit a report in PDF as a student.

I've cloned the branch and launched the portal as explained here . Loaded the test data and created a capstone in the admin portal.

These are the settings I used for testing purposes:

Screenshot 2022-01-12 at 19 55 52

Capstone was created as expected: (student view)

Screenshot 2022-01-12 at 19 57 41

Added the URL as a test, worked well, but the report section showed up as "Not accepting reports"

Screenshot 2022-01-12 at 19 58 43

Noticed there was a Reports section on the admin panel, and thought that maybe I needed to create the report there (as if it was a unit). And I broke the app when I clicked it

Screenshot 2022-01-12 at 20 03 03

Now.. Is this a me problem or have a stumbled across an actual error? The due date was today at midnight. I expect the reports to start as open and close at the defined due date.

Sorry Hugo 😄

cimendes commented 2 years ago

The actual error message when going to http://localhost:8000/admin/capstone/report/add/

django.core.exceptions.FieldError: 'submited_at' cannot be specified for Report model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class ReportAdmin.

hcastilho commented 2 years ago

00:00 on the 12th is in the past days are from 00:00 till 23:59

The reports section in the backoffice is not supposed add reports (that is done by the students in the portal) so I didn't test it.

cimendes commented 2 years ago

Feeling slight stupid now...

set everything to be in the future for the non-time-travelers, submitted (and updated) report 1 successfully image

Screenshot 2022-01-12 at 20 38 54

Is the submission of reports sequential? Do I need to close report 1 for report 1 resubmission to open up?

cimendes commented 2 years ago

How do I have access to the reports? The backend doesn't show me where they are stored image

If I click on the test_capstone it breaks with django.core.exceptions.FieldError: 'submited_at' cannot be specified for Report model form as it is a non-editable field. Check fields/fieldsets/exclude attributes of class ReportAdmin.

cimendes commented 2 years ago

image Ahhhh So pretty! Found it!

cimendes commented 2 years ago

Can I make a request and Add the slackID to this table? We don't have an easy way to deliver the reports with comments to the students so having the id to click and open the conversation on slack would help a lot

cimendes commented 2 years ago

Resubmission of report 1 is concurrent with submission of report 2. I suggest opening and closing report submission for each instance on the back office individually.