Bug 500957
Summary: | Bugzilla db data clean up (sanitycheck reported bugs with open status and a resolution error) | ||||||
---|---|---|---|---|---|---|---|
Product: | [Community] Bugzilla | Reporter: | Tony Fu <tfu> | ||||
Component: | Database | Assignee: | Tony Fu <tfu> | ||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | 3.2 | CC: | dkl | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
URL: | http://hardware.redhat.com | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-05-20 07:09:23 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 495647 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Comment 1
Tony Fu
2009-05-15 06:56:54 UTC
(In reply to comment #1) > Dave, > > 'Cause hwcert code has been changed to process bugs.resolution field properly > when reopening a bug, this clean up is most likely to be an one-time thing. I > think we just need the simple sql query to do it. > > mysql> UPDATE bugs SET resolution="" WHERE bug_id IN (325631, 471077, 472124); > > Any thoughts? > > > Thanks, > Tony Problem was since the hwcert code did not do this properly when the bug was reopened it did not get the proper activity log entry at that time. So we may need to make a log entry as well as change the bugs table. You can do this pretty easily by using the core BZ modules. #!/usr/bin/perl use lib '.'; use Bugzilla; use Bugzilla::Bug; Bugzilla->set_user(Bugzilla::User->new({name => 'bugzilla'}); foreach my $id (325631, 471077, 472124) { my $bug = Bugzilla::Bug->new($id); $bug->clear_resolution(); $bug->update(); } Or something like that. Then have eng-sysadmins to run the script on the live server for you. Dave Dave, Thanks for your suggestion. I attached a script which should do the bugs.resolution clean up. If you are happy with it, I will ask our sysadmin to run it on the live server. Thanks, Tony Created attachment 344401 [details]
script to set bugs.resolution to '' if the bug is in open state bug bugs.resolution is not ''
Comment on attachment 344401 [details]
script to set bugs.resolution to '' if the bug is in open state bug bugs.resolution is not ''
Tony. Looks good. Coordinate with eng-systems to get this executed on the live server.
Dave
eng-system has run it on the live server. Close this bug. |