AY2324S1-CS2103-T16-2 / tp

MIT License
0 stars 4 forks source link

[PE-D][Tester A] No data upon booting the application up again #189

Closed nus-pe-bot closed 11 months ago

nus-pe-bot commented 11 months ago

As shown in the picture below, when i exit and tried to run the program again, there is nothing shown. I have the medisync.json file in the data directory, hence there seems to be a problem when reading the json file. I understadn that under your Editing the data file section, there seem to have a lot of cautions. I assure that I did not directly modify the json file, and all I did was to run the commands in the application. Hence I think it would be good if you can look into why is this causing a problem where the commands that changes the file could lead to this. The medisync.json file is as follows:

{
  "persons" : [ {
    "name" : "Alex Yeoh",
    "phone" : "87438807",
    "email" : "alexyeoh@example.com",
    "role" : "Doctor",
    "shiftDays" : [ ],
    "specialisations" : [ "Radiologist", "ENT" ],
    "affiliations" : [ "Bernice Yu", "Charlotte Oliveiro" ],
    "affiliationHistory" : [ "Bernice Yu", "Charlotte Oliveiro" ]
  }, {
    "name" : "Bernice Yu",
    "phone" : "99272758",
    "email" : "berniceyu@example.com",
    "role" : "Patient",
    "nextOfKin" : {
      "nextOfKinName" : "Holland Tan",
      "nextOfKinPhone" : "91334428",
      "nextOfKinRelationship" : "Father"
    },
    "affiliations" : [ "Alex Yeoh" ],
    "affiliationHistory" : [ "Alex Yeoh" ]
  }, {
    "name" : "May Ho",
    "phone" : "94437233",
    "email" : "homimay@example.com",
    "role" : "Nurse",
    "shiftDays" : [ 3, 4, 5 ],
    "affiliations" : [ "Irfan Ibrahim" ],
    "affiliationHistory" : [ ]
  }, {
    "name" : "Charlotte Oliveiro",
    "phone" : "93210283",
    "email" : "charlotte@example.com",
    "role" : "Patient",
    "nextOfKin" : {
      "nextOfKinName" : "Ancob Maximus",
      "nextOfKinPhone" : "87769988",
      "nextOfKinRelationship" : "Husband"
    },
    "affiliations" : [ "Alex Yeoh", "Evelyn Ng" ],
    "affiliationHistory" : [ "Alex Yeoh", "Evelyn Ng" ]
  }, {
    "name" : "David Li",
    "phone" : "91031282",
    "email" : "lidavid@example.com",
    "role" : "Doctor",
    "shiftDays" : [ 2, 5, 7 ],
    "specialisations" : [ "heart brain cell" ],
    "affiliations" : [ "Irfan Ibrahim", "Testing2" ],
    "affiliationHistory" : [ "Irfan Ibrahim", "Testing2" ]
  }, {
    "name" : "Irfan Ibrahim",
    "phone" : "92492021",
    "email" : "irfan@example.com",
    "role" : "Patient",
    "nextOfKin" : {
      "nextOfKinName" : null,
      "nextOfKinPhone" : null,
      "nextOfKinRelationship" : null
    },
    "affiliations" : [ "May Ho", "David Li" ],
    "affiliationHistory" : [ "May Ho", "David Li" ]
  }, {
    "name" : "Evelyn Ng",
    "phone" : "92624417",
    "email" : "eveng@example.com",
    "role" : "Nurse",
    "shiftDays" : [ 1, 2, 4, 6 ],
    "affiliations" : [ "Charlotte Oliveiro" ],
    "affiliationHistory" : [ "Charlotte Oliveiro" ]
  }, {
    "name" : "Testing2",
    "phone" : "987654",
    "email" : "fjieigj@example.com",
    "role" : "Patient",
    "nextOfKin" : {
      "nextOfKinName" : null,
      "nextOfKinPhone" : null,
      "nextOfKinRelationship" : null
    },
    "affiliations" : [ "David Li" ],
    "affiliationHistory" : [ ]
  }, {
    "name" : "Testing3",
    "phone" : "93874947",
    "email" : "firjig@example.com",
    "role" : "Patient",
    "nextOfKin" : {
      "nextOfKinName" : null,
      "nextOfKinPhone" : null,
      "nextOfKinRelationship" : null
    },
    "affiliations" : [ ],
    "affiliationHistory" : [ ]
  } ]
}

image.png


Labels: severity.High type.FunctionalityBug original: brendanneojw/ped#11

leezhanpeng commented 11 months ago

Thanks for the catch.