-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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 normalizes
on CustomFilter#context
value
#27602
Conversation
Hmm, error still present ... looks like somewhere in caching steps there's a proc where there used to not be a proc after this change. Will review. |
8394bc3
to
9315154
Compare
Somewhere in I'm able to replicate in console, so its not specific to spec setup/mocks/etc. Might try to produce minimum replication to see if its framework feature issue or something with how we are caching. |
This is a limitation of the normalizes feature ... but will resolve itself when we update the marshalling format - rails/rails#49871 - as part of 7.1 config updates. |
9315154
to
cb94b0b
Compare
cb94b0b
to
ca6681e
Compare
Rebased this and updated the marshalling config, I think these specs will pass now. However:
All that said, even if this passes CI, hold off on merge until we resolve all that. |
ca6681e
to
3dfb556
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #27602 +/- ##
==========================================
- Coverage 85.01% 85.01% -0.01%
==========================================
Files 1059 1060 +1
Lines 28277 28283 +6
Branches 4538 4537 -1
==========================================
+ Hits 24040 24044 +4
- Misses 3074 3075 +1
- Partials 1163 1164 +1 ☔ View full report in Codecov by Sentry. |
3dfb556
to
5bbcda2
Compare
5bbcda2
to
2101dcd
Compare
Rebased this after the linked PR added the validation specs and small refactor. This is now just the addition of normalization specs, the marshalling format change, and replacing previous method with I think as long as we update the marshalling format either from this PR or elsewhere, this will be safe at this point. |
2101dcd
to
7f21020
Compare
Rebased against main after another PR updated the marshalling format to 7.1 |
7f21020
to
6cac51a
Compare
A previous rebase here hit what I think is an intermittent failure - https://github.com/mastodon/mastodon/actions/runs/7427240060/job/20212618059?pr=27602 Rebased again, and the latest run seems fine. May attempt to track down that failure separately. |
6cac51a
to
f31a038
Compare
f31a038
to
589f9b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This drops the Array()
around context
, but this is probably fine since passing a singular value is already rejected at the controller level as far as I can tell.
This was originally in #27521 but after the final Rails 7.1 rebase there were some errors that I couldn't figure out quickly so I removed it from that one.
Added some spec coverage here to be more confident and I think this change (adding normalization, refactor on existing validation) preserves the prior validations and data cleanup behaviour. Will watch CI to see if the prior issue is resolved.