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 matches_domain scopes on Account, DomainAllow, DomainBlock #28803

Merged

Conversation

mjankowski
Copy link
Contributor

The DomainBlock and DomainAllow were originally added to use in the InstanceFilter - 24552b5#diff-8da415cf19c82e1283b141675cf9aec67ff23d48aa6bf7e0b54f4fa06eaa4875R17

The Account one was also added to help with InstanceFilter - da77f65#diff-8da415cf19c82e1283b141675cf9aec67ff23d48aa6bf7e0b54f4fa06eaa4875R23

They were all replaced with a method directly on Instance - 216b85b#diff-8da415cf19c82e1283b141675cf9aec67ff23d48aa6bf7e0b54f4fa06eaa4875R34 - which is still in use (referenced in other recent PR: #28795 (comment) )

The spec for this scope was the only thing in the DomainAllow spec. Instead of deleting it, I added a basic validation spec (basically copied from DomainBlock spec).

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9fb9ef4) 85.03% compared to head (756442c) 85.04%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #28803   +/-   ##
=======================================
  Coverage   85.03%   85.04%           
=======================================
  Files        1038     1038           
  Lines       28120    28117    -3     
  Branches     4531     4530    -1     
=======================================
- Hits        23913    23911    -2     
  Misses       3047     3047           
+ Partials     1160     1159    -1     

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

@ClearlyClaire ClearlyClaire added this pull request to the merge queue Jan 18, 2024
Merged via the queue into mastodon:main with commit d0b3bc2 Jan 18, 2024
28 checks passed
@mjankowski mjankowski deleted the remove-unused-matches-domain-scopes branch January 18, 2024 16:12
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.

None yet

2 participants