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

Use public_visibility #29847

Merged
merged 1 commit into from
Apr 4, 2024
Merged

Use public_visibility #29847

merged 1 commit into from
Apr 4, 2024

Conversation

tribela
Copy link
Contributor

@tribela tribela commented Apr 4, 2024

Related: #28156

with_public_visibility was removed. So ActionView::Template::Error caused.

Copy link
Sponsor Member

@renchap renchap left a comment

Choose a reason for hiding this comment

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

Woops, good catch!

I would have expected the email one to have bet caught by a test, this looks like a pretty big gap in coverage :( @mjankowski was this on your radar?

@renchap renchap added this pull request to the merge queue Apr 4, 2024
Merged via the queue into mastodon:main with commit 4045c06 Apr 4, 2024
33 checks passed
@ClearlyClaire
Copy link
Contributor

This hasn't been caught by tests because this code path is only triggered for trending tags, which the tests do not include. Those are unfortunately tricky to stub.

@mjankowski
Copy link
Contributor

Both of these usages were added after the PR that removed the method, so I hadn't removed them there since they didn't exist yet.

Looks like the entire annual report area has zero spec coverage, and as Claire notes there are many portions of views/mailers/etc where even if we hit the high level methods we don't hit every single path through them (and yes, I'd say that's vaugely on my radar, but there's just a ton missing so it's slow going).

Glad we caught this in nightly usage before a release.

@tribela tribela deleted the fix-public-visibility branch April 4, 2024 14:28
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

4 participants