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

Add a flag to search job with appended results #1514

Conversation

ramonfigueiredo
Copy link
Collaborator

@ramonfigueiredo ramonfigueiredo commented Sep 19, 2024

  • Add a new configuration option search_jobs.append_results in cuegui.yaml to control job search behaviour.
  • If search_jobs.append_results is set to true, search results will be appended to the current list of monitored jobs.
  • If search_jobs.append_results is set to false, the existing jobs will be cleared before displaying the search results.
  • Updated Constants.py to include the new configuration parameter.
  • Modified MonitorJobsPlugin.py to conditionally clear the job monitor based on the config setting.

@ramonfigueiredo ramonfigueiredo changed the title Add configurable search behavior to Job Monitor Add configurable search behaviour to Job Monitor Sep 19, 2024
- Introduced a new configuration option `search_jobs.append_results` in cuegui.yaml to control job search behavior.
- If `search_jobs.append_results` is set to true, search results will be appended to the current list of monitored jobs.
- If `search_jobs.append_results` is set to false, the existing jobs will be cleared before displaying the search results.
- Updated Constants.py to include the new configuration parameter.
- Modified MonitorJobsPlugin.py to conditionally clear the job monitor based on the config setting.
@ramonfigueiredo ramonfigueiredo force-pushed the configurable-job-monitor-search-behavior branch from df42953 to 5933a7e Compare September 19, 2024 01:42
@ramonfigueiredo ramonfigueiredo changed the title Add configurable search behaviour to Job Monitor Add a flag for search job with appended results Sep 19, 2024
@ramonfigueiredo ramonfigueiredo marked this pull request as ready for review September 19, 2024 04:27
@ramonfigueiredo ramonfigueiredo changed the title Add a flag for search job with appended results Add a flag to search job with appended results Sep 19, 2024
Copy link
Collaborator

@DiegoTavares DiegoTavares left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've suggested a new description for the new flag to make it clearer.

Comment on lines 156 to 158
# A flag for search job with appended results
# true to appended to the current list of monitored jobs,
# false to clear the current job list and show only the new search results
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# A flag for search job with appended results
# true to appended to the current list of monitored jobs,
# false to clear the current job list and show only the new search results
# Define whether or not new jobs should be appended to the current list of jobs on the JobMonitor widget
# - True: search result will append jobs to the current list of monitored jobs
# - False: repopulate the jobs table with the search result

@ramonfigueiredo
Copy link
Collaborator Author

I've suggested a new description for the new flag to make it clearer.

Done, thanks!

@ramonfigueiredo ramonfigueiredo merged commit 388255c into AcademySoftwareFoundation:master Sep 19, 2024
13 checks passed
@ramonfigueiredo ramonfigueiredo deleted the configurable-job-monitor-search-behavior branch October 15, 2024 17:06
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