Repository navigation
Populate cold offline placeholder entries in all-player modes - #1736
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review.
|
| Layer / File(s) | Summary |
|---|---|
Cache admission and mode behavior VotingPlugin/src/main/java/com/bencodez/votingplugin/placeholders/PlaceHolders.java, VotingPlugin/src/test/java/com/bencodez/votingplugin/tests/placeholders/ColdOfflinePlaceholderCacheTest.java |
The scheduled callback admits uncached entries when caching is not online-only or the user is online. Tests cover cold and warm entries, cache modes, direct evaluation, and request suffixes. |
Worker, platform, and lifecycle behavior VotingPlugin/src/test/java/com/bencodez/votingplugin/tests/placeholders/ColdOfflinePlaceholderCacheTest.java |
Tests cover worker-thread access, platform placeholder fallbacks, queued work, reload and logout behavior, and non-login completion. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Bug fix
Suggested reviewers: copilot
Merge Risk: 
Minimal · up to 3db2b
-
The cache admission change appears ready to merge after normal checks; no actionable issue was identified.
Pre-merge checks: 
4 · 
1
-
Failed checks: 1 warning Passed checks: 4 passed -
Finishing Touches: 💡 1
-
📝 Generate docstrings: 💡
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Comment @coderabbitai help to get the list of available commands.
Offline requests could keep returning pending markers because refresh skipped players without a cached entry or login warmup. Permit population in AUTOALL and SPECIFICALL while preserving online-only cache modes, explicit processing, entity-owned evaluation and the existing offline fallbacks.
Cold-entry admission occurs only inside the existing queued refresh callback; direct non-login updates retain their prior contract. It adds no configuration, dependency requirement, API or player-data migration.
Validation:
The validation JAR is 10,889,337 bytes, above the advisory10MiB target. Hosted checks and live PlaceholderAPI/Paper/Folia acceptance are separate; no live-server acceptance is claimed.
Created with assistance from OpenAI Codex.
Summary by CodeRabbit