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

Course duplicates removed from future semesters #50

Closed
wants to merge 4 commits into from

Conversation

gmfenech
Copy link
Contributor

@gmfenech gmfenech commented Oct 3, 2024

When viewing future semesters it will show multiple of the same courses. This may be due to it pulling courses from all past semesters.

Copy link

vercel bot commented Oct 3, 2024

@gmfenech is attempting to deploy a commit to the Max Isom's projects Team on Vercel.

A member of the Team first needs to authorize it.

for (const course of this.courses) {
if (!course.deletedAt) {
if (!course.deletedAt && !courses.some(existingCourse => `${existingCourse.subject}${existingCourse.crse}` === `${course.subject}${course.crse}`)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is quite an expensive check (O(n^2)), let's use a Set
also, could you provide an example of the bug? I haven't seen it before so curious what it looks like

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2024-10-24 131449
Here is the bug

Copy link

vercel bot commented Oct 26, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
mtucourses-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 26, 2024 11:04pm

Copy link

codecov bot commented Oct 26, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.

Project coverage is 31.81%. Comparing base (b9b81de) to head (6206bdd).
Report is 8 commits behind head on master.

Files with missing lines Patch % Lines
src/lib/state/api.ts 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #50      +/-   ##
==========================================
- Coverage   31.84%   31.81%   -0.04%     
==========================================
  Files         105      105              
  Lines        2490     2496       +6     
  Branches      410      410              
==========================================
+ Hits          793      794       +1     
- Misses       1640     1645       +5     
  Partials       57       57              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@codetheweb
Copy link
Member

Fixed on the backend.

@codetheweb codetheweb closed this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants