Commit Graph
609 Commits
Author SHA1 Message Date
Fredrik RingqvistandGitHub 31704892cf Delete redirects on active products for designer Kikki Belle (#504) 2025-09-19 14:10:26 +02:00
Arwid ThornströmandGitHub 81ff0845f3 remove non core languages on description categories (#502)
* remove non core languages on description categories

* fixes

* added safe again

* correct migration number
2025-09-08 08:36:12 +02:00
Fredrik RingqvistandGitHub 757329d328 Remove product redirect (#503) 2025-09-04 09:04:21 +02:00
Fredrik RingqvistandGitHub 667adb5324 Create nshift_shipments_status table, and v_funnel_nshift_shipments view (#498) 2025-09-02 13:11:11 +02:00
Arwid ThornströmandGitHub 42a3fa9c54 more rooms (#497) 2025-08-21 15:19:55 +02:00
Rikard BartholfandGitHub 3ab90f25b3 Add "product-products".is_ai_generated (#495)
* Add "product-products".is_ai_generated

* Add v_analytics_products.is_ai_generated

* Bump migration version

* Cleanup
2025-08-21 11:09:06 +02:00
Arwid ThornströmandGitHub 622c60d1a5 put new rooms live (#496)
* put new rooms live

* moved
2025-08-21 09:43:43 +02:00
Anders GustafssonandGitHub 047fd068c4 7809 - add ail config table (#492) 2025-08-20 13:41:47 +02:00
Arwid ThornströmandGitHub f1744fb268 Redo the descriptions in product_descriptions_updated table with correct week updated dates (#494)
* Ai generated with scripts, tested.

* change so we dont truncate and insert

* rename file
2025-08-19 11:40:06 +02:00
Arwid ThornströmandGitHub 714cbc3226 added more rooms (#493) 2025-08-14 14:15:37 +02:00
Arwid ThornströmandGitHub 9cf512a805 added query (#491)
* added query

* rename correctly
2025-08-13 12:19:29 +02:00
Rikard BartholfandGitHub 46513e5f40 Update vat for RO (#490)
* Update vat for RO

* Bump revision

* Cleanup
2025-08-05 15:01:45 +02:00
Fredrik RingqvistandGitHub 06c62279a2 Delete product redirect (#489) 2025-07-24 11:32:53 +02:00
Arwid ThornströmandGitHub 268b8dc33b delete producttitles and report back (#487)
* delete producttitles and report back

* move file to correct migration number
2025-06-27 10:14:52 +02:00
Fredrik RingqvistandGitHub 6883dfe96e Change Canada DHL to Fedex (#488) 2025-06-25 10:36:38 +02:00
Rikard BartholfandGitHub 754f45162c Add v_funnel_order_rows.external_product_id (#486)
* Add v_funnel_order_rows.external_product_id

* Bump migration version
2025-06-23 10:56:39 +02:00
Arwid Thornström ce11d77916 fixed faulty migration from 7500 2025-06-12 12:48:02 +02:00
Arwid ThornströmandGitHub 5507f7d9fa added room migration (#484)
* added room migration

* updated migration

* remove poi

* correct migration number
2025-06-12 12:45:01 +02:00
Arwid ThornströmandGitHub 757639a77e drop poi (#485) 2025-06-12 11:56:55 +02:00
Rikard BartholfandGitHub 72aab215ff Add v_funnel_discounts.discount_usage_type (#480)
* Add v_funnel_discounts.discount_usage_type

* Bump revision before release
2025-06-03 12:45:12 +02:00
Arwid ThornströmandGitHub 3a90bb553c 7224 build system in photowall repo and admin to handle generating product descriptions in different languages with gemeni ai and specialized prompt (#482)
* add product description tracking table

* added description tracking table

* create product_description_updated table

* updated with indexes

* fixed table with indexes

* fix

* correct migration number
2025-05-27 13:30:50 +02:00
Fredrik RingqvistandGitHub b8dc28e8d5 nshift_events table (#481) 2025-05-23 14:55:51 +02:00
Rikard BartholfandGitHub 9f54d2fc0d Create type discount_usage (#476)
* Create type discount_usage

* Add discount_codes.discount_usage_type

* Fix SQL

* Make query idempotent

* Bump revision
2025-05-15 11:09:39 +02:00
Fredrik RingqvistandGitHub fe837db359 Hide 3609 products (#479) 2025-05-14 16:33:17 +02:00
Arwid ThornströmandGitHub b7441d557d added update file (#478)
* added update file

* moved
2025-05-14 09:16:25 +02:00
Rikard BartholfandGitHub cf2d2e7320 Add inquiries.data (#475)
* Add inquiries.data

* Bump revision

* Fix confdlicts

* Bump revision
2025-05-08 15:11:59 +02:00
Arwid ThornströmandGitHub bc94940403 added poi columns to rooms table (#477) 2025-05-08 11:15:34 +02:00
Arwid ThornströmandGitHub 786159432b Update living room french name (#474) 2025-04-23 09:46:03 +02:00
Fredrik RingqvistandGitHub be7583787a Adjust or remove deprecated discount filters (#473) 2025-04-17 11:26:23 +02:00
Fredrik RingqvistandGitHub cf7a90a7d4 Delete a product redirect (#472) 2025-04-17 10:37:08 +02:00
Rikard BartholfandGitHub 2a3b6a0351 Add v_analytics_products.repeating_pattern (#471)
* Add v_analytics_products.repeating_pattern

* Bump migration version before release
2025-04-14 11:57:45 +02:00
Arwid ThornströmandGitHub 41694b7c32 added temporary category updated table (#468)
* added temporary category updated table

* added more

* added keyword columns

* correct migration number

* updated from feedback
2025-04-03 11:22:42 +02:00
Arwid ThornströmandGitHub 32034180f0 added new funnel for collections (#469)
* added new funnel for collections

* changed to interger

* renamed to correct migration number
2025-03-19 13:47:35 +01:00
Fredrik RingqvistandGitHub 5b2ead7688 Change AU VAT to 10% (#467) 2025-03-13 14:47:59 +01:00
Rikard BartholfandGitHub e2c208d2e3 7105 adjust discount fields in v funnel order rows for refund orders (#465)
* WIP

* WIP - Initial scaffolding

* Apply logic for v_funnel_order_rows2.discount

* WIP

* Calculate repay factor for _cc and _code

* Cleanup

* Remove refunded_order_row_id used for testing

* discount_sale is a negative figure

* Remove unused file

* Bump revision prior release
2025-03-10 09:15:36 +01:00
Rikard BartholfandGitHub 9dee3d1f3c Delete redundant discount data from order_rows (#466)
* Delete redundant discount data from order_rows

* Bump revision prior release
2025-03-10 09:04:10 +01:00
Arwid ThornströmandGitHub 3230d31134 Added ref4 (#463)
* Added ref4

* moved file to correct migration number
2025-02-21 10:22:34 +01:00
Rikard BartholfandGitHub b158885fb9 Replace interior_primary with interior_primary_uri (#464)
* Replace interior_primary with interior_primary_uri

* Simplify query

* Bump revision prior release
2025-02-20 14:47:50 +01:00
Rikard BartholfandGitHub f63292252d Display first interior image for each entry in v_analytics_products (#460)
* Display first interior image for each entry in v_analytics_products

* Only fetch wallpaper interiors

* Grant SELECT for funnel

* Bump migration version prior release
2025-02-14 15:19:36 +01:00
57f28c3582 7053 ensure discount fields are as we want them for refund rows (#457)
* Initial commit

* WIP

* Cleanup

* Cleanup

* move

* moved back

* Refactor query

* Do not handle specific discounts for refund rows

* Make SELECT CASE handling more consise

* Bump migration version before release

---------

Co-authored-by: Arwid Thornström <arwidt@gmail.com>
2025-02-10 09:47:19 +01:00
Arwid ThornströmandGitHub a12e60368a create sales table (#458)
* create sales table

* moved

* moved file

* fixed from feedback

* fixed

* must be unique

* move file
2025-02-06 10:40:45 +01:00
Rikard BartholfandGitHub 44e974b718 Update v_analytics_contract_customer_discounts (#459)
* Initial commit

* Rename view

* Bump migration version
2025-02-05 17:06:11 +01:00
Rikard BartholfandGitHub ceee950346 Add v_analytics_orders_rows_not_delivered_with_paint (#453)
* Add v_analytics_orders_rows_not_delivered_with_paint

* WIP

* Include paint in v_analytics_orders_rows_not_delivered_with_paint

* Handle paint in view

* Remove redundant file and grant for datastudio

* Add "stock" as product_group for stock products

* Bump migration version
2025-01-31 13:35:48 +01:00
Fredrik RingqvistandGitHub 554d0d12c0 Move and tag products to new designer PW (#456) 2025-01-30 12:51:17 +01:00
Arwid ThornströmandGitHub a20ea008e8 update path and username on pwb user (#454)
* update path and username on pwb user

* moved file
2025-01-28 12:53:59 +01:00
Rikard BartholfandGitHub e048dcf5a7 Fix null values for discounts (#455) 2025-01-28 10:40:30 +01:00
Rikard BartholfandGitHub 32a5f9ae18 Add v_funnel_order_rows.{paint_name, paint_liters, paint_ncs} (#452)
* Add v_funnel_order_rows.{paint_name, paint_liters, paint_ncs}

* Grant SELECT on v_funnel_order_rows for funnel

* Use paint_id for product_id if exists

* Bump migration version
2025-01-17 15:18:46 +01:00
Rikard BartholfandGitHub 0def5d6244 Add discount data to v_funnel_order_rows (#429)
* Initial scaffolding

* Add discount data to v_funnel_order_rows

* Display discounts for each row where applicable

* Get discount/sales info from subquery instead

* Use generated view to simplify diff

* Try another approach

* Use inline queries to get discount data

* Re-add lost printId to view

* Re-add v_funnel_order_rows.discount

* Remove dead code

* Grant SELECT for funnel on v_funnel_order_rows

* Disregard discount calculations for refunded order rows

* Bump migration version
2025-01-17 10:18:50 +01:00
Fredrik RingqvistandGitHub f5a0bd9a30 Revert to previous version of v_funnel_orders (#451) 2025-01-10 12:58:45 +01:00
Arwid ThornströmandGitHub 0e1b653517 added custom ncs color (#450)
* added custom ncs color

* moved file
2025-01-07 14:34:01 +01:00