-
Notifications
You must be signed in to change notification settings - Fork 0
[CLEAN] Synthetic Benchmark PR #5760 - Consolidated view lifecycle #93
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?
Conversation
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: Clean (correct implementation)
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
Description
Add
reset_if_enabled/1function to handle consolidated view lifecycleImplement
enabled?/1predicate and refactor stats date managementEnsure site IDs ordering is uniform with explicit ORDER BY clause
Integrate consolidated view reset on site removal and team transfers
Add comprehensive tests for consolidated view state transitions
Diagram Walkthrough
File Walkthrough
4 files
Add lifecycle management and refactor stats handlingDisable consolidated view on regular site removalAlways update consolidated view stats datesReset consolidated view on site team transfer1 files
Ensure uniform site IDs ordering in queries4 files
Add tests for reset and enabled state checksTest consolidated view disabling on site removalTest consolidated view stats date updatesTest consolidated view disabling on transfer