Skip to content

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

Open
coolo wants to merge 1 commit into
openSUSE:masterfrom
coolo:reimport
Open

A reimport task got suddenly quite useful over the weekend#31
coolo wants to merge 1 commit into
openSUSE:masterfrom
coolo:reimport

Conversation

@coolo

@coolo coolo commented Jul 31, 2019

Copy link
Copy Markdown
Member

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
Copy Markdown
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

kraih commented Jul 31, 2019

Copy link
Copy Markdown
Member

Very useful indeed, wish it had tests though.

@coolo

coolo commented Jul 31, 2019

Copy link
Copy Markdown
Member Author

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

coolo commented Oct 7, 2024

Copy link
Copy Markdown
Member Author

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

kraih commented Oct 7, 2024

Copy link
Copy Markdown
Member

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