Repository navigation
Conversation
1steve78
requested review from
FireLemons,
compwron and
elasticspoon
as code owners
December 2, 2026 12:29
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What github issue is this PR for, if any?
Resolves #7471 (Part of #5563)
What changed, and why?
Replaced the
pendingstub and# TODOcomment inspec/datatables/application_datatable_spec.rbwith real specs exercisingApplicationDatatable's public behavior through minimalClass.new(described_class)subclasses backed byCasaOrg:base_relation,params,DEFAULT_PER_PAGE,#as_json, and#to_json(data,recordsFiltered,recordsTotal).data.DEFAULT_PER_PAGE(10) with offset 0,page/per_pageslicing, partial final pages with stringstart/lengthparams, and empty results past the end while preservingrecordsFilteredandrecordsTotal.ORDERABLE_FIELDS, case-insensitive column/direction matching, non-zeroorder[:column]lookup,NULLS LASTin both directions,ASCfallback whendirisnilor non-whitelisted, and ignoringnilor unallowlisted column names.search_termfiltering (including pagination within filtered results and blank searches),additional_filtersdefaulting to{}when omitted, and all threebool_filterbranches (["true"],%w[true false],[]).No
pending/skip/xitexamples remain.How is this tested? (please write rspec and jest tests!) 💖💪
bundle exec rspec spec/datatables/application_datatable_spec.rb— 24 examples, 0 failuresbundle exec rspec spec/datatables/— 70 examples, 0 failuresbundle exec standardrb spec/datatables/application_datatable_spec.rb— 0 offensesbundle exec standardrb --except Layout/EndOfLine --format progress— 1007 files inspected, 0 offensesbundle exec rails factory_bot:lint— passedbundle exec rake test_checker— passednpm run lint— passedScreenshots please :)
N/A (spec-only change; no UI changes).