Cookie Refactor
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by searching the codebase for cm_folder_data, anon_mode_{}, and default_anon_mode_{}_override, then inspect how their cookie scopes and stored paths are set for course materials and gradeables. Done means the listed cookies use their specific URL or gradeable scope, course-material paths are shortened as requested, and other global-scope instances needing the same treatment are identified.
Written by the indexing model from the issue text.
Description
We currently have a variety of cookies throughout our system. Some of them are scoped correctly but some still store in the global scope. In course materials, we store a cm_folder_data cookie in the global scope which stores a lot of data. Cookies have a limit of 4096 bytes and there is also an overall size limit of an HTTP request for Apache.
There is a couple things which need to be done (can be split up into multiple issues):
-
cm_folder_datashould be switched from global scope to the URL of course materials.cm_folder_dataalso stores the entire system path of each course material which should be shortened to either ID or a relative path. -
anon_mode_{}exists for each gradeable and also exists in the global scope. This should be refactored to be in the specific gradeable scope. - The same applies for
default_anon_mode_{}_override. - We should look if there are any other instances that need this change too.
- Dominant language
- PHP
- Stars
- 793
- Forks
- 1.1k
- Avg merge
- 2d 16h
- Merged PRs (30d)
- 78
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Submitty/Submitty
-
Awaiting Triage bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Awaiting Triage bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug good first issue grade inquiry (prev. regrade request) Notifications / Email
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue grade inquiry (prev. regrade request)
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
bug good first issue TA Grading / TA UI
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
All issues in Submitty/Submitty
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100