Repository navigation
Fix fragment, patch, cache, and chrome conformance - #5
Open
prateekbhujel wants to merge 1 commit into
Open
prateekbhujel wants to merge 1 commit into
prateekbhujel wants to merge 1 commit into
Conversation
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.
Fixes Draft 4 Asgard protocol conformance issues across fragment validation, patches, caching, chrome, callbacks, and stream subscriptions. Separate from #3 and #4.
Changes
src/Asgard/ServerRegion.php):type, non-listchildren, duplicate sibling keys (including numeric/string collisions like7and"7"), and non-textchildren insidetextnodes.image.src,leadingAvatar, andleadingImage.src/Asgard/ServerRegion.php):keys(remove) andnodes(prepend/append), and reject explicitkeep: null.text-only children when patching into atextcontainer.pushfetch and repaint whenreplayDeferred()fails on a landed fragment, clear deferred patches on timeout inexpire(), and replay deferred patches on inline redraws inpaintInline().FragmentCallbacks.php,ServerChrome.php,ServerMethods.php,ServerRegion.php):cached: trueanswers andAsgard-Cache: invalidatepaired withcached: trueasinvalidacross renders, batches, and inline calls (ServerMethods+ServerRegion).app.debug = false(applyChrome()returnsnullwhen rejected)./DtoFragmentCallbacks::CALL_PATTERNand reject explicitnullon optional callback/navigation keys (args,target,transition,replace).divider, explicitnullonlogo.heightandtab_bar.presentation.configuration, and lift chrome media string limit from 1024 toMediaUrl(2048 bytes)."01"vs"1") and guardhints()indeliverAction()when$owneris null.RegionCacheTest.phpandStateEverywhereTest.phpso requests declare cached regions before simulating lost device cache.RegionCacheTest.php,RegionPatchTest.php,ServerRegionTest.php,FragmentActionsTest.php,ServerScreenTest.php, andServerChromeTest.php.Verification
./vendor/bin/pint --testpassed../vendor/bin/pest --compactpassed: 964 passed, 1 skipped (4425 assertions).