Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.56 KB | None | 0 0
  1. Offline WSL
  2. (also need an estimation from server side)
  3.  
  4. 1) Add to WSL inspection non-editable-by-user field (attribute) TEMP_CODE (Temporary code).
  5. This code is not editable by the user, it will be generated by the app in the following format:
  6.  
  7. [2_INITIALS] + [RANDOM_3_DIGITS]
  8.  
  9. Examples:
  10. JS001 (for Jelle S.)
  11. MT002 (for Mike T.)
  12. SS999 (for Stas S.)
  13.  
  14. !!!CAUTION!!!
  15. !!!CAUTION!!!
  16. !!!CAUTION!!!
  17. It is possible to have collisions (same temp codes for different inspections and mechanics).
  18. The chance to have a collision is VERY low (<0.1%), but it may take place.
  19. We cannot fully avoid collisions. All that we can, without significantly increasing temp code size,
  20. is to increase number code from 3 to 4 digits. It may slightly reduce the chance to have a collision.
  21. Collisions may occur:
  22. - if mechanics have same initials AND their apps had generated same codes (JS001 - JS001);
  23. - if app had generated same codes (JS001 - JS001).
  24.  
  25.  
  26. 2) On the data update, application will update all data, *as it is now*,
  27. but with *receiving all existing temp codes and lab numbers*.
  28.  
  29. 3) On the data upload, application will upload all data, *as it is now*,
  30. but all edited offline-stored WSL data with corresponding temp codes will be sent,
  31. and lab number will be received for each inspection.
  32.  
  33. 4) When the mechanic will open WSL inspection screen, *if there is an internet connection*,
  34. the app will *send all created temp codes with corresponding data*, *receive corresponding generated lab numbers*,
  35. that will be stored locally, and show updated temp codes and lab numbers.
  36.  
  37. 5) When the mechanic will open WSL inspection screen, *if there is NO internet connection*,
  38. the app will show offline-stored inspection, temp codes and lab numbers.
  39.  
  40. 6) When the mechanic is saving entered WSL data, *if there is an internet connection*,
  41. the app will send data to the server and receive created lab number.
  42. *Temp code WILL NOT be generated.*
  43.  
  44. 7) When the mechanic is saving entered WSL data, *if there is NO internet connection*,
  45. the app will generate corresponding temp code and save all data locally.
  46. *Temp code WILL be generated.*
  47.  
  48. 8) On the server, creation date for the temp code is the same as for corresponding lab number.
  49.  
  50. 9) On the server, all temp codes will be *deleted*, if they are *older than 1 month*.
  51. (could be implemented as cron task)
  52.  
  53.  
  54. 16h - offline WSL storing logic
  55. 12h - sending WSL and processing of the response logic
  56. 12h - connect logic to UI
  57.  
  58. 15h - develop automated unit tests
  59.  
  60. SUM (without automated unit tests):
  61. 40h
  62. SUM (with automated unit tests):
  63. 55h
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement