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

added possibility to skip an environement when purging #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

YoussefDahi
Copy link
Contributor

changes : #114

  • Skip an environment when purging by setting depth to -1

Additional changes:

  • Fix : reset suppression info list each time the purge is executed

@YoussefDahi YoussefDahi added the enhancement New feature or request label Jan 13, 2025
@YoussefDahi YoussefDahi added this to the backlog milestone Jan 13, 2025
@YoussefDahi YoussefDahi self-assigned this Jan 13, 2025
@YoussefDahi YoussefDahi linked an issue Jan 13, 2025 that may be closed by this pull request
@@ -34,7 +34,9 @@ public void purgeBatch(){
inspectConfiguration.getConfig().getEnv().forEach((envName,depth) ->
{
envList.remove(envName);
purgeService.purgeData(List.of(envName), null, Instant.now().minus(depth, ChronoUnit.DAYS), null);
if(depth != -1){
Copy link
Member

Choose a reason for hiding this comment

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

'>-1'

@YoussefDahi YoussefDahi requested a review from usfalami January 14, 2025 13:10
@@ -16,7 +16,7 @@
public class PurgeService {

private final JdbcTemplate template;
private final Map<String, Integer> suppInfo = new HashMap<>();
private final Map<String, Integer> suppInfo;
Copy link
Member

Choose a reason for hiding this comment

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

"purgeData' method variable !?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

skip env purge
2 participants