hpcviewer warns incorrectly when merging two remote databases
<!-- SPDX-FileCopyrightText: Contributors to the HPCToolkit Project SPDX-License-Identifier: CC-BY-4.0 --> ## Describe the bug When merging two remote databases, hpcviewer incorrectly warns that the merged database already exists. This happens because the `duplicate` method in the remote database class performs a shallow copy, and the ID remains the same as the original database. This bug doesn't occur when merging a local database and a remote database, or merging two local databases. ## To Reproduce 1. Open two remote databases 2. Select `File` - `Merge databases` 3. Click `Ok` to merge 4. A warning will be displayed ## Expected behavior There shouldn't be any warnings. The ID of the merged database should be unique, not only a copy of the remote database. ## Screenshots If applicable, add screenshots to help explain your problem. ## Platform (please complete the following information): - OS: [e.g. Windows, Linux, MacOS] - Architecture [e.g. x86, ppc, arm] - Version [e.g. 22] ## Additional context Add any other context about the problem here.
issue