Skip to content

[#8365] Add special not_requestable tag#8366

Closed
gbp wants to merge 1 commit intodevelopfrom
8365-not-requestable
Closed

[#8365] Add special not_requestable tag#8366
gbp wants to merge 1 commit intodevelopfrom
8365-not-requestable

Conversation

@gbp
Copy link
Copy Markdown
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

Comment thread app/models/public_body.rb

scope :is_requestable, -> { with_request_email.not_defunct.foi_applies }
scope :is_requestable, -> {
with_request_email.not_defunct.foi_applies.requestable
Copy link
Copy Markdown
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')

end

if public_body.not_requestable?
reasons.push _('We are unable to make requests to this authority.')
Copy link
Copy Markdown
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
Copy Markdown
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

@gbp
Copy link
Copy Markdown
Member Author

gbp commented Mar 25, 2026

Not intending to carry on this work. @garethrees if you disagree then please reopen and assign me.

@gbp gbp closed this Mar 25, 2026
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