The devlog-ist/landing project provides a landing page. Now, new users receive their entire commit history synced, ensuring a comprehensive start.
Initial GitHub Sync Improvement
Previously, new users syncing their GitHub repositories would only have a 7-day window of commit history initially synced. This meant they would miss out on a significant portion of their commit data. To address this, the InitialGitHubSyncJob has been updated.
Instead of dispatching with a 7-day window, it now dispatches with null dates. This instructs the synchronization process to fetch the entire commit history from GitHub, providing a complete and accurate representation of the user's contributions from the start.
On-Demand Historical Sync
To complement the initial sync improvement, a new Artisan command and dashboard action have been added for on-demand historical syncs. This allows administrators and users to manually trigger a full resync of GitHub data whenever needed.
The github:full-resync Artisan command can be executed from the command line, with options to specify either a user or a tenant. For example:
php artisan github:full-resync --user=123
php artisan github:full-resync --tenant=abc
Additionally, a "Full GitHub Resync" action has been added to the dashboard. This provides a convenient way for users to initiate a resync directly from the user interface.
Benefits
- Complete History: New users now get their entire commit history synced.
- On-Demand Resync: The new Artisan command and dashboard action provide flexibility for manually triggering full resyncs.
By implementing these changes, the devlog-ist/landing project ensures a more complete and accurate representation of user commit history, enhancing the overall user experience.
Top comments (0)