-
Notifications
You must be signed in to change notification settings - Fork 14
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
Migracja na v2 GS1 API #3689
Migracja na v2 GS1 API #3689
Conversation
pwilkin
commented
Apr 17, 2024
- refactoring (uniezależnienie od stałych, zmiana struktur)
Stworzyłem prostą apkę, która ułatwia nam testowanie tego API: |
2aad8af
to
b23da06
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eh. To jest niepoprawione :/
LOGGER.info("Product missing. Creating a new product.") | ||
product = Product.objects.create( | ||
name=result_product.name, | ||
code=code, | ||
company=expected_company, | ||
brand=expected_brand, | ||
gpc_brick=GPCBrick.objects.get(code=result_product.gpc) if result_product.gpc else None, | ||
# TODO: co jesli jest wiecej niz jeden GPC? | ||
gpc_brick=GPCBrick.objects.get(code=result_product.gpc[0].code) if len(result_product.gpc) > 0 else None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Na początek myślę, że my możemy dodać logi z poziomem warning i spróbujemy obserwować, czy ta sytuacja się realnie zdarza.
* Ulepszenie komunikatow bledow podczas zbiorczego dodawania (#3729) * Dodaj Pola API Explorer (#3739) * Skasuj marki własne Lidl (#3740) * build(deps): bump the aws group with 2 updates (#3741) Bumps the aws group with 2 updates: [boto3](https://github.com/boto/boto3) and [botocore](https://github.com/boto/botocore). Updates `boto3` from 1.34.89 to 1.34.90 - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](boto/boto3@1.34.89...1.34.90) Updates `botocore` from 1.34.89 to 1.34.90 - [Changelog](https://github.com/boto/botocore/blob/develop/CHANGELOG.rst) - [Commits](boto/botocore@1.34.89...1.34.90) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: botocore dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump coverage from 7.4.4 to 7.5.0 (#3743) Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.4.4 to 7.5.0. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@7.4.4...7.5.0) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Migracja na v2 GS1 API (#3689) * Migracja na v2 GS1 API + refactoring (uniezależnienie od stałych, zmiana struktur) * Poprawki testów, refactoring wsparcia dla Minio * Usunięcie niewykorzystanych importów * Poprawki formatowania * Poprawki formatowania --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Ulepszenie komunikatow bledow podczas zbiorczego dodawania (#3729) * Dodaj Pola API Explorer (#3739) * Skasuj marki własne Lidl (#3740) * build(deps): bump the aws group with 2 updates (#3741) Bumps the aws group with 2 updates: [boto3](https://github.com/boto/boto3) and [botocore](https://github.com/boto/botocore). Updates `boto3` from 1.34.89 to 1.34.90 - [Release notes](https://github.com/boto/boto3/releases) - [Changelog](https://github.com/boto/boto3/blob/develop/CHANGELOG.rst) - [Commits](boto/boto3@1.34.89...1.34.90) Updates `botocore` from 1.34.89 to 1.34.90 - [Changelog](https://github.com/boto/botocore/blob/develop/CHANGELOG.rst) - [Commits](boto/botocore@1.34.89...1.34.90) --- updated-dependencies: - dependency-name: boto3 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws - dependency-name: botocore dependency-type: direct:production update-type: version-update:semver-patch dependency-group: aws ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * build(deps): bump coverage from 7.4.4 to 7.5.0 (#3743) Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.4.4 to 7.5.0. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@7.4.4...7.5.0) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Migracja na v2 GS1 API (#3689) * Migracja na v2 GS1 API + refactoring (uniezależnienie od stałych, zmiana struktur) * Poprawki testów, refactoring wsparcia dla Minio * Usunięcie niewykorzystanych importów * Poprawki formatowania * Poprawki formatowania * Brakująca konfiguracja dla test/prod (#3747) --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Kamil Breguła <mik-laj@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>