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

Hotfix for Checkout Mutations #475

Merged
merged 7 commits into from
Jul 3, 2024

Conversation

chrismaddalena
Copy link
Collaborator

Summary

This includes a pair of small bug fixes. It also includes CHANGELOG and version updates for v4.2.2.

CHANGELOG

Fixed

  • Fixed a server error that could occur when using the checkoutServer and checkoutDomain mutations in the GraphQL API and providing a null value for the note field
  • Fixed the "My Active Projects" sidebar dropdown not showing the correct message if all projects are marked as complete

The `get_reports` tag for the "My Active Reports" sidebar dropdown made a list of reports based on a user's project assignments. We repeated this for the project assignments under the "My Active Projects" dropdown. For projects, we referenced `if request.user.projectassignment_set.all`.

If a project was marked complete, we weren't showing it in the sidebar, but if a user's projects were all marked as complete the dropdown would appear to be broken (no "no assignments" message). Rather than repeat what we did for `get_reports` and continue making the same query twice, I condensed it all into one tag that returns a unique list of projects and reports.
Copy link

codecov bot commented Jul 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.97%. Comparing base (2293484) to head (7648978).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #475   +/-   ##
=======================================
  Coverage   91.96%   91.97%           
=======================================
  Files         314      314           
  Lines       18132    18146   +14     
=======================================
+ Hits        16675    16689   +14     
  Misses       1457     1457           

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

@chrismaddalena chrismaddalena merged commit eb9bd85 into master Jul 3, 2024
8 checks passed
@chrismaddalena chrismaddalena deleted the hotfix/fixed-checkout-mutations branch July 3, 2024 23:07
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.

1 participant