constellation-app / constellation

A graph-focused data visualisation and interactive analysis application.
https://constellation-app.com
Apache License 2.0
385 stars 59 forks source link

Set File Overwrite warning when exporting to same filename #2186

Closed andromeda-224 closed 1 month ago

andromeda-224 commented 1 month ago

Prerequisites

Description of the Change

Set flag warnOverwrite to true in AbstractGeoExportPlugin as default.

Alternate Designs

Why Should This Be In Core?

It would be good to be warned of file overwrites when exporting geo files.

Benefits

It would be good to be warned of file overwrites when exporting geo files.

Possible Drawbacks

Verification Process

  1. Open Constellation. Open a graph.
  2. Select File -> export -> To JSON
  3. Save file with filename (eg.test_file). Click Save. Click Export.
  4. Select File -> export -> To JSON
  5. Save file with same filename (eg.test_file). Click Save.
  6. File Overwrite warning dialog appears.

Applicable Issues

2185

sonarcloud[bot] commented 1 month ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud