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

Fixed type error with adding new retention rule #178

Merged
merged 4 commits into from
Jul 8, 2022

Conversation

nickvergessen
Copy link
Member

@nickvergessen nickvergessen commented Jul 8, 2022

Repushing #174 so CI runs

Fix #175
Fix #172

@nickvergessen nickvergessen requested a review from CarlSchwan July 8, 2022 09:04
@nickvergessen
Copy link
Member Author

/backport to stable24

Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
@@ -85,7 +85,7 @@ public function run($argument): void {
// Validate if tag still exists
$tag = $argument['tag'];
try {
$this->tagManager->getTagsByIds($tag);
$this->tagManager->getTagsByIds((string) $tag);
Copy link
Member

Choose a reason for hiding this comment

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

should this maybe also be done in the createNamedParameter call? or once line 86

Copy link
Member Author

Choose a reason for hiding this comment

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

No, because the retention code is int based. Only the TagManager code is string based although it casts to int afterwards itself as the DB is int for oc_systemtags* tables as well...

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.

Unable to add retention rule Exception when trying to set up retention
3 participants