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

A reimport task got suddenly quite useful over the weekend #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

coolo
Copy link
Member

@coolo coolo commented Jul 31, 2019

Unfortunately it requires more work - as often the infos in bot_sources
are outdated. So for a useful reimport we need to dig for the verifymd5
in all known products. for the weekend incident I did just that as I only
needed to restore those actually in products.

My aim was actually reimporting past reviews, but that is much harder

Unfortunately it requires more work - as often the infos in bot_sources
are outdated. So for a useful reimport we need to dig for the verifymd5
in all known products. for the weekend incident I did just that as I only
needed to restore those actually in products.

My aim was actually reimporting past reviews, but that is much harder
{name => $pkg->{name}, id => {'!=', $pkg->{id}}, state => 'new'})
->hashes
}
)
Copy link
Member

Choose a reason for hiding this comment

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

my $results = $db->select(
  'bot_packages',
  ['id', 'priority'],
  {name => $pkg->{name}, id => {'!=', $pkg->{id}}, state => 'new'}
)->hashes;
for my $opkg (@$results) {

@kraih
Copy link
Member

kraih commented Jul 31, 2019

Very useful indeed, wish it had tests though.

@coolo
Copy link
Member Author

coolo commented Jul 31, 2019

Very useful indeed, wish it had tests though.

I don't plan to merge it before my vacation - I needed it for panic recovery, but now we're fine :)

@coolo
Copy link
Member Author

coolo commented Oct 7, 2024

if it wasn't useful for the last 5 years, I guess we can rest the case

@coolo coolo closed this Oct 7, 2024
@kraih
Copy link
Member

kraih commented Oct 7, 2024

It's not that it isn't useful, just the lack of tests.

@kraih kraih reopened this Oct 7, 2024
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