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

[#8365] Add special not_requestable tag #8366

Draft
wants to merge 1 commit into
base: develop
Choose a base branch
from
Draft

Conversation

gbp
Copy link
Member

@gbp gbp commented Aug 16, 2024

Relevant issue(s)

Fixes #8365

What does this do?

Add special not_requestable tag

Why was this needed?

Implementation notes

Screenshots

Notes to reviewer


Have you updated the changelog? If this is not necessary, put square brackets around this: skip changelog

end

scope :is_requestable, -> { with_request_email.not_defunct.foi_applies }
scope :is_requestable, -> {
with_request_email.not_defunct.foi_applies.requestable
Copy link
Member

Choose a reason for hiding this comment

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

is_requestable and requestable scopes feel quite prone to confusion. I'd be inclined to go with:

with_request_email.not_defunct.foi_applies.without_tag('not_requestable')

@@ -18,6 +18,10 @@ def public_body_not_requestable_reasons(public_body)
reasons.push _('Freedom of Information law does not apply to this authority, so you cannot make a request to it.')
end

if public_body.not_requestable?
reasons.push _('We are unable to make requests to this authority.')
Copy link
Member

Choose a reason for hiding this comment

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

Not 100% on the phrasing here but don't have an immediate suggestion. @HelenWDTK any thoughts?

@garethrees
Copy link
Member

Should also add to the UI help https://github.com/mysociety/alaveteli/blob/develop/app/views/admin_public_body/_form.html.erb#L17-L24

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.

Add generic not_requestable special tag
2 participants