GithubHelp home page GithubHelp logo

Comments (10)

jerolomb avatar jerolomb commented on July 25, 2024

HI Thierry,

Seems there is a little bug with the clear export/import. You can do the job with the encrypted one with the password.

Have a nice day

Jérôme

from monarcappfo.

jerolomb avatar jerolomb commented on July 25, 2024

The file you export is it just containing [object object] ? If it's the case just clean the cache of your browser. In all the case, can you make a test with a cleaned cache ?

from monarcappfo.

ThierryPGT avatar ThierryPGT commented on July 25, 2024

I don't understand [object object] ?
The file is containing the asset "Service " that contains the three assets Font-office, Back-office And Obligation légal GDPR.
I have cleared the cache.
With or without password, it's the same result, asset is not or partially imported in the new analysis.

from monarcappfo.

jerolomb avatar jerolomb commented on July 25, 2024

I just asked you to look into the file which is exported and tell us if the json is a complete one or if it just contains [object object].

You can for example edit the file to look into with notepad on windows.

from monarcappfo.

cedricbonhomme avatar cedricbonhomme commented on July 25, 2024

The error is raised from here: https://github.com/monarc-project/zm-core/blob/master/src/MonarcCore/Validator/UniqueCode.php#L49
this is weird. I investigate more.

from monarcappfo.

cedricbonhomme avatar cedricbonhomme commented on July 25, 2024

The problem seems to be when we have a "Front office" and a "Back office" in the Service asset. It is working if for example we only have a "Back Office" and "Obligation legal GDPR".

During the import of the previously exported file (Service.json), we can see that the import procedure is abrupted during the import of the second asset (Front office):

Service
    Back Office
        Gestion serveurs
        Réseau & télécom
        Organisation informatique
        Développements logiciels
        Salle informatique
        Gestion des backups
        Postes de travail admin
        Bâtiment
        Administrateur système
    Front Office
        Employés

The problem is raised when trying to import "Employés" from "Font Office".

At this stage, the content of fields (https://github.com/monarc-project/zm-core/blob/master/src/MonarcCore/Validator/UniqueName.php#L44) is:

Array
(
    [name1] => Employés
    [anr] => 10
)
Array
(
    [name2] => Employees
    [anr] => 10
)
Array
(
    [name3] => Mitarbeiter
    [anr] => 10
)
Array
(
    [name4] => Werknemers
    [anr] => 10
)

from monarcappfo.

cedricbonhomme avatar cedricbonhomme commented on July 25, 2024

the test isValid() from UniqueName.php is called from:
https://github.com/monarc-project/zm-core/blob/master/src/MonarcCore/Service/ObjectExportService.php#L291 (line 175 in exchangeArray())

from monarcappfo.

ThierryPGT avatar ThierryPGT commented on July 25, 2024

In this case, as the integration method is "Fusion", items with the same name, should be overwritten, no ?

from monarcappfo.

cedricbonhomme avatar cedricbonhomme commented on July 25, 2024

If by "fusion" you mean "merge", yes.
My problem is that with the content I pasted just above, I don't see duplicates with 'Employees'.

from monarcappfo.

ThierryPGT avatar ThierryPGT commented on July 25, 2024

Right.
In this case, the object "Employees" has been created in two separated risk analysis. The name is the same, but not the internal reference number that is created by the system.

from monarcappfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.