Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Order in submission #84

Open
AlainBeauchard opened this issue Nov 8, 2019 · 6 comments
Open

Order in submission #84

AlainBeauchard opened this issue Nov 8, 2019 · 6 comments

Comments

@AlainBeauchard
Copy link

In the submission, sometime the order is invert compare to the fields forms.
It happens when i reset fixtures, and after all the submissions are inverted. But it's not happen every time, only sometimes, but when it's happen we have to reset fixture until return to the good order.

@StephenOTT
Copy link
Member

What do you mean by order? Do you mean the Order of the Json props such as:

{
   "prop1": "val1",
   "prop2": "val2"
}

vs

{
   "prop2": "val2",
   "prop1": "val1"
}

@AlainBeauchard
Copy link
Author

exactly

@StephenOTT
Copy link
Member

The order of Json properties is typically not guaranteed because of the Json spec states that props are not ordered / don't retain order.

@AlainBeauchard
Copy link
Author

This is a disadvantage for us, we have to change the order of submission' display, but we never know when.
Could you investigate about this issue in order to have a sustainable solution ?

@StephenOTT
Copy link
Member

Can you provide a more specific snippet of Json that you are seeing this out of order on?

@AlainBeauchard
Copy link
Author

Here a example of response correct :

{
"id": 1,
"uuid": "cdb44dd1-aa31-45ab-9cb5-619d26fe3100",
"createdAt": "2019-11-19T08:59:01+00:00",
"updatedAt": "2019-11-19T08:59:01+00:00",
"deletedAt": null,
"owner": "BusinessUnit",
"ownerUuid": "49b9813e-047c-4014-8580-2352c5e1a7b1",
"identity": "Staff",
"identityUuid": "360fd22d-00b2-4fc1-ae45-aaa1463a34e6",
"scenario": "/scenarios/dc3c8efe-3db0-411c-b9fe-afc37c56d4a9",
"data": {
"civilite": "monsieur",
"prenom": "Alain",
"mail": "[email protected]",
"nom": "Beauchard",
"telephone": "",
"adresse": "",
"memoriserMesDonneesPersonnellesPourMesProchainesDemandes": false,
"jsonIdentityRequested": "{"identity":"individual","identityUuid":"f1c08d72-a79c-4d73-b02f-fbd36b1ecc5b"}",
"canalRequest": "Courrier",
"tenantId": "b8a23c41-b3e5-486e-866b-fb83d727c239",
"salleAReserver": "salleDesFetes",
"dateDemarrageReservation": "2019-11-19T11:00:00.000Z",
"dateFinReservation": "2019-11-20T11:00:00.000Z",
"motifDeLaDemandeDeReservation": "",
"demandesParticulieres": "",
"nombreDePersonnes": 11,
"justificatifDeDomicile": [],
"jeCertifieLexactitudeDeCesInformations": true
},
"state": 1,
"version": 1,
"tenant": "b8a23c41-b3e5-486e-866b-fb83d727c239"
},

and in the invert order:
{
"id": 1,
"uuid": "cdb44dd1-aa31-45ab-9cb5-619d26fe3100",
"createdAt": "2019-11-19T08:59:01+00:00",
"updatedAt": "2019-11-19T08:59:01+00:00",
"deletedAt": null,
"owner": "BusinessUnit",
"ownerUuid": "49b9813e-047c-4014-8580-2352c5e1a7b1",
"identity": "Staff",
"identityUuid": "360fd22d-00b2-4fc1-ae45-aaa1463a34e6",
"scenario": "/scenarios/dc3c8efe-3db0-411c-b9fe-afc37c56d4a9",
"data": {
"jeCertifieLexactitudeDeCesInformations": true
"justificatifDeDomicile": [],
"nombreDePersonnes": 11,
"demandesParticulieres": "",
"motifDeLaDemandeDeReservation": "",
"dateFinReservation": "2019-11-20T11:00:00.000Z",
"dateDemarrageReservation": "2019-11-19T11:00:00.000Z",
"salleAReserver": "salleDesFetes",
"tenantId": "b8a23c41-b3e5-486e-866b-fb83d727c239",
"canalRequest": "Courrier",
"jsonIdentityRequested": "{"identity":"individual","identityUuid":"f1c08d72-a79c-4d73-b02f-fbd36b1ecc5b"}",
"memoriserMesDonneesPersonnellesPourMesProchainesDemandes": false,
"adresse": "",
"telephone": "",
"nom": "Beauchard",
"mail": "[email protected]",
"prenom": "Alain",
"civilite": "monsieur",
},
"state": 1,
"version": 1,
"tenant": "b8a23c41-b3e5-486e-866b-fb83d727c239"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants