Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Offline WSL
- (also need an estimation from server side)
- 1) Add to WSL inspection non-editable-by-user field (attribute) TEMP_CODE (Temporary code).
- This code is not editable by the user, it will be generated by the app in the following format:
- [2_INITIALS] + [RANDOM_3_DIGITS]
- Examples:
- JS001 (for Jelle S.)
- MT002 (for Mike T.)
- SS999 (for Stas S.)
- !!!CAUTION!!!
- !!!CAUTION!!!
- !!!CAUTION!!!
- It is possible to have collisions (same temp codes for different inspections and mechanics).
- The chance to have a collision is VERY low (<0.1%), but it may take place.
- We cannot fully avoid collisions. All that we can, without significantly increasing temp code size,
- is to increase number code from 3 to 4 digits. It may slightly reduce the chance to have a collision.
- Collisions may occur:
- - if mechanics have same initials AND their apps had generated same codes (JS001 - JS001);
- - if app had generated same codes (JS001 - JS001).
- 2) On the data update, application will update all data, *as it is now*,
- but with *receiving all existing temp codes and lab numbers*.
- 3) On the data upload, application will upload all data, *as it is now*,
- but all edited offline-stored WSL data with corresponding temp codes will be sent,
- and lab number will be received for each inspection.
- 4) When the mechanic will open WSL inspection screen, *if there is an internet connection*,
- the app will *send all created temp codes with corresponding data*, *receive corresponding generated lab numbers*,
- that will be stored locally, and show updated temp codes and lab numbers.
- 5) When the mechanic will open WSL inspection screen, *if there is NO internet connection*,
- the app will show offline-stored inspection, temp codes and lab numbers.
- 6) When the mechanic is saving entered WSL data, *if there is an internet connection*,
- the app will send data to the server and receive created lab number.
- *Temp code WILL NOT be generated.*
- 7) When the mechanic is saving entered WSL data, *if there is NO internet connection*,
- the app will generate corresponding temp code and save all data locally.
- *Temp code WILL be generated.*
- 8) On the server, creation date for the temp code is the same as for corresponding lab number.
- 9) On the server, all temp codes will be *deleted*, if they are *older than 1 month*.
- (could be implemented as cron task)
- 16h - offline WSL storing logic
- 12h - sending WSL and processing of the response logic
- 12h - connect logic to UI
- 15h - develop automated unit tests
- SUM (without automated unit tests):
- 40h
- SUM (with automated unit tests):
- 55h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement