Open Bug 1427623 Opened 7 years ago Updated 7 years ago

jb2bz.py fails to set priority for imported bugs

Categories

(Bugzilla :: Bugzilla-General, defect)

5.0.3
defect
Not set
normal

Tracking

()

UNCONFIRMED

People

(Reporter: quanah, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0 Build ID: 20171226083017 Steps to reproduce: When importing bugs from jitterbugs to bugzilla, I expected to be able to use the search interface to find the imported bugs Actual results: The search interface would never return any results. This is because of the following SQL query that's executed as part of a search: INNER JOIN priority AS map_priority ON bugs.priority = map_priority.value Expected results: The search interface should have returned results, instead it found no issues, as the above query is empty due to priority not being set on import.
Mainly, need to modify this function: try: cursor.execute( "INSERT INTO bugs SET " \ "bug_id=%s," \ "bug_severity='normal'," \ "bug_status=%s," \ "creation_ts=%s," \ to have priority set: try: cursor.execute( "INSERT INTO bugs SET " \ "bug_id=%s," \ "bug_priority=---" \ "bug_severity='normal'," \ "bug_status=%s," \ "creation_ts=%s," \ I will submit a pull request later, after I iron out a few other bugs.
s/bug_priority/priority/ in the above
You need to log in before you can comment on or make changes to this bug.