-
-
Notifications
You must be signed in to change notification settings - Fork 934
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 Adoptions #5356
Remove Adoptions #5356
Conversation
ca2badc
to
d269e95
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #5356 +/- ##
==========================================
- Coverage 97.12% 97.06% -0.07%
==========================================
Files 458 451 -7
Lines 9589 9391 -198
==========================================
- Hits 9313 9115 -198
Misses 276 276 ☔ View full report in Codecov by Sentry. |
98fd9f0
to
fc49e12
Compare
91b4e85
to
a995d64
Compare
@martinemde I have updated few bits to make tests and linters passing again. OK to consider ready for review? |
Thanks for your help @simi. I think it’s ready. |
45e8800
to
4180bf7
Compare
@martinemde seems reported missing coverage is related to removed functionality. Tests are passing with following diff. Would it make sense to remove also? diff --git a/app/helpers/owners_helper.rb b/app/helpers/owners_helper.rb
index a9fcfc214..7cb74e73a 100644
--- a/app/helpers/owners_helper.rb
+++ b/app/helpers/owners_helper.rb
@@ -18,10 +18,4 @@ module OwnersHelper
image_tag("/images/check.svg")
end
end
-
- def sanitize_note(text)
- options = RDoc::Options.new
- options.pipe = true
- simple_format RDoc::Markup.new.convert(text, RDoc::Markup::ToHtml.new(options))
- end
end
diff --git a/app/policies/application_policy.rb b/app/policies/application_policy.rb
index d7bf716f2..e7e80d611 100644
--- a/app/policies/application_policy.rb
+++ b/app/policies/application_policy.rb
@@ -31,11 +31,6 @@ class ApplicationPolicy
false
end
- def allow
- @error = nil
- true
- end
-
def current_user?(record_user)
user && user == record_user
end
@@ -59,9 +54,4 @@ class ApplicationPolicy
def policy!(user, record) = Pundit.policy!(user, record)
def user_policy!(record) = policy!(user, record)
-
- def user_authorized?(record, action)
- policy = user_policy!(record)
- policy.send(action) || deny(policy.error)
- end
|
@simi might as well. We can add it back if needed later. |
5b2232a
to
449e141
Compare
Maintenance burden is too high for such a low usage feature.
449e141
to
86fca3d
Compare
Rebased, squashed, and fixed coverage and lint. Should be good after this build passes. |
Seems some of my changes are gone 😨. |
uh oh :( |
ok, should be fixed, thanks @simi for finding the listing of the ones we lost. My mistake. |
See the Remove Adoptions RFC for more details.