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

Fix libcal booking #247

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Fix libcal booking #247

merged 4 commits into from
Feb 29, 2024

Conversation

vcai122
Copy link
Contributor

@vcai122 vcai122 commented Feb 28, 2024

No description provided.

Copy link
Member

@judtinzhang judtinzhang left a comment

Choose a reason for hiding this comment

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

LOL good stuff thanks vincent!

@vcai122 vcai122 requested a review from judtinzhang February 28, 2024 21:59
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

Attention: Patch coverage is 82.35294% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 91.39%. Comparing base (c5e7088) to head (3e31516).
Report is 1 commits behind head on master.

Files Patch % Lines
backend/gsr_booking/models.py 77.77% 2 Missing ⚠️
backend/gsr_booking/admin.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master     #247   +/-   ##
=======================================
  Coverage   91.38%   91.39%           
=======================================
  Files          59       59           
  Lines        2496     2510   +14     
=======================================
+ Hits         2281     2294   +13     
- Misses        215      216    +1     

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

Copy link
Member

@judtinzhang judtinzhang left a comment

Choose a reason for hiding this comment

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

One quick question before push

in_use = models.BooleanField(default=True)

objects = GSRManager()
all_objects = models.Manager() # for admin page
Copy link
Member

Choose a reason for hiding this comment

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

that is great, thanks vincent! @tuneerroy @ashleyzhang01 @JeffersonDing @dr-Jess just for reference look at this man!

self.assertEquals(6, len(res_json[0]))
self.assertEquals(6, len(res_json[1]))
self.assertEquals(7, len(res_json[0]))
self.assertEquals(7, len(res_json[1]))
Copy link
Member

Choose a reason for hiding this comment

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

i'm imagining that the extra field is the in_use? any reason it still shows up in the route despite all of our queries using .object to query? if this is the case, I think we should remove this field from showing up

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh the serializer was still serializing all the fields. fixed now

Copy link
Member

Choose a reason for hiding this comment

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

bet LGTM

@vcai122 vcai122 merged commit 5af66e1 into master Feb 29, 2024
8 of 9 checks passed
@vcai122 vcai122 deleted the fix-libcal-booking branch February 29, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants