-
Notifications
You must be signed in to change notification settings - Fork 518
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20207 from akeneo/backport-20230824
Backport 20230824
- Loading branch information
Showing
1,185 changed files
with
19,083 additions
and
4,589 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eu | ||
|
||
git remote add pim-enterprise-dev [email protected]:akeneo/pim-enterprise-dev.git || true | ||
git fetch --all | ||
|
||
git cherry-pick --abort || true | ||
git reset --hard origin/master | ||
git clean -fd | ||
|
||
LAST_TAG=$(git show origin/master:last_backport.txt || echo "monorepo") | ||
DIRECTORIES=( | ||
frontend/build | ||
frontend/webpack | ||
components/identifier-generator | ||
src/Acme | ||
src/Akeneo | ||
src/Behat | ||
src/Oro | ||
front-packages/akeneo-design-system | ||
front-packages/shared | ||
upgrades/schema | ||
upgrades/test_schema | ||
tests | ||
) | ||
COMMITS=$(git log --reverse --first-parent --pretty=format:"%h" ${LAST_TAG}..pim-enterprise-dev/master ${DIRECTORIES[@]}) | ||
|
||
for commit in ${COMMITS[@]}; do | ||
message="$(git log --format=%s -n 1 ${commit})" | ||
author="$(git log --format='%an <%ae>' -n 1 ${commit})" | ||
date="$(git log --format='%ad' -n 1 ${commit})" | ||
|
||
echo ${commit} ${message} ${date} | ||
|
||
git cherry-pick --allow-empty -Xtheirs -Xfind-renames --no-commit -m 1 ${commit} || true | ||
git reset HEAD | ||
|
||
if [ -d "tests/community" ] | ||
then | ||
rsync -av tests/community/ tests/ | ||
rm -rf tests/enterprise/ tests/community/ | ||
fi | ||
|
||
find tests/ -type f -exec perl -pi -e "s#tests/community#tests#g" {} + | ||
sed -i 's#(string) new Path('"'"'tests'"'"', '"'"'community'"'"'#(string) new Path('"'"'tests'"'"'#' tests/back/Integration/IntegrationTestsBundle/Configuration/Catalog.php | ||
|
||
git add ${DIRECTORIES[@]} | ||
git checkout . | ||
git clean -fd | ||
git commit --allow-empty --message="${message}" --author="${author}" --date="${date}" | ||
done | ||
|
||
git log --first-parent pim-enterprise-dev/master --pretty=format:"%h" -n 1 > last_backport.txt | ||
git add last_backport.txt | ||
git commit -m "Updates last commit backported" |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
22 changes: 22 additions & 0 deletions
22
...entifier-generator/front/src/feature/components/__mocks__/IdentifierAttributeSelector.tsx
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import React from 'react'; | ||
import {AttributeCode} from '@akeneo-pim-community/structure'; | ||
|
||
type IdentifierAttributeSelector = { | ||
code: AttributeCode; | ||
onChange: (attributeCode: AttributeCode) => void; | ||
} | ||
|
||
const IdentifierAttributeSelector: React.FC<IdentifierAttributeSelector> = ({onChange}) => { | ||
const handleChange = () => { | ||
onChange('ean'); | ||
}; | ||
|
||
return ( | ||
<> | ||
IdentifierAttributeSelectorMock | ||
<button onClick={handleChange}>Change target</button> | ||
</> | ||
); | ||
}; | ||
|
||
export {IdentifierAttributeSelector}; |
Oops, something went wrong.