Skip to content

Conversation

@RicardoAugustoTulio
Copy link
Collaborator

  • Add extractFromKernel method to extract schedules from Laravel Kernel
  • Create ImportService to handle schedule import logic with duplicate prevention
  • Add importFromKernel method with upsert functionality (create new or update existing)
  • Create extract.blade.php view with bulk selection interface

- Add extractFromKernel method to extract schedules from Laravel Kernel
- Create ImportService to handle schedule import logic with duplicate prevention
- Add importFromKernel method with upsert functionality (create new or update existing)
- Create extract.blade.php view with bulk selection interface
@what-the-diff
Copy link

what-the-diff bot commented Sep 26, 2025

PR Summary

  • New Updates to Language File
    A language file known as schedule.php has been updated to include several new messages and fields. These enhancements will help to extract schedules more effectively. For instance, there are added messages to denote success or failure during import and an alert when no schedules are found. Some current fields are also incorporated into the extraction process, with new additions like 'settings' on board.

  • Creation of New View File
    A new view file extract.blade.php has been created primarily for displaying extracted schedules. It features a user-friendly form that allows users to select schedules for import, and even provides handy "Select All" and "Select None" options. Additionally, it displays key details of extracted schedules such as commands, expressions, environments, and settings in a structured table layout.

  • Modifications to Index File
    The existing index.blade.php file now includes a new button. This button will facilitate the extraction of schedules directly from the kernel, offering a streamlined experience.

  • Web Routes - Additions and Updates
    Web routes or web.php have been updated to cover new processes like extracting schedules and importing selected ones. You can now find respective routes GET /extract and POST /import tied to the ScheduleController.

  • Enhancements to Schedule Controller
    The existing ScheduleController.php has now been enriched with two new methods. One method extracts schedules and passes on to the new view (extractFromKernel()), while the other handles the import of selected schedules while providing useful feedback messages (importFromKernel()).

  • Introduction of New Service Classes
    Finally, we've added two new service classes for more efficient handling of tasks. One called ImportService.php manages the import of schedules into the database. The other, KernelExtractorService.php, takes care of extracting scheduled commands from the application's kernel, bundling the extraction logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant