Skip to content
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

Merged
merged 5 commits into from
Apr 24, 2024
Merged

Migracja na v2 GS1 API #3689

merged 5 commits into from
Apr 24, 2024

Conversation

pwilkin
Copy link
Collaborator

@pwilkin pwilkin commented Apr 17, 2024

  • refactoring (uniezależnienie od stałych, zmiana struktur)

@mik-laj
Copy link
Member

mik-laj commented Apr 23, 2024

Stworzyłem prostą apkę, która ułatwia nam testowanie tego API:
https://pola-app-self-management.streamlit.app/
To możę ci pomóć w pracy trochę.

@pwilkin pwilkin force-pushed the piw-gs1v2api branch 2 times, most recently from 2aad8af to b23da06 Compare April 23, 2024 16:24
Copy link
Collaborator Author

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,
Copy link
Member

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.

@pwilkin pwilkin merged commit 744d649 into master Apr 24, 2024
9 checks passed
@pwilkin pwilkin deleted the piw-gs1v2api branch April 24, 2024 11:47
pwilkin added a commit that referenced this pull request Apr 24, 2024
* 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>
pwilkin added a commit that referenced this pull request Apr 24, 2024
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants