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

Remove unused load methods & Add more request spec coverage #5825

Merged
merged 2 commits into from
Aug 14, 2024

Conversation

MadelineCollier
Copy link
Contributor

  • Remove unused load method in new admin controllers
  • Add more request spec coverage

Context on the removals:
Screenshot 2024-08-14 at 4 05 37 PM

Summary

Checklist

Check out our PR guidelines for more details.

The following are mandatory for all PRs:

The following are not always needed:

  • 📖 I have updated the README to account for my changes.
  • 📑 I have documented new code with YARD.
  • 🛣️ I have opened a PR to update the guides.
  • ✅ I have added automated tests to cover my changes.
  • 📸 I have attached screenshots to demo visual changes.

These controllers were based off an example controller in which the
`load_[resource_name]` method was needed. However in these cases it
looks like this method is not being used, so we should be safe to remove
these unused methods from these controllers.
While the bulk of our coverage comes from feature tests, the Codecov
percentage was sufferring as smaller portions of our controllers were
going untested without these types of specs. Adding them fixes our
decreases in our Codecov percentage and adds peace of mind.
Copy link

codecov bot commented Aug 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.03%. Comparing base (8308687) to head (8dc4c1f).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5825      +/-   ##
==========================================
+ Coverage   88.84%   89.03%   +0.19%     
==========================================
  Files         737      737              
  Lines       17224    17188      -36     
==========================================
+ Hits        15302    15304       +2     
+ Misses       1922     1884      -38     

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

Copy link
Contributor

@rainerdema rainerdema left a comment

Choose a reason for hiding this comment

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

Thank you so much, @MadelineCollier! 🙏

@MadelineCollier MadelineCollier merged commit 2ae2bfd into main Aug 14, 2024
14 checks passed
@MadelineCollier MadelineCollier deleted the remove-unused-load-methods-add-request-specs branch August 14, 2024 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants