publiccode-editor icon indicating copy to clipboard operation
publiccode-editor copied to clipboard

V. 2.0.3: Overwrite doesn't reset all data upon new Upload, and the new import is mixed (and messed) up with the previous data

Open itamair opened this issue 10 months ago • 1 comments

Hello, we are still QAing and Testing this new pubbliccode.yml Editor 2.0.x in the same context of European Commission (DIGIT Directorate) and the FOSSEPS Team (https://interoperable-europe.ec.europa.eu/collection/fosseps), and its solid and international adoption for the promotion of open source solutions across EU Public Services.

And we are now experiencing the following issue in the actual version 2.0.3:

Problem / Motivation

It looks that when a new publiccode.yml is being Uploaded its data is going to be mixed (and messed) up with the previous data, notwithstanding the clear warning "This operation will erase all data" ... unfortunately that is not true, and not properly happening.

How to reproduce

Let's reproduce the exact following use case / workflow:

  1. Set an ENGLISH interface for the p.yml editor
  2. RESET (Clean) the the p.yml editor
  3. UPLOAD (from file) the following publiccode.yml file: "publiccode-opencity-italia.yml" (properly generated and validated against publiccode.yml standard version "0.4." and this pubbliccode.yml Editor 2.0.3):

publiccode-opencity-italia.yml.zip

3.1 Eventually re-validate it (without any change in the editor / webform), to confirm that is saves without any change; 4. (without hitting any RESET to the actual editor / webform) UPLOAD (from file) the following additional publiccode.yml file: "publiccode_moodle_etranslation.yml" (also this properly generated and validated against publiccode.yml standard version "0.4." and this pubbliccode.yml Editor 2.0.3) confirming to "Overwrite form" in the popup dialog that warns "This operation will erase all data":

publiccode_moodle_etranslation.yml.zip

  1. (without any change in the editor / webform) VALIDATE this new "publiccode_moodle_etranslation.yml". It is going to Validate successfully and generate a new different publiccode.yml file that is mixing and taking over some data from the previous "publiccode-opencity-italia.yml", with the following GIT DIFF results:

publiccode_yml_editor_2_0_3_issue_#386_git_diff.pdf

A bad mess ... and definitely not the expected result, upon the confirmation of wanting to "Overwrite form" in the popup dialog that warns "This operation will erase all data"**

Side NOTE: worth to mention that all this bad outcome is not being experienced if the user click and performs a Manual RESET after action 3 and before a new Upload in action 4.

Expected Result

The Editor / Webform should indeed Reset all its data in the UPLOAD UX when the user confirms to "Overwrite form" in the popup dialog that warns "This operation will erase all data"**, and not leave anything in its cache or whatever ...

itamair avatar Feb 25 '25 08:02 itamair

hi @itamair . It's on me. I'll check this issues as soon as I can.

valeriocomo avatar Feb 26 '25 10:02 valeriocomo

hi @itamair. This bug has been fixed by version 2.1.0

valeriocomo avatar Jun 10 '25 13:06 valeriocomo