-
Notifications
You must be signed in to change notification settings - Fork 29
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
handle arbitrary section kinds #36
Comments
oh there's also the raw time, which could be stored alongside the |
@reeceyang Thanks for the issue, and for taking the time to write this up so thoroughly. Others can feel free to chime in, but I think it would be better to add a "Design" section kind while changing the highlighted line of code from |
Also, the Data Warehouse has separate fields |
cool, sounds like adding in the "Design" section kind is the way to go. I can work on the refactor if you're able to assign me to this issue? For the 2.00B override, would that just be adding a check in |
Sure; thanks. The 2.00B override should be possible to do from the FireRoad server side (tracking issue sipb/fireroad-server#45); I'll work on implementing an override in the next few days or so. However, in general, |
keeping in line with the 1-2 character naming convention, 'e' and 'g' are still available out of all the letters in "design" (and then "er" and "gr" for the raw times). is there any preference for which one to use? |
we're past semester crunch time, so it might be good to refactor the thing to be more verbose, although idk if now is an appropriate time |
yeah i could also anticipate the change and name it "designSections" or something |
TODO from the comment on this line
hydrant/scrapers/fireroad.py
Line 66 in 3bad537
Some classes' schedules are broken because Hydrant doesn't handle arbitrary section kinds. For example, 4.021 design studio's sections are called "Design." I listed out all the classes with this issue and they're all classes with "Design" sections (except for 2.00B Toy Product Design, which has the text "Labs offered: 9-12, 2-5, 7-10. Students will choose the time. That is best for their schedu."
there are few possible fixes. We could add add a
Design
section kind, which would fix this problem for now (and probably for the forseeable future; tbh I doubt MIT classes are suddenly going to start adding many different section kinds). ofc, this wouldn't "handle arbitrary section kinds."we could also change sections to be a map mapping the section type as a string to an
Array<RawSection>
, e.g.:it seems like this would involve refactoring more of the code though. another downside(?) is the strings in the objects are longer (which I assume is the purpose of having 1-2 letter strings for all the raw class object keys?).
I'm down to do either this refactoring or the adding "Design" section kind, provided that hydrant maintainers are ok with me messing with the class data type.
The text was updated successfully, but these errors were encountered: