Matt-Yorkley
0dbbd5ed3b
Migrate primary taxon id from products to variants
2024-04-02 09:27:36 +11:00
Matt-Yorkley
3a38eeb248
Remove products taxon null constraint
2024-04-02 09:27:36 +11:00
Matt-Yorkley
2ef266390d
Move primary taxon to variant
2024-04-02 09:27:36 +11:00
Maikel Linke
d47d3eba8f
Add SemanticLink model for variants
...
We want to link variants/products to external DFC SuppliedProducts to
trigger supplier orders when local stock is exhausted. This is the first
step to enable the link.
2024-03-15 16:46:41 +11:00
Maikel Linke
6c0d15b6f9
Migrate existing OIDC account data
2024-02-22 10:15:07 +11:00
Maikel Linke
b4ee24368c
Add model for OIDC accounts
...
The provider name and uid are currently stored on the user model but
it's better to move them to their own table. They are only needed in
certain situations, only some users have an account and we are now
storing a lot more.
2024-02-22 10:15:07 +11:00
David Cook
a005069394
Merge pull request #12041 from mkllnk/migrations
...
Remove migrations with faulty ids
2024-01-25 17:29:23 +11:00
Gaetan Craig-Riou
8013fac5b8
Per review, match on the product type URI instead of name
...
Fox export only
2024-01-22 10:12:39 +11:00
Gaetan Craig-Riou
652c7a563c
Add dfc_name field on Spree::Taxons
...
This will let us map OFN product taxons to DFC product types
2024-01-22 10:02:10 +11:00
Maikel Linke
dc411eb42b
Remove migrations with bad ids
...
We could rename them later but we don't want them to be executed under
their new name. So we need to deploy the version rename in the database
first.
2024-01-15 14:36:23 +11:00
Gaetan Craig-Riou
17fa6b6168
Per review, revert change
2023-12-22 13:20:14 +01:00
Gaetan Craig-Riou
f643ba5074
Update only User who are enterprise owner
2023-12-22 13:20:14 +01:00
Gaetan Craig-Riou
d2b210c818
Update migration to set terms_of_service_accepted_at to time of deployment
2023-12-22 13:20:14 +01:00
Gaetan Craig-Riou
16cb72adbc
Add terms_of_service_accepted_at to spree_user
...
It will be used to track when a user has accepted changed to ToS
2023-12-22 13:20:14 +01:00
Maikel Linke
2346f03b6f
Add ConnectedApp model
2023-12-15 11:50:04 +11:00
Maikel Linke
f28a8c87ab
Activate background report processing by default
...
Many report specs are still testing the old behaviour. We need to
migrate them to background reports. Some tests may be better as unit
tests instead of system tests.
2023-12-01 14:44:33 +11:00
Maikel
7919329651
Update db/migrate/20231118125941_activate_voucher_by_default.rb
2023-11-20 09:31:50 +11:00
Ahmed Ejaz
e370693309
#11827 , fully enable vouchers by default
2023-11-18 18:05:45 +05:00
Neal Chambers
085d0f27f7
Move Timestamp Generation into its own Method
2023-10-06 11:19:31 +09:00
Neal Chambers
f02da9f59e
Update schema.rb with new Foreign Keys
2023-10-06 11:06:54 +09:00
Neal Chambers
fd8e94cb50
Update Migrations to Include Commented-Out Orphaned Record Query
2023-10-06 11:06:54 +09:00
Neal Chambers
800d50d732
Add Foreign Key Column to Migrations
2023-10-06 11:06:54 +09:00
Neal Chambers
72e75c0e2d
Remove Delete on Cascade from Migrations
2023-10-06 11:06:54 +09:00
Neal Chambers
3590da6106
Remove Old Migrations
2023-10-06 11:06:54 +09:00
Neal Chambers
78cb4c6adc
Add migrations to add foreign keys to database
2023-10-06 11:06:54 +09:00
Matt-Yorkley
e3c488306c
Migrate data for shipping_category_id
2023-08-14 21:02:47 +01:00
Matt-Yorkley
e2caebc374
Add shipping_category to variants table
2023-08-14 21:00:02 +01:00
Konrad
99daab07b7
Merge pull request #11297 from mkllnk/require-belongs-to--part2
...
Require belongs_to associations by default
2023-08-12 17:09:03 +02:00
Gaetan Craig-Riou
204f3933d0
Refactor voucher: 1 base voucher class
...
Refactor voucher to use a single table inheritance. It will simplify the
code and remove a bunch of conditional
2023-08-11 14:54:23 +10:00
Gaetan Craig-Riou
619285ad4a
Add voucher_type to voucher
...
And update related specs
voucher_type doesn't do anything for now.
2023-08-11 14:19:25 +10:00
Maikel Linke
070d1e722e
Require EnterpriseRole.belongs_to by default
2023-08-11 10:14:14 +10:00
Maikel Linke
4dd2955400
Require EnterpriseRelationshipPermission.belongs_to by default
...
I had to change some specs to keep them simple but I don't think
anything is broken. In one case, it would have needed a lot more setup
to make the spec work. But in production, the permissions are never used
with ModelSet, for example.
2023-08-11 10:13:48 +10:00
Maikel Linke
cb494b84f2
Require EnterpriseRelationship.belongs_to by default
2023-08-11 10:13:29 +10:00
Maikel Linke
13b2f37884
Require EnterpriseFee.belongs_to by default
2023-08-11 10:13:09 +10:00
Matt-Yorkley
f19d66f4d6
Drop unused tables
2023-08-10 12:27:31 +01:00
Matt-Yorkley
b82f368bec
Drop :is_master column from variants table
2023-08-10 12:25:18 +01:00
Matt-Yorkley
5c0329ce17
Drop option_types and option_values tables
2023-08-10 11:52:10 +10:00
Matt-Yorkley
e65efe0f85
Remove unused variant :position attribute
2023-08-09 18:24:46 +01:00
David Cook
1706b8b4bc
fixup: Drop spree_products_taxons join table
...
Make it reversible for dev or staging.
2023-08-08 11:36:31 +01:00
Matt-Yorkley
3d83ca01f7
Drop spree_products_taxons join table
2023-08-08 11:36:31 +01:00
Gaetan Craig-Riou
430aa685ce
Merge pull request #11321 from mkllnk/dev-user-valid
...
Skip online domain validation of dev user email
2023-08-07 11:27:31 +10:00
Maikel Linke
c8511ecd0d
Remove superfluous line
...
The `<<` operation saves the association already.
2023-08-03 10:26:59 +10:00
Maikel Linke
6056c59301
Skip online domain validation of dev user email
...
We improved the email address validation to check the domain for
existing DNS entries. But our default user has the example.com domain
which is not resolved by my internet service provider.
I couldn't find a better way to deactivate this one check than
overriding the method in the validator. The code does not affect other
parts of the app unless you run multiple rake tasks in the same command
line with the database setup.
2023-08-03 10:22:00 +10:00
Matt-Yorkley
64b29d40a8
Migrate data for tax_category_id from products to variants
2023-07-31 09:23:40 +10:00
Matt-Yorkley
b12c130e02
Add tax_category column to variants table
2023-07-31 09:23:20 +10:00
Jean-Baptiste Bellet
7aed068bb7
Enterprises.visible attribute is set to only_through_links by default
...
+ update enterprise_factory.rb to create "public" enterprise through specs via its factory
2023-07-25 10:57:26 +02:00
Mohamed ABDELLANI
4b003aa08b
replace status:status with cancelled:boolean on invoice model
2023-07-11 09:15:25 +01:00
David Cook
b6d10df332
DropSpreePromotionTables
2023-07-10 10:51:44 +10:00
Matt-Yorkley
bbf53133cb
Add timestamps to variants table
2023-07-06 16:16:03 +01:00
Matt-Yorkley
42a3087cdb
Remove :available_on attribute from Product class
2023-07-06 14:36:35 +01:00