Skip to content
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

Search by tags in pending and completed jobs #1513

Closed

Conversation

mvd81
Copy link

@mvd81 mvd81 commented Nov 2, 2024

Introduce functionality for searching tags within pending and completed jobs, aligning with the existing functionality for failed jobs.

Screencast

screencastPRHorizon.mp4

Added listeners to handle job tags for pending and completed jobs, and updated controllers to support tag-based filtering of jobs. Added tests to verify the functionality of these new features.


Pending Tags:

  • Implement a listener StoreTagsForPendingJob for the JobPushed event; this appends tags to pending jobs.
  • Refactor PendingJobsController to support searching based on pending tags.
  • Update resources/js/screens/recentJobs/index.vue to facilitate tag searches.
  • Automated tests are available in the following locations:
    • Listeners/StoreTagsForPendingTest.php
    • RetrievePendingJobsFilteredByTagTest.php

Completed Tags:

  • Create a listener StoreTagsForCompletedJob for the JobDeleted event; pertinent completed jobs will now be tagged.
  • Develop another listener ForgetJobInPendingTags for the JobDeleted event; this removes the job from the pending tags.
  • Modify CompletedJobsController to allow searching for completed tags.
  • Adjust resources/js/screens/recentJobs/index.vue for tag-based searching.
  • Automated tests are available in the following locations:
    • Listeners/StoreTagsForCompletedTest.php
    • Listeners/ForgetPendingTagsForCompletedJobTest.php
    • RetrieveCompletedJobsFilteredByTagTest

Introduced listeners to handle job tags for pending and completed jobs, and updated controllers to support tag-based filtering of jobs. Added tests to verify the functionality of these new features.
Added a condition to hide the search bar when viewing silenced jobs in the recent jobs component. This change ensures the UI remains uncluttered and contextually relevant based on the job type displayed.
Standardize formatting by adjusting whitespace and quotation styles across multiple files. This includes adding spaces in conditional statements, aligning parameter annotations, and ensuring consistent object literals formatting in test cases.
Standardize formatting by adjusting whitespace and quotation styles across multiple files. This includes adding spaces in conditional statements, aligning parameter annotations, and ensuring consistent object literals formatting in test cases.
Standardize formatting by adjusting whitespace and quotation styles across multiple files. This includes adding spaces in conditional statements, aligning parameter annotations, and ensuring consistent object literals formatting in test cases.
Standardize formatting by adjusting whitespace and quotation styles across multiple files. This includes adding spaces in conditional statements, aligning parameter annotations, and ensuring consistent object literals formatting in test cases.
@taylorotwell
Copy link
Member

Thanks for your pull request to Laravel!

Unfortunately, I'm going to delay merging this code for now. To preserve our ability to adequately maintain the framework, we need to be very careful regarding the amount of code we include.

If applicable, please consider releasing your code as a package so that the community can still take advantage of your contributions!

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.

2 participants