-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTODO.txt
More file actions
104 lines (78 loc) · 2.57 KB
/
Copy pathTODO.txt
File metadata and controls
104 lines (78 loc) · 2.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
Code CleanUp
- shopify.py -> send_graphql_mutation
- databse.py -> code review
Coding Work
Architectural Problem
Implements a Workers Pool : Done
Deployment
Security
- DB RLS
- Server Login Security
- Server Deep Security Analysis
- Server Ports Security :Done
Dockerize Project
- Volumes for permanent logs :Done
Server Management
- Health Measures :Done
CI/CD
- Jenkins :Rejected
- Github Actions : Done
SyncProducts
inventoryQuantities in shopify must be dynamic
createProduct
- add Parent Shopify Product in DB
removeProduct
- status -> Draft
- title += Deleted
- handle += current date & time
- remove entries from DB
updateProduct
- if no entry in DB
- just call createProduct
- with settings according to ui
- check is_valid for update
fetch its discount % && variants count
- verify variant_counts
-if not match from previous
- clear variants entries
- add variants entries from fetched Parent Shopify product
1st way
- delete product
- create new
2nd way
- try to update the previous child Shopify product
- Sync
- get product from ParentShopify
-if child_id exist:
- develop update product mutation & add in child Shopify
- Align with UI defined Rules
- handle error ( - call deleteProduct )
-if child_id didnt exist:
- develop create product mutation & add in child Shopify
- add entries in DataBase
- add sales Channel in ChildStore products
SyncOrder
line_items not present in DB
draft-order -> Actual Order
Collection & Products Group Create
UserInterface
- Enable/Disable Product Sync
- Discount % and base Price
- productOption to sync -> Price, Tags, Images, Description, Status
- reSync option for products
Implements UI Selection in Code
- Defaults while adding product
Sometimes - Cant handle new variant added
if child_variant_count != parent_variant_count
- delete & create new product
Async All functions
try-except block addition
# Testing
OrderSyncVerification
- Create new Customer in B2B - store
- Only email
- Only Phone number
- With Both
- Place Order using it
- Place another order
ProductSyncVerification