Skip to content
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

Schedule Tab Only Displays First Three Classes #140

Closed
tektaxi opened this issue Oct 2, 2020 · 11 comments · Fixed by #198
Closed

Schedule Tab Only Displays First Three Classes #140

tektaxi opened this issue Oct 2, 2020 · 11 comments · Fixed by #198
Assignees
Labels
backend Suspected problem with backend (server or scraper) bug Something isn't working help wanted Extra attention is needed priority Work on this first
Milestone

Comments

@tektaxi
Copy link
Collaborator

tektaxi commented Oct 2, 2020

Right now only CM through Second Period is displayed, we need to fix that so we see everything.

@github-actions
Copy link

github-actions bot commented Oct 2, 2020

Thanks for letting us know! Feel free the to contribute.' first issue

@psvenk
Copy link
Member

psvenk commented Oct 2, 2020

Thank you for opening this issue. There was an initial fix to this in dc8a852, but I think the school changed the schedule format slightly since then so we need to change the schedule scraping code once again to accommodate.

@psvenk psvenk added backend Suspected problem with backend (server or scraper) bug Something isn't working labels Oct 23, 2020
@psvenk psvenk self-assigned this Oct 23, 2020
@psvenk
Copy link
Member

psvenk commented Oct 24, 2020

A related issue is that no classes are shown whatsoever on a day when school is not in session.

@psvenk psvenk removed their assignment Oct 26, 2020
@tektaxi
Copy link
Collaborator Author

tektaxi commented Oct 26, 2020

Is there a fix for this in #145 ? I saw that a covid schedule was added, but I'm not sure if this applies to the schedule tab too or just the clock.

@psvenk
Copy link
Member

psvenk commented Oct 26, 2020

@tektaxi This is not addressed in #145; that only deals with the clock (frontend) and not with the schedule scraping (backend). However, it may be possible to fix this entirely in the frontend if dc8a852 is the culprit (that is, if reverting the changes made in that commit would leave us with the necessary information to format the schedule properly).

By the way, I removed my self-assignment because I had intended to work on this but I have not begun any work on it, so anyone is free to take this on (no pressure).

@psvenk
Copy link
Member

psvenk commented Oct 26, 2020

Addendum: in any case it would probably be a good idea to make some changes on the backend so that the semantic structure of the schedule object matches the real structure of the schedule (and it is not just the frontend shuffling things around). This would make it easier to show older (pre-covid) schedules properly in imported data and also to make it easier to support covid schedules after school reopens, because both covid and non-covid schedules would be stored similarly if not identically.

psvenk added a commit to andOrlando/aspine that referenced this issue Oct 26, 2020
Until issue Aspine#140 ("Schedule Tab Only Displays First Three Classes") is
fixed, certain periods do not exist in the schedule; the clock code now
fails gracefully in this case.
@tektaxi
Copy link
Collaborator Author

tektaxi commented Nov 17, 2020

This is still an issue and makes the schedule tab essentially useless so if we could try and fix this soon that would be really helpful. I'm not really sure how to tackle it because I'm not super comfortable with Node so if someone else could that would be nice.

@psvenk psvenk added help wanted Extra attention is needed priority Work on this first labels Nov 17, 2020
@psvenk
Copy link
Member

psvenk commented Nov 17, 2020

@tektaxi Yes, this should be given priority and I just now labelled it as such. By the way, my tagging of version 2.5.0 was simply because the second quarter has now begun and we have a rather large batch of changes that we should try to get onto the production server.

@psvenk
Copy link
Member

psvenk commented Nov 29, 2020

The schedule scraper is going to be reworked as part of #184, so this issue will probably also be fixed (even if the schedule turns out not to be exposed by the REST API).

@psvenk psvenk added this to the 2.6.0 milestone Nov 29, 2020
@tektaxi
Copy link
Collaborator Author

tektaxi commented Nov 29, 2020

@psvenk When we rework the schedule scrape we shouldn't scrape for the current date anymore because otherwise, we can't view the schedule on Wednesdays or Weekends. I would recommend just grabbing the schedule for the current quarter, or even having a dropdown menu to select the quarter like on Aspen.

@psvenk
Copy link
Member

psvenk commented Nov 29, 2020

@tektaxi Yes, this is the plan. Thanks for pointing this out, and sorry for not making myself more clear. The REST API provides a way to find which quarter is the current one (which goes toward fixing #82), so this will not be too hard to implement.

psvenk added a commit that referenced this issue Nov 29, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
@psvenk psvenk modified the milestones: 2.5.2, 2.6.0 Dec 2, 2020
@psvenk psvenk modified the milestones: 2.6.0, 2.5.2 Dec 9, 2020
@psvenk psvenk self-assigned this Dec 9, 2020
psvenk added a commit that referenced this issue Dec 9, 2020
Fixes #140. This transplants get_schedule from the work-in-progress
TypeScript rewrite of the scraper (which uses the REST API in other
parts) into scrape.js to get a working schedule scraper.
psvenk added a commit that referenced this issue Dec 10, 2020
Fixes #140. This transplants get_schedule from the work-in-progress
TypeScript rewrite of the scraper (which uses the REST API in other
parts) into scrape.js to get a working schedule scraper.
psvenk added a commit that referenced this issue Dec 13, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Dec 13, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
tektaxi pushed a commit to tektaxi/aspine that referenced this issue Dec 13, 2020
Fixes Aspine#140. This transplants get_schedule from the work-in-progress
TypeScript rewrite of the scraper (which uses the REST API in other
parts) into scrape.js to get a working schedule scraper.
andOrlando pushed a commit that referenced this issue Dec 16, 2020
Fixes #140. This transplants get_schedule from the work-in-progress
TypeScript rewrite of the scraper (which uses the REST API in other
parts) into scrape.js to get a working schedule scraper.
psvenk added a commit that referenced this issue Dec 18, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Dec 23, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Dec 27, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Dec 28, 2020
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Jan 5, 2021
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Feb 15, 2021
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
psvenk added a commit that referenced this issue Feb 16, 2021
This should fix issue #140 (schedule tab only displays first three
classes). The new implementation of get_schedule is still a scraper
because the schedule does not seem to be exposed in the REST API, but it
is written in a cleaner and type-safe way.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Suspected problem with backend (server or scraper) bug Something isn't working help wanted Extra attention is needed priority Work on this first
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants