-
-
Notifications
You must be signed in to change notification settings - Fork 68
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
fixing issue #466: On assignments allow the instructor to set a day/time for it to be make visible #502
base: main
Are you sure you want to change the base?
Conversation
OK, you should be keeping your fork up to date with my latest changes, I think that may help with some things. But the bigger issue is that you have added two new attributes to an assignment. That is good. But when the Javascript triggers the The menu options will not work when you are using the server on localhost:5173 You should have a separate tab open to |
Thanks for the comments! However, I am still getting an internal error when I navigate to |
If you are getting an internal error then you should be able to find a ticket for that in the tickets folder. You can edit it even though it might complain and say it is a binary file. That will get us further along. You can also probably see the problem by looking at the log file for runestone. |
If you have fixed it then you should make sure to push, so I can see the changes here. |
How do we navigate to the tickets folder for the ticket or find the runestone log file? |
The documentation covers both of those things. Please look at https://runestone-monorepo.readthedocs.io/en/latest/debugging.html Bookmark the documentation, it is searchable, and there to help you so you don't have to ask me. |
I led @kwizeras through the documentation, showed him where the ticket files were, and had him pull up the log files from the command:
I saw several errors regarding a failure of matching files or to fetch the user even though he is logged in. I also walked him through the ticket process from the internal error from the localhost page and we're still looking for the ticket from today. I know you said that it could take some time for that folder to update so, we are looking at a previous one that may have a similar error. He told me to ask, what are we supposed to edit when we get there? I looked through your documentation as you instructed and attempted the ipython deal but, he said he was not sure we should do that and stopped. I would really appreciate some civil guidance. I have some of the errors that came up attached. I'm not sure if this is what you are looking for according to your documentation and previous comments. If not, please let me know and I will try to work this out with him further. Thank you. |
The
The suggestion to use ipython is to make it easy for you to interactively test your changes to any of the functions in crud.py. You absolutely should do that as it is much easier than rebuilding containers or finding errors in the logs. |
We did all the updates as suggested, but we kept receiving the internal error from before. When I checked my build.log, there was a message saying that my current Python version (3.10.12) is not allowed by the project (see image) I run to update my python to Python3.11 build.log.txt |
…to booleans. Fixed a couple of syntax errors in the student file. Created new logic for the crud file for testing when our database is fixed.
Workingon466
I wanted to follow up on what @kwizeras said yesterday with the changes that we've made. We changed the hidden and visible objects in the instructor file back into booleans. We also made a lot of changes to the fetch assignments function in the crud file. We are currently unable to test it as our databases are not working. We've been using @kwizeras's to test due to mine having issues for a long time and my space to code. We don't have a lot of time left as tomorrow is my last day. I'd be very grateful if you could help us test or fix my partner's database because we're not sure what caused the problem over the weekend. Thank you |
Can you be more specific about what it means that @kwizeras database is broken? I was also not aware that you were having database issues for a long time. These should be reliably cleaned up by the steps I gave you above. Unless you encountered some kind of error while running those commands. |
My database would work for a while, allowing me to see all the pages on the old interface, including the instructor page. Then it would stop and give me ticket/internal errors. I would reset it and it would work again, then stop. I've had this going on since before working on this issue and so, we decided it would be best to just use my partner's. From his post and what I've seen yesterday, he's having an issue with his python version stopping him from building. He followed your instructions on Friday and didn't seem to have a problem. He also went back over the documentation instructions and is still having errors. I will have him elaborate more if needed but, I think he summed up his main issue in the previous post to mine. |
Unfortunately you hit the same problem as I did yesterday morning in the build.log file you attached. It took me most of the day to fix the problem. I pushed those fixes to the main repo late yesterday. |
Does this mean that updating my fork with your yesterday's push would resolve my issue? |
yes, it should. |
I got all the updates, but I am still getting errors. And part of this might be the Python version I am usng. When run the run the Python build command using Python3.10, |
What server errors?? You need to at least get me some log messages indicating the errors you are getting. There is no way I can just guess what might have gone wrong. |
I have both python 3.11 and 3.10. I fixed the issue with the book server so you can use either. |
While @kwizeras is compiling his error logs, we solved the merge conflicts from your additions to our changes. I want to say thank you very much for those! Were there any other files that needed to be updated in relation to this project? I know the student and instructor files use the fetch assignment function with the is_visible boolean but, wasn't sure if that actually needed to be modified in any way. |
When I run Build log for assignment server: Build log for interactives: |
@kwizeras I think you are missing some of my latest updates. Look in the
If it says You said you were getting server errors. The build logs don't help with server errors. You need to use the |
1 similar comment
@kwizeras I think you are missing some of my latest updates. Look in the
If it says You said you were getting server errors. The build logs don't help with server errors. You need to use the |
@jjjonesj sorry about the merge conflict. That was related to some other work I am doing for Peer Instruction. To accomodate everything involved the vclause is going to need to look something like:
That allows for the backward compatibility case where we don't have dates as well as the new case where we have a dates. |
…anges from the main repo
No problem, I added in what you just suggested with your new additions. Does this work better and go along with my previous question posted before @kwizeras's? |
@jjjonesj |
…e else statement back. Mistakenly deleted it.
Sorry, that was an accident. We had deleted everything we put there previously and that got caught in there. Was there anything else? |
I got the updates containing the two new lines you pointed out: But, here are the server errors that I am getting:
|
OK, you need to read them, not just ask me. I know you know how to deal with this:
That was a typo by someone (maybe me) because it should be |
Thanks, |
The runestone server error is because you have eliminated the |
Just to drive home the point I was trying to make a couple days ago. The error in the book server could have been caught and fixed very easily by testing it from the ipython shell as is demonstrated in the documentation. |
…yntax errors in student.py file again.
Hi, I added the .visible column back to the models.py file and it appears @kwizeras is still having problems with the database. He's currently compiling all of those errors for you. However, since it is my last day, I wanted to know what else there might be to update with this issue in the files? |
I have fixed those typo errors from both crud.py and student.py. But the whole server error was not resolved. I also realized that most of the error that involved files that we did modify as part of this project/issue we are trying to fix. |
So far, in trying to solve this issue, I have made changes in four files:
assignment.jsx
,crud.py
,assignSlice.js
,student.py
.My plan was to create to replace the visibility switch by two new columns for the instructor to set the visibility date and the hiding date at creation of each assignment.
Right now I am able to create new assignments with visible and hiding dates only for options "Search for Exercises" and "Write an Exercise". However, for options "Choose Readings" and "Choose Exercises," I failed to fetch the specified assignments, and thus, an empty assignment was created.
Another issue that I am seeing is that, even though I am logged in as an instructor, when I navigate to >User>Instructors Page, I get a blank page and an error saying react-router-dom.js?v=70ae4b27:215 No routes matched location "/runestone/admin/admin"