Changes between Version 1 and Version 2 of Ticket #2716, comment 5


Ignore:
Timestamp:
7/31/2024 2:57:46 PM (2 years ago)
Author:
dbmubrett

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2716, comment 5

    v1 v2  
    11I've pushed the implementation for this onto a branch in gitlab: http://10.19.50.70:8080/Brett.Hunter/server/-/commit/f537d6debd08d23fe7bf4862eecdffbb3505b4ec
     2
     3
     4==== Cart Checkout Changes
     5
     6In addition to the `POST` endpoint, I've made some small changes to the checkout process for users that come from genesys via the `external-request` query param link:
     7
     8Before placing the order, I'm automatically prepending a special instruction note (also screenshot attached) so staff can have some contextual awareness in the CT that the order was placed via Genesys:
     9
     10> *** Originated as an external request from Genesys ***
    211
    312Marty pointed out that the accessions requested via genesys will sometimes have multiple associated inventory options. To account for this, I added a brief blurb in the shopping cart during the checkout process for these external orders (see attached screenshot also):
    … …  
    716I could use some feedback on the specific verbiage here. There's a relatively small number of accessions with multiple inventory available (~4% of accessions if I queried correctly) so I'm not inclined to add too much effort in this edge case unless someone thinks we need a more robust solution here (i.e., add an interface to the cart page to allow directly selecting inventory alternatives for each cart item).
    817
    9 Still TODO:
     18==== Schema Change
     19
     20This implementation includes a new table `web_order_request_external` that associates with `web_order_request_id` FK. This will allow us to persist the external request data and track which orders originate from genesys or any other external entity we ultimately enable. This uses a guid pk and I'd appreciate any feedback on the details here:
     21
     22
     23{{{
     24SET ANSI_NULLS ON
     25GO
     26
     27SET QUOTED_IDENTIFIER ON
     28GO
     29
     30CREATE TABLE [dbo].[web_order_request_external](
     31        [web_order_request_external_id] [uniqueidentifier] NOT NULL,
     32        [web_order_request_id] [int] NULL,
     33        [auth_key] [uniqueidentifier] NOT NULL,
     34        [schemaless_request_items] [nvarchar](max) NOT NULL,
     35        [schemaless_requestor_data] [nvarchar](max) NOT NULL,
     36        [created_date] [datetime2](7) NOT NULL,
     37 CONSTRAINT [PK_web_order_request_external] PRIMARY KEY NONCLUSTERED
     38(
     39        [web_order_request_external_id] ASC
     40)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, OPTIMIZE_FOR_SEQUENTIAL_KEY = OFF) ON [PRIMARY]
     41) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
     42GO
     43
     44ALTER TABLE [dbo].[web_order_request_external] ADD  CONSTRAINT [DF_web_order_request_external_web_order_request_external_id]  DEFAULT (newid()) FOR [web_order_request_external_id]
     45GO
     46
     47ALTER TABLE [dbo].[web_order_request_external]  WITH CHECK ADD  CONSTRAINT [FK_web_order_request_external_web_order_request_external] FOREIGN KEY([web_order_request_external_id])
     48REFERENCES [dbo].[web_order_request_external] ([web_order_request_external_id])
     49GO
     50
     51ALTER TABLE [dbo].[web_order_request_external] CHECK CONSTRAINT [FK_web_order_request_external_web_order_request_external]
     52GO
     53}}}
     54
     55
     56==== Still TODO:
    1057
    1158* Share the swagger yaml (attached) with Matija for feedback.