Repository navigation
Ask for content right after a content trigger - #350
Merged
Merged
Conversation
The behavior settings request asks for the content triggers (jt=1). When the app records something they list while the content zone is entered, the SDK sends the queued requests and asks for content, up to 3 times 1 second apart, with a 10 or 60 second gap per trigger kept in storage. The journey trigger events and views go through the same path while the server sends no content triggers, and the enter content zone setting now only decides the entry at init.
CI report
Code Coverage: Coverage, Line coverage 90.0% (sdk-java), 70.5% (sdk-java-ui)
Files changed by this pull request
Least covered classes (10 shown)
Dependency Security Scan: Dependency scan, No blocking vulnerabilityScanned 25 resolved dependencies, failing on HIGH and above. Java Gradle Build and Test: Unit tests, 806 passed, 0 failed, 0 skippedThe check run lists every test and each failure. Public API changes: Public API, 2 removed or changed, 7 addedRemoved or changed: 2. Each needs a CHANGELOG entry that marks it as a breaking change. Added: 7. Check that each one is meant to be public. Static analysis, 1 new findingSpotBugs: 148 findings
First 50 findings
New compared with the base branch: 1
…cut here; the run's job summary has the rest. For 89b06b4, updated 2026-11-24 07:50 UTC. Each check's run page has its full log. |
Dependency security scanScanned 25 resolved dependencies, failing on HIGH and above. Result: passed |
Public API changesRemoved or changed: 2. Each needs a CHANGELOG entry that marks it as a breaking change. Added: 7. Check that each one is meant to be public. |
Code coverage
Files changed by this pull request
Least covered classes (10 shown)
|
The flags read at init are atomic, the match comment is shorter, and the new tests declare the exceptions they throw.
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.
Change
jt=1. The top-leveljtof the answer (eevent keys,vview names,puser properties; a missing list is empty) is stored with the settings and read at init, from stored or provided settings.content.disableAutoContentTriggers(): nojt=1, andjtis ignored.jte,jtv) go through the same path while the answer has nojt; an answer withjt, even an empty one, makes the SDK ignore them. They no longer wait for the server to accept the request that carries them, depend onrcz, or re-enter the zone.eczsetting now only decides the content zone entry at init (stored or provided settings, or the first answer on a first start). A later settings change no longer enters or leaves the zone; a changed zone interval still restarts a running zone timer.Tests
ModuleConfigurationContentTests:jt=1and the opt-out; a listed event sends the queue first and then 3 content requests, and the same event inside its gap starts no round; the content zone requirement and an emptyjthidingjte;jteandjtvwithoutjt(events of the app, both view events,rczoff); an early trigger, a user property and a handled exception; theeczentry at init only. They replace the tests of the old request-callback path.ModuleConfigurationLimitsTests: the cut tests send the event queue themselves instead of through a journey trigger.