Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

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

Open
dileep-gadiraju opened this issue Oct 12, 2021 · 6 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@dileep-gadiraju
Copy link
Collaborator

dileep-gadiraju commented Oct 12, 2021

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

  • max limit to accept a number of scans
@dileep-gadiraju
Copy link
Collaborator Author

Save Scan , Scan Status counts are not showing properly.

@apurvabisht97
Copy link
Collaborator

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
Copy link
Collaborator Author

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

@dileep-gadiraju
Copy link
Collaborator Author

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:30
http://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:16
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:28177:27
http://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:33
│ __callImmediates@http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:3054:35
http://localhost:8081/index.bundle?platform=android&dev=true&minify=false&app=com.saralapp&modulesOnly=false&runModule=true:2832:34
│ __guard@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 dileep-gadiraju added the enhancement New feature or request label Oct 22, 2021
@dileep-gadiraju
Copy link
Collaborator Author

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

@apurvabisht97
Copy link
Collaborator

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants