Gaetan Craig-Riou
059e36318e
Add type to WebhookEnpoints
...
Add migration to update existing endpoint to "order_cycle_opened" type
2025-12-10 10:28:08 +11:00
Gaetan Craig-Riou
43cf6e4147
Per review, use string for group name
2025-12-01 09:58:53 +11:00
Gaetan Craig-Riou
1049ec277c
Add migration to enable the correct group and disable old ones
2025-11-28 10:21:32 +11:00
Gaetan Craig-Riou
172647f1cd
Rework group to enable variant tag and inventory
...
To make it easier to manage, enterprises with no inventory will have
variant tag enabled, and enterprises with inventory will have inventory
enabled.
Add migration to disable old group and enabled new group
2025-11-26 13:29:40 +11:00
Gaetan Craig-Riou
28af42371b
Add migration to turn varian tags on
2025-11-18 14:07:59 +11:00
Gaetan Craig-Riou
3e8a34c5f3
Per dicussion, remove super admin from migration
2025-11-10 11:14:56 +11:00
Gaetan Craig-Riou
1101310845
Enable variant_tag for recent enterprise and admins
...
Recent entperise are enterprise created after 11th of August which
should not have access to inventory
2025-11-10 11:14:56 +11:00
Ahmed Ejaz
b510736a8d
refactor migration to use SpreePayment model instead of Spree::Payment
2025-09-22 11:55:43 +05:00
Ahmed Ejaz
ca079e6e26
add migration to migrate cvv_message_response value to redirect_auth_url
...
- As per the patch, cvv_message_response contains 3D verification URL for those payments which require it. So need to migrate to the new column to maintain data integrity
2025-09-22 11:55:43 +05:00
Ahmed Ejaz
626b802ea7
add redirect_auth_url column and replace cvv_response_message for redirection
...
- Added redirect_auth_url column to spree_payments table
- Updated payment redirection logic to use redirect_auth_url instead of cvv_response_message
- Cleans up old monkeypatch usage and improves Stripe checkout reliability
2025-09-22 11:54:20 +05:00
Maikel Linke
c26686b430
Add DfcPermission model to persist granted scopes
2025-08-08 14:00:38 +10:00
Filipe
76aebf8a72
Merge pull request #13436 from chahmedejaz/task/13432-decommission-old-products-screen
...
Decommission Old Products UI and Related Code
2025-08-07 17:39:43 +02:00
Maikel Linke
d469552afc
Fix schema version
2025-08-07 10:13:14 +10:00
David Cook
b8546db1e5
Update date for 11th Aug
2025-07-28 11:43:31 +10:00
Ahmed Ejaz
1717c5376b
Remove deprecated migrations for admin style v3 activation
2025-07-27 07:11:07 +05:00
Maikel Linke
45a0705379
Disable inventory only for future enterprises
2025-07-24 13:00:14 +10:00
Gaetan Craig-Riou
70757ccdef
Add migration to enable inventory for existing Enterprises
2025-07-09 13:48:53 +10:00
cyrillefr
6f9a347b77
Add modified schema
2025-05-29 15:12:13 +10:00
cyrillefr
774aaf4fd8
Fixes Rails/UniqueValidationWithoutIndex (part of #11482 )
...
- When you define a uniqueness validation in Active Record model,
you also should add a unique index for the column.
- Cf. https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsuniquevalidationwithoutindex
- Therefore : migration files to match DB structure and Ruby code.
2025-05-29 15:11:17 +10:00
Ahmed Ejaz
d12455ccbe
update schema
2025-04-13 21:45:04 +05:00
Ahmed Ejaz
93fb3fd7d9
add enterprise producers_to_edit_orders setting
2025-04-13 21:35:55 +05:00
David Cook
f3cec40322
Remove accidental line from schema
...
This was accidentally included in merged PR #13192 but is due to be added in unmerged PR #13113
I rectified this in my dev env and regenerated schema to ensure it was correct (I didn't manually edit it).
2025-04-11 11:09:28 +10:00
David Cook
4402854a2a
AddEnableProducersToEditOrdersToEnterprises
...
With system spec for setting the preference. The enterprise edit page seems under-tested..
2025-03-31 16:16:27 +11:00
Filipe
54fad01a91
Merge pull request #13104 from mkllnk/test-seeds
...
Remove unused preference default_country_id
2025-01-30 21:59:46 -06:00
Filipe
32c4b4557b
Merge pull request #13086 from rioug/fix-tax-rate-refund
...
Remove tax rate refund code path
2025-01-30 21:54:30 -06:00
Filipe
e2161660b3
Merge pull request #13090 from mkllnk/replace-spree-roles
...
Replace spree roles
2025-01-30 21:30:56 -06:00
Maikel Linke
6885184bcc
Remove unused preference default_country_id
2025-01-28 16:31:45 +11:00
Maikel Linke
1a393592b4
Reduce database writes seeding zones
2025-01-28 15:47:32 +11:00
Gaetan Craig-Riou
c4d74ac10d
Apply Rubocop linting
2025-01-27 11:03:54 +11:00
Gaetan Craig-Riou
6ef73acfcd
Fix seeding file for Spree::Zones
2025-01-27 11:03:48 +11:00
Konrad
01036e6321
Merge pull request #13087 from mkllnk/stock-location
...
Remove class Spree::StockLocation
2025-01-25 12:41:37 +01:00
Maikel Linke
7b8b7b6bbc
Satisfy Rubocop on new migrations
2025-01-23 08:39:40 +11:00
Maikel Linke
d49cea5e3d
Use admin flag instead of user role
2025-01-22 14:59:49 +11:00
Maikel Linke
920002e084
Copy admin attribute to users
2025-01-22 14:05:50 +11:00
Maikel Linke
698d1daa57
Add admin attribute to users
2025-01-22 14:05:23 +11:00
Maikel Linke
64608beaa8
Remove DefaultStockLocation created in setup
2025-01-22 12:01:57 +11:00
Maikel Linke
c27aa00bed
Make old migration independent of app code
2025-01-22 11:25:58 +11:00
Maikel Linke
248110cfb3
Make stock location association optional
...
Prepare for removal
2025-01-22 11:20:04 +11:00
Maikel Linke
cf35e48d14
Remove unused app config options
...
This has been defined in ENV for a while
2025-01-21 20:11:05 +01:00
Maikel Linke
fcc31fffcd
Fix user seeding
2025-01-21 11:21:08 +11:00
Maikel Linke
8c68179069
Style default user creation
2025-01-21 11:19:57 +11:00
Maikel Linke
042cc238c8
Modernise db default scripts
2025-01-21 11:17:31 +11:00
Maikel Linke
25a90a44f9
Modernise seeds file
2025-01-21 11:17:29 +11:00
Filipe
3c1dd10219
Merge pull request #13047 from mkllnk/spree-roles
...
Clarify that our only user role is "admin" and simplify code
2025-01-16 18:06:49 -06:00
Gaetan Craig-Riou
600195a726
Allow null for customers.created_manually
...
Some production database don't allow null for customers.created_maually,
we want to allow it to bring the database inline with schema.rb
2025-01-14 12:10:22 +11:00
Gaetan Craig-Riou
e2e12ccb52
Remove spree_variants default value and constraint
...
Some of the production database have default value for `weight` and
`unit_value` has well as check constraint. We want to remove them to
bring the database schema inline with schema.rb
2025-01-14 12:09:40 +11:00
François Turbelin
772f1f8fde
Add external_billing_id field on enterprises table
2025-01-13 16:54:17 +01:00
Maikel Linke
a7140d1f60
Use only admin role, on demand
...
We are now creating the role on demand which removes the need for
seeding it as well.
2024-12-19 09:02:04 +11:00
Maikel Linke
a529d95fc5
Remove unused user role from seeding
...
We only ever check for the admin role.
2024-12-19 08:54:39 +11:00
Gaetan Craig-Riou
a2c4c44eea
Move Vine voucher to Vouchers::Vine
...
A Vine voucher is really a specific type of FlatRate voucher but because
a Vine voucher can be used by mutiple enterprise, it can be considered
different enough to warrant it's own class.
It still share a lot of the behaviour of a FlatRate voucher, so to avoid
duplication, all the shared functionality have been moved to a
Vouchers::FlatRatable concern.
2024-11-28 13:35:01 +01:00