Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedToo many files! This PR contains 152 files, which is 52 over the limit of 100. To get a review, reduce the PR to 100 files or fewer by splitting it into smaller PRs or changing its base branch. Upgrade to a paid plan to raise the limit. This organization's CodeRabbit subscription is cancelled. Resubscribe in Billing to continue reviews beyond the free-tier limit.
|
aa12fae to
6964d95
Compare
|
6964d95 to
57cd6ec
Compare
57cd6ec to
fc834da
Compare
fc834da to
5afb449
Compare
|
SonarCloud annotation |
5afb449 to
6c62cfa
Compare
Adds per-array-filter cases (100 and 101 values, invalid, non-string, oversize and nested items, keyed and sparse tables) and a null indexed_at row for every list endpoint with a record view. Tests and regenerated golden only; no Lua change. This golden is the baseline for the helper consolidation commits.
Collection and collection-projection filters use one bounded shared helper; measurement, rights and work-scope wrappers, the organization/profile cursor URI parsers and the redundant EVM-link authority check call valid_record_uri. recent_valid_record_uri becomes is_recent_follow_uri, a follow-collection predicate. No behavior change: list golden is byte-identical. rightsIdentifier.lua is now empty and no bundle includes it.
The activity and collection hasOrganizationRecord twins become one shared scalar_or_boolean. listBadgeAwards uses the shared parse_include_total, and listCollectionItems calls invalid and keys_only directly. No behavior change: list golden is byte-identical.
Adds decode_record_cursor (collection or URI predicate, optional timestamp check) and splits the hex prologue into cursorToken.lua and cursor_encode into cursorEncode.lua so bundles that only need one do not carry unused helpers. The per-endpoint decode wrappers and the collection-items and recent-follows encoders are deleted. Hand-rolled decoders are untouched. No behavior change: list golden is byte-identical.
Acknowledgement, collection, feature, entity-follow, EVM-link, rights and funding views build on record_view. hydrate_actor_views takes an optional view builder; the omit-missing-indexedAt builder (record_view_omitting_indexed_at, formerly workscopeRecordView's record_view) replaces the vocab hydrate wrapper and the work-scope global-name override. entity_follow_record_view becomes entity_follow_typed_view. No behavior change: list golden is byte-identical. rightsView.lua is now empty and no bundle includes it.
Both lost their last function in the record-URI and record-view commits and no bundle includes them. Drops their entries from the two rights unit tests that assembled bundles by path. Generated bundles and list golden unchanged.
recordViewOmittingIndexedAt -> recordView.lua, cursorToken and cursorEncode -> listCursor.lua, scalarOrBoolean -> query.lua, boundedRecordIdentifier -> recordIdentifier.lua. Helpers that only some bundles use sit inside luacheck 'ignore 211' regions so bundles that skip them still lint clean. listVocabTags' local decode_cursor is renamed decode_vocab_tag_cursor because its bundle now carries the shared decode_cursor. Golden byte-identical.
6c62cfa to
3683aad
Compare
|
❌ The last analysis has failed. |
Problem
The lint in #105 left 109 allowlisted copies of shared Lua helpers (record URIs, query params, cursors, record and actor views). Each copy can drift from the shared one.
Fix
valid_bounded_record_uri,scalar_or_boolean,decode_record_cursor(withdecode_hex_cursor_tokenandcursor_encode, all inlistCursor.lua),record_view,record_view_omitting_indexed_at, and an optional view builder inhydrate_actor_views.indexed_at); the list golden is byte-identical in every later commit.recordIdentifier.lua,listCursor.lua,query.luaandrecordView.lua.