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

Reduce number of activity events generated by tags #111

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

GermanCoding
Copy link
Contributor

@GermanCoding GermanCoding commented Aug 29, 2024

This introduces a new SystemTagObjectMapperWithoutActivity that uses a dummy event dispatcher to avoid triggering activities.

Change TagService so that callers can decide if they want activities generated for the tags or not. Change defaults to only trigger activities for Malicious + Pup tags.

This still generates some events for the initial creation of the system tags (done on first use), which is acceptable I think (it's only like 5 events).

Add a new test for the new behaviour.

[Please squash on merge]

This introduces a new SystemTagObjectMapperWithoutActivity that uses a
dummy event system to avoid triggering activities.

Change TagService so that callers can decide if they want activities
generated for the tags or not. Change defaults to only trigger
activities for Malicious + Pup tags.

This still generates some events for the initial creation of the system
tags (done on first use), which is acceptable I think (it's only like 5
events).

Add a new test for the new behaviour.
@GermanCoding GermanCoding merged commit dbf8be2 into main Sep 3, 2024
3 checks passed
@GermanCoding GermanCoding deleted the silent-activity branch September 3, 2024 08:43
GermanCoding added a commit that referenced this pull request Sep 3, 2024
This introduces a new SystemTagObjectMapperWithoutActivity that uses a
dummy event system to avoid triggering activities.

Change TagService so that callers can decide if they want activities
generated for the tags or not. Change defaults to only trigger
activities for Malicious + Pup tags.

This still generates some events for the initial creation of the system
tags (done on first use), which is acceptable I think (it's only like 5
events).

Add a new test for the new behaviour.
unglaublicherdude pushed a commit that referenced this pull request Sep 9, 2024
This introduces a new SystemTagObjectMapperWithoutActivity that uses a
dummy event system to avoid triggering activities.

Change TagService so that callers can decide if they want activities
generated for the tags or not. Change defaults to only trigger
activities for Malicious + Pup tags.

This still generates some events for the initial creation of the system
tags (done on first use), which is acceptable I think (it's only like 5
events).

Add a new test for the new behaviour.
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