aismail / vmgui Goto Github PK
View Code? Open in Web Editor NEWvmchecker GUI
vmchecker GUI
Should we limit the size and type of uploaded submissions?
Also write a short guide.
Move this aismail/vmgui
to vmchecker/vmchecker-ui
Not entering a line_no
when creating a new SubmissionComment returns the following error:
IntegrityError at /admin/vmc_backend/submissioncomment/add/
vmc_backend_submissioncomment.line_no may not be NULL
Solution here (also a good read)
https://code.djangoproject.com/wiki/NewbieMistakes
Should we impose a size and type limit on uploaded submissions?
I created some factories for the models that generate some random entries and I want someone to check them. I was also not sure how to generate a random file for this field inside the SubmissionModel:
content = models.FileField(upload_to='vmc_backend/files')
Thank you. :)
Is is possible for the teacher to define extra fields for a submission?
Example:
The teacher wants to know how much time a student worked on a homework.
The teacher sets up the assignment, and mentions that he wants to get the number of hours.
When submitting, the student will be required to enter the number of hours.
Note:
This is low priority. Just something to think about,
and maybe plan for towards the end of the project.
We have to keep in mind that the DB should be kept across several years.
If last year's student checks vmchecker, he should see all of last year's assignments and submission. However, these should not be visible for this year's students (or could be visible, but separated). Should we add a school_year field to the AssignmentModel?
Feel free to comment on the idea.
When deploy-ing, extra steps to be taken:
grupa (sau ceva mai generic care e sinonim cu grupa)
Write tests.
In the former implementation of vmchecker's UI, a submission could have multiple types. For example, it's usually a zip archive, but it could also be the md5 hash of a VERY large archive, that would be uploaded later on.
This is a MUST HAVE feature for v1.0 of the new UI.
Currently, files uploaded via a submission go to the vmchecker/vmc_backend/files/ which is kind of a hidden location. Should we change it or leave it like that?
Make sure the UI and DB support internationalization (translation into other languages).
More info here:
https://docs.djangoproject.com/en/1.0/topics/i18n/
SubmissionComments:
- submission_id
- filename (optional)
- line_no (optional)
- comment_no
- comment (sanitized html)
This file contains all the python dependencies needed to run the current project.
You can create one with
$ pip freeze > requirements.txt
To install the deps needed after you clone the project, you run:
$ pip install
It is very important when starting an app to create a requirements.txt
file and to maintain it, whenever a new lib is added, it must be added to the requirements file.
Subjects
- name
- description
- link
- contact_person_email
UsersToSubjects:
- subject_id
- user_id
- role (user can be teacher for one course, student for another)
- UNIQUE_TOGETHER(subject_id, user_id)
You could get this from the number of comments that reference the Submission.
Remove the comment_count field, and add related_name='comments'
to submission_id = models.ForeignKey(Submission)
Remove comment_no = models.IntegerField() as it's also not needed
You can then retrieve the number of comments by using submission.comments.all().count()
Needed:
CC @andreip
Assignment
- subject_id
- name
- text (html) - markdown
- attachments (URLs uploaded somewhere else, for example skeleton starting point, example inputs, etc.)
- deadline
@bogdanbresug
@bgdnc
[1] http://gitimmersion.com/
[2] https://github.com/aismail/vmgui/blob/master/CONTRIBUTING.md
Submission
- student_id
- assignment_id
- uploaded_at
- graded (true/false)
- comment_count (a-la-github)
- content
1st test case
create 2 subjects, 3 homeworks linked to the 2 subjects
perform API call
test that the expected homeworks are present.
2nd test case
create 2 subjects, 1 homework linked to 1 subject
perform API call filtered by subject_id
test that there are no results returned
403 forbidden
It's not yet implemented.
Write tests.
There are files that do not pass pep 8 validation. We should write valid code, right?
You can either use pep8 command from cli or use pep8 plugin for vim.
Do you think it would be a good idea to create an issue for every file so we can track easier the process?
@bogdanbresug What's gunicorn?
A fancy of web server.
Let's not put questions in commit messages. Instead let's add an issue with the question
tag and people will answer it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.