-
Notifications
You must be signed in to change notification settings - Fork 0
[CORRUPTED] Synthetic Benchmark PR #5760 - Consolidated view lifecycle #94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: base_pr_5760_20251204_1212
Are you sure you want to change the base?
[CORRUPTED] Synthetic Benchmark PR #5760 - Consolidated view lifecycle #94
Conversation
This reverts commit 5c95b1f.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
||||||||||||
User description
Benchmark PR plausible#5760
Type: Corrupted (contains bugs)
Original PR Title: Consolidated view lifecycle
Original PR Description: ### Changes
With this change, some specifics to consolidated views are now handled:
stats_start_dateandnative_stats_start_atare always queried and updated, if need be, whether the view has been just enabled or accessedTests
Changelog
Documentation
Dark mode
Original PR URL: plausible#5760
PR Type
Enhancement, Bug fix
Description
Implement consolidated view lifecycle management with automatic enable/disable
Add
reset_if_enabled/1to handle view state on site removal and transferEnsure consistent site ID ordering in consolidated view cache queries
Always update stats start dates for consolidated views on access
Introduce
enabled?/1helper and refactor stats date handlingDiagram Walkthrough
File Walkthrough
4 files
Consolidated view lifecycle and stats date managementDisable consolidated view on regular site removalAlways update consolidated view stats dates on accessReset consolidated view on site transfer between teams1 files
Add ORDER BY clause for consistent site ID ordering4 files
Add tests for reset_if_enabled and stats date initializationTest consolidated view disable on site removal scenariosTest consolidated view stats date refresh behaviorTest consolidated view disable on site transfer