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

Delete unique tag alongside RemoveByTag #178

Merged
merged 2 commits into from
May 19, 2021

Conversation

skinnaj
Copy link

@skinnaj skinnaj commented May 19, 2021

What does this do?

Currently, when you create jobs with unique tags and delete by tag afterwards, the unique tag is deleted. This leads to a unique tag constraint when adding a new job with the previous unique tag.

This PR solves this issue by deleting the unique tag alongside the RemoveByTag method.

List any changes that modify/break current functionality

Delete unique tag in RemoveByTag

Have you included tests for your changes?

yes

Notes

Thanks for maintaining this library. We're planning to integrate it for a major feature and the tagging functionality is a game-changer :)

arjunmahishi
arjunmahishi previously approved these changes May 19, 2021
scheduler_test.go Outdated Show resolved Hide resolved
Co-authored-by: Arjun Mahishi <arjun.mahishi@gmail.com>
Copy link
Member

@arjunmahishi arjunmahishi left a comment

Choose a reason for hiding this comment

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

LGTM!
@JohnRoesler or @Streppel can have a look once and merge it

@JohnRoesler JohnRoesler merged commit e60bbfd into go-co-op:master May 19, 2021
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.

3 participants