Issue #2227
openFix device names in the "Device" field in redmine Issues / bug reports
0%
Updated by Denis 'GNUtoo' Carikli over 3 years ago
- 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)
- Galaxy Tab 2 7.0 (P31xx)
- Galaxy Tab 2 10.1 (P51xx)
- Nexus S (I902x)
- Galaxy Nexus (GT-I9250)
- Galaxy Note (GT-N7000)
Here's some examples of procedure to do it.
Example: procedure 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.
- Rename the device in the device custom field page
- For each bug report in the page, re-add the device
- 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.
- 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.
- For each bug report in the page, remove the device
- Rename the device in the device custom field page
- For each bug report in the page, re-add the device
- 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.
Updated by Denis 'GNUtoo' Carikli over 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