project-anuvaad / Project-Saral

Project Saral should be viewed as an OCR-plus application that is capable of doing OCR and can also understand the structure of the physical input.
MIT License
0 stars 1 forks source link

Frontend: Local storage features for scan status and publish offline #54

Open dileep-gadiraju opened 2 years ago

dileep-gadiraju commented 2 years ago

Frontend: Local storage features for scan status and publishes response when back online.

dileep-gadiraju commented 2 years ago

Save Scan , Scan Status counts are not showing properly.

apurvabisht97 commented 2 years ago

issue :- CASE1:- when testing with multi subject student sheet:-

  1. scan status as 1 and save status is 0
  2. after save all scan ... scan status as 0 and save status as 4 (it should show 1 ) Note:- save status which we store in db and scan status which we store in local

CASE2:-when testing with multi 4 student sheet:-

  1. scan status as 1 and save status is 0
  2. after save all scan ... scan status as 0 and save status as 4 (WHICH Is correct )
dileep-gadiraju commented 2 years ago

AsyncStorage_db_size_in_MB=50 property is present in gujarat build missing in v1.0. check and add it if needed.

dileep-gadiraju commented 2 years ago

Logout failure is throwing below exception. Use command react-native log-android to troubleshoot such issues:

│ ReferenceError: Can't find variable: SaveScanData │ _callee2$@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:142434:46 │ tryCatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:23401:23 │ invoke@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:23571:32 │ tryCatch@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:23401:23 │ invoke@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:23473:30http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:23483:21 │ tryCallOne@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28076:16http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28177:27http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28692:26 │ _callTimer@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28588:17 │ _callImmediatesPass@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28627:17 │ callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28837:33callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:3054:35http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:2832:34guard@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:3037:15 │ flushedQueue@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:2831:21 │ flushedQueue@[native code] └ invokeCallbackAndReturnFlushedQueue@[native code]

dileep-gadiraju commented 2 years ago

@apurvabisht97 , close this issue only after full testing and when all the related issues are closed.

apurvabisht97 commented 2 years ago

local storage absent validation is working as expected . Once the student's data is in local storage we cant mark those student as absent . Also Scan status Count is coming correctly .

example : for up school we have different classes . So If I first scan one class data and not saved in db my scan status count is coming and when I switch my class I am not able to see that scan status count .