-
Suggestion
-
Resolution: Unresolved
Problem Definition
When creating a review via web interface and uploading a pre-commit patch, the patch file retains it's name in the review which is very helpful as it helps indicating what the patch file name relates to.
However when using the command line or the REST API, the patch file name is generated automatically by Fisheye as something like: "CR-123-patch-1.txt"
Suggested Solution
The command line script and the REST API endpoint should have a new parameter that allows specifying a patch name.
Workaround
Currently the only workaround is to run database queries for changing the patch name. Follow these steps:
- Stop Crucible
- Create a database backup
- Run these SQL queries, adjusting the placeholders accordingly:
update cru_fr_detail set cru_value = '<new_patch_name>.txt' where cru_value = '<old_patch_name>.txt'; update cru_upload_item set cru_description = '<new_patch_name>.txt', cru_original_name = '<new_patch_name>.txt' where cru_description = '<old_patch_name>.txt'' or cru_original_name = '<old_patch_name>.txt'';
- Start Crucible
- Refresh the review, and the new patch name should be displayed: