Project

General

Profile

Actions

Issue #2227

open

Fix device names in the "Device" field in redmine Issues / bug reports

Added by Denis 'GNUtoo' Carikli about 3 years ago. Updated about 3 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Website and wiki content
Target version:
-
Start date:
02/27/2021
Due date:
% Done:

0%

Estimated time:
Resolution:
Device:
Unknown
Grant:
Type of work:
Any programming languages (scripts, C, etc), Bug tracker editions
Actions #1

Updated by Denis 'GNUtoo' Carikli about 3 years ago

The following devices still need to be renamed:
  • Galaxy Note 8.0 (N51xx) -> Galaxy Note 8.0 (GT-N51xx)
  • Galaxy S (I9000) -> Galaxy S (GT-I9000)
  • Galaxy S 2 (I9100) -> Galaxy S II (GT-I9100)
  • Galaxy S 3 (I9300) -> Galaxy S III (GT-I9300)
  • Galaxy S 3 4G (I9305) -> Galaxy S III 4G (GT-I9305)
  • Galaxy Note 2 (GT-N7100) -> Galaxy Note II (GT-N7100)
TODO: check the exact name of theses devices:
  • Galaxy Tab 2 7.0 (P31xx)
  • Galaxy Tab 2 10.1 (P51xx)
  • Nexus S (I902x)
DONE:
  • Galaxy Nexus (GT-I9250)
  • Galaxy Note (GT-N7000)

Here's some examples of procedure to do it.

Example: procedure 1:
  1. Generate a page with all bug reports that have the given device to rename in the Device field. Here's an example for the Galaxy Nexus (GT-I9250). Make sure to have all the bug reports in 1 page and not to close the page, as once the device is renamed, we need to have a list of bugs to change.
  2. Rename the device in the device custom field page
  3. For each bug report in the page, re-add the device
  4. Re-generate a new page with all the bug reports for the device, and compare the number of bug reports with the older generated page.

Advantages: It's faster
Side effects: The old device name is still there but we can at least open new bug reports with the new device name, and filter bugs with the new device name.

Example procedure 2:
  1. Generate a page with all bug reports that have the given device to rename in the Device field. Here's an example for the Galaxy Nexus (GT-I9250). Make sure to have all the bug reports in 1 page and not to close the page, as once the device is renamed, we need to have a list of bugs to change.
  2. For each bug report in the page, remove the device
  3. Rename the device in the device custom field page
  4. For each bug report in the page, re-add the device
  5. Re-generate a new page with all the bug reports for the device, and compare the number of bug reports with the older generated page.

Advantages: We don't have the old device name anymore
Side effects: It takes a lot more time.

The first procedure is probably way better as it's not worth the time to get rid of the duplicated device name in older bug reports.

Actions #2

Updated by Denis 'GNUtoo' Carikli about 3 years ago

  • Type of work Any programming languages (scripts, C, etc), Bug tracker editions added

This can be done either by programming or by doing it manually (as there is a lot to be converted, the task is way too much repetitive for humans).

I've started to write a script to automatize it, but it's not finished yet:
https://git.replicant.us/infrastructure/redmine-tracker-scripts/tree/redmine.py

Actions

Also available in: Atom PDF