Advertisement
Guest User

Untitled

a guest
Sep 20th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.05 KB | None | 0 0
  1. [tailsdotcom/tails] Revert "Revert "Feature/international delivery services [WIP]"" (#1307)
  2.  
  3. (▰˘◡˘▰)
  4. 12:44 (10 hours ago)
  5. Reverts tailsdotcom/tails#1306 there are bugs in this, and will break production can you also include us in PR's that touch shipment/warehouse code - we are hap
  6. 4
  7.  
  8. Matt M
  9. 20:31 (2 hours ago)
  10. @zelane pushed 1 commit. - a3d5b85 rename france store to fr for consistency View it on GitHub or mute the thread.
  11.  
  12. (▰˘◡˘▰) <notifications@github.com>
  13. 21:25 (1 hour ago)
  14. to Subscribed, tailsdotcom/tails
  15.  
  16. has anyone run this code yet?
  17.  
  18.  
  19.  
  20. Matt M <notifications@github.com>
  21. 21:28 (1 hour ago)
  22. to tailsdotcom/tails, Subscribed
  23.  
  24. it's be run against, web, fy and by. We don't currently have any test setup for packing etc or any docs on it. If I can get some kind of logs for the issue that was seen I can implement a fix and we can test it together tomorrow. Whilst digging in to this it looks like the migration in this PR wasn't run against the prod db, so maybe that was the issue?
  25.  
  26.  
  27.  
  28. (▰˘◡˘▰) <notifications@github.com>
  29. 21:53 (1 hour ago)
  30. to tailsdotcom/tails, Subscribed
  31.  
  32. but why are you editing code you do not know how to run?
  33. not running it..
  34. and then pushing it to live?
  35.  
  36. you can always chuck anything you need doing on our end into our sprint (which lives on trello, and everyone should have access to?), you've just got to turn up and bargain for priority against the rest of them haha, and if you ever want any of us to run through or help you setup stuff, we are always here to help! (this goes for anyone else too!)
  37.  
  38. I can help you run the code tomorrow, I will come find you and we can do it on your laptop : )
  39.  
  40.  
  41.  
  42. (▰˘◡˘▰) <notifications@github.com>
  43. 21:57 (1 hour ago)
  44. to tailsdotcom/tails, Subscribed
  45.  
  46. @NULL-OPERATOR commented on this pull request.
  47.  
  48. In lib/shipment/shipment_helper.py:
  49.  
  50. > - '10': 1, #before 10 30
  51. - '12': 1, #before 12
  52. - '48': 2,
  53. - '72': 3,
  54. - 'packet': 3,
  55. - 'ISLE': 5}
  56. +# TODO: This could move to the CourierDeliveryService?
  57. +fulfilment_days = {
  58. + '24': 1,
  59. + '10': 1, # before 10 30
  60. + '12': 1, # before 12
  61. + '48': 2,
  62. + '72': 3,
  63. + 'packet': 3,
  64. + 'ISLE': 5,
  65. + 'international': 5
  66. also.. where was this decided?
  67.  
  68.  
  69.  
  70. Matt M <notifications@github.com>
  71. 22:13 (1 hour ago)
  72. to tailsdotcom/tails, Subscribed
  73.  
  74. It's shared code so it's run in several applications, it's been tested in the ones I have a running environment for in development, which did not have any issues.
  75.  
  76. Given that the only changes that should impact other services are the changes to two function signatures, and I searched the code base for and updated the call sites, I did not consider it high enough risk to trade off against a full regression costing both of us time, given that the plan was to merge all of our international changes into master and then run a full end to end test together, which should have shaken any issues out before going to prod.
  77.  
  78. These changes were not intended for prod and no one on our side deploy them, however they were merged into master to facilitate the end to end test that everyone was hoping to do today.
  79.  
  80. I really would have appreciated some logs from the issue you saw when it got accidentally pushed to production as it would have let me get ahead of the curve on resolving this issue, which might be as simple as just making sure the migration has been run against prod. As you know the deadline for getting intentional live is pretty punchy and whilst discussions about shared code etiquette are something we should definitely make time for, they will not solve the immediate issue at hand.
  81.  
  82.  
  83.  
  84. Matt M <notifications@github.com>
  85. 22:16 (1 hour ago)
  86. to tailsdotcom/tails, Subscribed
  87.  
  88. @zelane commented on this pull request.
  89.  
  90. In lib/shipment/shipment_helper.py:
  91.  
  92. > - '10': 1, #before 10 30
  93. - '12': 1, #before 12
  94. - '48': 2,
  95. - '72': 3,
  96. - 'packet': 3,
  97. - 'ISLE': 5}
  98. +# TODO: This could move to the CourierDeliveryService?
  99. +fulfilment_days = {
  100. + '24': 1,
  101. + '10': 1, # before 10 30
  102. + '12': 1, # before 12
  103. + '48': 2,
  104. + '72': 3,
  105. + 'packet': 3,
  106. + 'ISLE': 5,
  107. + 'international': 5
  108. the delivery range is arbitrary for now, to be finalised before any international shipments make it into the queue. It simply needs to be there before we can do an end to end test
  109.  
  110.  
  111.  
  112. Steve Webster <notifications@github.com>
  113. 22:20 (58 minutes ago)
  114. to tailsdotcom/tails, Subscribed
  115.  
  116. I've cleaned up this PR and left only comments relevant to the change and less on ways of working, which we'll tackle elsewhere. Please keep focussed on solving the issue here.
  117.  
  118.  
  119.  
  120. (▰˘◡˘▰) <notifications@github.com>
  121. 22:47 (31 minutes ago)
  122. to tailsdotcom/tails, Subscribed
  123.  
  124. and that is ok?
  125.  
  126.  
  127.  
  128. (▰˘◡˘▰) <notifications@github.com>
  129. 23:02 (16 minutes ago)
  130. to tailsdotcom/tails, Subscribed
  131.  
  132. I have cleaned up further! looking good!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement