Sylius/features
Jacob Tobiasz e63ef1d443
feature #14994 [Products][Taxon] Allowing deleting a taxon that is a main taxon of a product (Rafikooo)
This PR was merged into the 1.13 branch.

Discussion
----------

 Q               | A                                                            |
|-----------------|--------------------------------------------------------------|
| Branch?         |  1.13 <!-- see the comment below -->                  |
| Bug fix?        | kind of                                                      |
| New feature?    | yes                                                       |
| BC breaks?      | no                                                      |
| Deprecations?   | no<!-- don't forget to update the UPGRADE-*.md file --> |
| Related tickets | https://github.com/Sylius/Sylius/pull/14791  |
| License         | MIT                                                          |


This PR changes (or more accurately unifies) the way we can delete taxon in Sylius.
Previously, we could delete a taxon that is not `main_taxon` for any product, and we could not delete a taxon in the opposite case.

This PR allows us to remove taxon that is `main_taxon` for some product by setting the relationship to `NULL`.

Alternatively, we could prevent the deletion of taxon in both cases. Let's bring this up for discussion 💬 

Commits
-------
  [Feature] Add deleting a taxon that is a main taxon of a product scenario
  [API][Behat][Taxon] Add step implementation
  Revert "[Behat] Describe scenario for messing up products assignments after trying to delete taxon
  [Behat][UI] Change isMainTaxonChosen method name
  [UI][Behat][Taxon] Add step implementation
  [Products] Add ON DELETE SET NULL to the Product mainTaxon field mapping
  [Migrations] Alter the product table
2023-05-12 20:58:36 +02:00
..
account Cover editing customer profile scenarios in API 2023-05-05 11:04:14 +02:00
addressing [Behat] Unify saving step naming 2023-03-16 16:44:05 +01:00
admin Merge branch '1.12' into 1.13 2023-02-13 12:03:17 +01:00
cart [Order] Ensure correct item in post_add event 2023-03-15 17:23:02 +01:00
channel [PriceHistory][Behat] Update channel edition scenarios 2023-03-29 10:50:54 +02:00
checkout minor #15002 Cover product integrity scenarios in API (jakubtobiasz) 2023-05-02 10:53:03 +02:00
cli [maintenance]Prepare postgresql pipeline by making behat scenarios de-case-sensitive 2022-06-03 10:37:44 +02:00
contact transformer for logged in customers added 2022-06-01 14:44:33 +02:00
currency Cover handling different currencies on multiple channels via API scenarios 2023-04-15 10:31:42 +02:00
customer Add last fixes for test and implementation 2021-05-06 10:45:12 +02:00
homepage Cover viewing_only_enabled_taxons_in_taxon_menu.feature scenario 2023-05-10 12:18:43 +02:00
installer [Behat][Installation] Fix behats 2017-10-10 10:51:43 +02:00
inventory Improve displaying info about insufficient stock in the cart 2023-03-27 11:24:15 +02:00
locale [Locale][API] Additional locale code validation 2023-03-24 15:39:56 +01:00
order/managing_orders Merge branch '1.11' into 1.12 2023-01-31 16:10:45 +01:00
payment Describe redirect issue with the Behat scenario 2022-07-21 16:53:28 +02:00
product Merge branch '1.12' into 1.13 2023-05-04 13:22:54 +02:00
promotion Merge branch 1.12 into 1.13 2023-04-27 08:46:59 +02:00
shipping [Behat][Admin] Describe how the channel validation indicators work 2022-07-19 12:38:18 +02:00
taxation Cover applying correct taxes for shipping with tax rate included in price scenarios 2023-04-19 06:45:49 +02:00
taxonomy/managing_taxons [UI][Behat][Taxon] Add step implementation 2023-05-10 08:34:37 +02:00
user [Behat] Filtering customers by groups scenarios 2022-11-17 13:07:16 +01:00