Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
RemoveAfter
property for catalogs, which allows for marking them for skipping by the watchdog. This change addresses the current implementation gap, which does not explicitly indicate when catalogs are being used. The new property will specify the time from which objects can be purged. A corresponding fixturewatchdog_remove_after
has been added to the list of available fixtures, and themake_catalog
fixture has been updated to include this new property. Additionally, a timeout mechanism for catalogs has been implemented, which improves the system's efficiency and safety by marking catalogs as in use. A test for themake_catalog
function has been included to ensure that theRemoveAfter
entry is correctly added to the catalog properties. However, the specific call parameters for thecatalogs.create
method cannot be accurately determined in the test.watchdog_purge_suffix
fixture has been renamed towatchdog_remove_after
, and the newmake_query
fixture has been added to the documentation. In addition, themake_query
andcreate
functions now accept an optionaltags
argument, and the query name is generated with a unique identifier. Iftags
are provided, theRemoveAfter
tag is added. Theoriginal_query_tag
is no longer hardcoded in thecreate
function and has been removed. These changes improve the overall user experience and maintainability of the project.