-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
228 Approve blocked submissions #239
Conversation
@DallinFromEarth What's the status on this PR? I see it's marked as a "Draft." My code is ready for you to start integrating it. I defined the behavior, and implemented the DAO and service level methods you'll need to create the proper endpoints. In the end, the fields a richer than a simple How can we collaborate to finish both of these and get this new feature into the product? (See #233) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is coming along really well! If we're both railroad companies approaching each other from separate coasts, we're within smelling distance of nailing down the golden spike! 🚂
I've left a few comments about how we'll need to connect up exactly. I'm hoping that we can talk more about this tomorrow morning during our shared TA hours.
At any rate, we'll probably end up merging one of these PRs into the other to finish up the work, and then submitting it all as PR into main
. How do you feel about that?
src/main/resources/frontend/src/views/AdminView/SubmissionsView.vue
Outdated
Show resolved
Hide resolved
src/main/resources/frontend/src/views/AdminView/SubmissionInfo.vue
Outdated
Show resolved
Hide resolved
…or-low-commit-submissions' into 228-ta-approve-blocked-submission
@frozenfrank The UI stuff has been done for a while now. Now that you've completed all this amazing work, I can go ahead and work on connecting it. So far this morning I worked on getting main and your branch merged into mine so I can be working on the right code. Once I finish looking through your additions I'll have a better idea of where I need to go |
@frozenfrank What updates did you make to the database? I've noticed the new |
Great question, @DallinFromEarth! The answer to this is too long to type out, but I recorded two videos going over the details for you: |
I did see the updates you described in the video. They look great, and I think they'll make life easier. The issue I was having was when running the code and going to the front end, it was throwing SQL access error, which in my experience normally happened when the database was changed and the columns weren't added to my database. I then ran This took me a lot longer than I care to admit to figure out, but the issue was in
That was throwing the error. I've fixed it in my branch |
@DallinFromEarth
Yes, unfortunately, that was a bug in my code. Sorry about that. I also discovered that issue and resolved it in commit ad67936 which has been added to the 🐑 😞 🐑 |
@DallinFromEarth Also note that I pushed a few commits to the #233 PR which allow the checks (tests) to pass again. Merging in those changes will likely cause this PR to pass the checks again as well. |
…or-low-commit-submissions' into 228-ta-approve-blocked-submission
Hey @frozenfrank I merged the branches you've mentioned and have gotten kind of stuck. I might have done something wrong, but I can't get anything to run properly. Everything keeps running into SQL errors. I've spent a long time today trying to hunt them down. Can we talk sometime tomorrow or Friday? One example is, at least on my machine, that the insert builder doesn't work. Another issue I'm running into is how to handle first time submissions. Currently, if this is the student's first submission, then it will fail because it doesn't have an upper bound submission hash, and throws an error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I appreciate your code, @DallinFromEarth. I'm "reviewing" it so I can keep up on how we are integrating together.
I apologize that my code is giving you so many issues. I feel bad that you have to struggle through the bugs I wrote 🐑
Can you push any other changes you may have to this branch? Or, push them directly to the 281-...
branch, if they're appropriate?
Let's definitely talk tomorrow morning. We can figure it out together!
💀 Rip me. I had specifically searched to figure out if the trailing comma would be acceptable, but I guess it wasn't. Maybe when we work together, I can become more comfortable running the code to see it actually work. Up to this point, I've been mostly solving the problem theoretically which has been forcing you to deal with the consequences. Can you push the fix directly to #284 though?
Interesting. I had thought through those details, but I probably made a mistake somewhere. I'm surprised that it's complaining about the "upper bound submission hash" because that's supposed to be the hash of the current submission. I would have expected this issue to result in a missing "lower bound submission hash." We'll be able to solve this together in the morning. |
Both of these issues have been resolved in new commits on the #233 PR. @DallinFromEarth |
…or-low-commit-submissions' into 228-ta-approve-blocked-submission
…or-low-commit-submissions' into 228-ta-approve-blocked-submission
This creates levereages default implementations in RubricConfigDao to avoid duplicating the same logic in all DAO implementations. It also greates two new getters allConfigItems() and allRubricItems() on the appropriate classes. This prepares preparation improves code readability of classes that perform operations on all of the items, and also protects against change when items are added/removed to the record.
It boils down to this distinction: - The AutoGrader deals with scores between 0 and 1 - The gradebook deals with points that are normall 20-150 values
Also add explicit null checking to improve null debugging issues Change to setting the value at a central location in the code.
Previously, we were running in to problems generating a submission object outside of normal grading, when a QueueItem object no longer exists for the students.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Grades are not correctly being sent to canvas when a TA approves the submission. The rubric items for test cases/code quality aren't included. If the submission is approved with a penalty, only the git commits item gets sent (as 0/0 since everything else is 0 points). If the submission is approved without a penalty, either nothing is sent to canvas, or canvas isn't receiving anything of note and doesn't display it
Good job with the approved value being applied to future submissions.
Looks like the merge may not have been 100% successful. GitHelper lines 160-165 were removed in a different branch. Would you be ok removing those so students don't see the commit verification pass/failure until after they pass the test cases?
1e57dca
to
f165c68
Compare
Ok I think I fixed the problems with scores not being sent successfully. @Fiwafoofa (and @frozenfrank if you're still interested) can you go over this and see if you see any other potential problems? |
It looks like it works! A slight inconsistency I noticed is that when a student receives a penalty, they are notified that |
This PR will build off of the work that is being done in #233
Once the code written in #233 has marked the new
approved
variable asfalse
on a submission, this PR will do the following:Database Modifications
Run the following SQL commands to configure the database with the needed values: