-
-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DFC Products] Ensure Product details are synced at correct intervals #12986
Comments
This comment has been minimized.
This comment has been minimized.
That makes sense, vaguely, but it's missing some details.
Estimate: 2 days |
Yes, that seems best for now... I'd like to get to a point where the product import/selection could be embedded in the OC setup process but we need the work on the import first & this is more urgent.
No, I think we can do a full refresh/update at that point.
Hmm, that's not ideal. Curse OFN & it's ridiculously adaptable model ! 😖 For now (current pilots) It won't be an issue (we're already having to set up multiple Enterprises to import Products into to handle different discount fees for Wholesale vs Retail products. Maybe (for now) we can add a warning to the (successful) Import splash screen to say "Don't use these Products in overlapping Order Cycles" or something similar. WDYT ?
🤔 Not sure it required that the URL necessarily changes, everytime the image is updated. |
Hi @RaggedStaff and Maikel. The first couple of points discussed seem clear so I've updated the description. Overlapping order cycles: that's a tricky one. I think the biggest problem is that we're doing something automatically, in the background, and there's no indication of this to the shop manager. Some ideas:
I think option 1 should be implemented as part of this issue. What do you think? Any suggestion for the email copy? Optimise image updating: good point about the URL not necessarily changing. Ideally I think the DFC should have an attribute for the hash of the file, so you can see if it's changed or not. Is that possible? Other thoughts:
This seems non-essential to this task, so perhaps we create separate issue for it. I'll make a start on the basic requirements. |
@mkllnk , while working through this in more detail I decided:
Would that be ok do you think? This might make more sense in (pseudo) code: dacook@bfb6b6a |
David and I just discussed that we'll keep the minimal possible scope and just check at the beginning of one order cycle if there's another one open already. And if so, we don't update the the product details. We'll wait for user input before deciding about sending emails in this case or sending general notifications on sync. We may as well find it's better to have a sync button on the order cycle edit page? @RaggedStaff |
That would be nice. We could add it to the standard but it'll take a while to be in production. And some implementations may not define that attribute either. So for now I propose to store the URL on the ActiveStorage::Blob as metadata (supported by Rails) and assume that the URL will change. At least for the current integration with Shopify that's true. And when an app comes along that doesn't change the URL when the image is updated then we can look at new solutions. But it will probably be easier for that app to add a timestamp to the URL as you suggested than computing a checksum. So after thinking this through, I would just say that the DFC requires the URL to change when the image changes. |
I started work on the image issue: |
Without knowing the context more, I think this sounds like it could be a reasonable alternative to it being automatic. |
Just discussed with Maikel, we think the automation is probably the end goal, given that the products should be considered a cache of the remote source of truth. So I'll proceed with that. |
Sorry folks, catching up on this. Yes, automation is the goal. If there aren't open OC's, could we also refresh when the products are added to an OC ? That might prevent confusion around "this product doesn't look up to date" or "I thought the price was still X, cos that's what it said when I put it in the OC" . I like the idea of a tooltip displaying the URI of the remote product (with an explanation 😉 ) |
That needs some UX consideration. Syncing the catalog can take several seconds. So it's probably not something we want to do on page load unless we have some clear messaging like a spinner: "Just a moment, we are syncing your product catalog." Or we come back to a button on that page. So if you think that the information is out of date then you can hit the Refresh product data button. I reckon that we add that as new issue to avoid the scope creep here. Would you like that? |
ℹ️ Funded Feature. Please track ALL ASSOCIATED WORK under the associated tracking code
#11678 DFC Orders
We need to ensure Product details are automatically updated when appropriate, and not when not appropriate.
There is an agreement within FDC that only Stock details will be updated within an Order Cycle (Sales Session).
All other details (image, description, title, etc) should be refreshed between OC's (potentially when setting up an OC and at the start of every OC)
Requirements
The text was updated successfully, but these errors were encountered: