-
Notifications
You must be signed in to change notification settings - Fork 86
Continue product migration doc (4.6) #2181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I have script to automatically test that the examples works. This is also to test that they are working that I chained the examples by using what they create in cascade. This is while trying to add deletion migration files to be able to run the test several times on the same DB that I found out the bug with variant product codes IBX-6840. #!/usr/bin/env zsh
DXP_DIR=~/www/ddev-ibexa-tmp
DOC_DIR=~/www/developer-documentation
set +x
cd $DXP_DIR
files=(
create_attribute_group.yaml
update_attribute.yaml # Always OK as criteria found nothing to work on
create_product_type.yaml
create_product_variant.yaml
create_customer_group.yaml
create_product_price.yaml
create_product_asset.yaml
#delete_product.yaml
#delete_product_type.yaml
#delete_attribute_group.yaml
)
# image file for create_product_asset.yaml
curl -o top_hat_58cm_black.jpg "https://upload.wikimedia.org/wikipedia/commons/c/c6/Museo_del_Bicentenario_-_Galera_de_Roberto_M._Ortiz.jpg"
for file in "${files[@]}"; do
cp -v $DOC_DIR/code_samples/data_migration/examples/$file ./src/Migrations/Ibexa/migrations/
done
function join_by {
local d=${1-} f=${2-}
if shift 2; then
printf %s "$f" "${@/#/$d}"
fi
}
in="('$(join_by "', '" $files)')"
ddev mysql -v -e "DELETE FROM ibexa_migrations WHERE name IN $in;"
for file in "${files[@]}"; do
ddev php bin/console ibexa:migrations:migrate -v --file=$file
done
|
adriendupuis
commented
Oct 19, 2023
adriendupuis
commented
Oct 23, 2023
dabrt
reviewed
Nov 6, 2023
MagdalenaZuba
approved these changes
Nov 8, 2023
5dee2bd
to
9817992
Compare
julitafalcondusza
approved these changes
Dec 22, 2023
adriendupuis
added a commit
that referenced
this pull request
Jan 23, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
product_variant
ibexa/product-catalog#1050product_asset
ibexa/product-catalog#1051Link examples with each others
On a
ibexa/commerce:4.6.x-dev
clean install, the following migration files can be chained in this order:TODO
Checklist