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

feat: implement real multi-platform support (OFF, OBF,...) #1083

Merged
merged 5 commits into from
Apr 13, 2023

Conversation

raphael0202
Copy link
Collaborator

@raphael0202 raphael0202 commented Apr 10, 2023

  • delete server_domain in image, product_insight and prediction tables
  • add server_type field to image and prediction tables
  • use ProductIdentifier (barcode + server_type) instead of barcode
    in codebase

See #894

@codecov
Copy link

codecov bot commented Apr 10, 2023

Codecov Report

Merging #1083 (f5fa671) into master (3a5f9ab) will increase coverage by 2.66%.
The diff coverage is 51.42%.

@@            Coverage Diff             @@
##           master    #1083      +/-   ##
==========================================
+ Coverage   53.06%   55.73%   +2.66%     
==========================================
  Files          93       88       -5     
  Lines        7076     8089    +1013     
==========================================
+ Hits         3755     4508     +753     
- Misses       3321     3581     +260     
Impacted Files Coverage Δ
robotoff/__main__.py 0.00% <0.00%> (ø)
robotoff/cli/file.py 0.00% <0.00%> (ø)
robotoff/cli/insights.py 0.00% <0.00%> (ø)
robotoff/cli/logos.py 0.00% <0.00%> (ø)
robotoff/health.py 0.00% <0.00%> (ø)
...tion/object_detection/utils/visualization_utils.py 19.20% <0.00%> (ø)
robotoff/prediction/ocr/core.py 40.27% <ø> (+7.82%) ⬆️
robotoff/prediction/ocr/dataclass.py 61.04% <ø> (+9.55%) ⬆️
robotoff/prediction/ocr/expiration_date.py 23.68% <ø> (-2.04%) ⬇️
robotoff/prediction/ocr/grammar.py 22.72% <ø> (ø)
... and 75 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@raphael0202 raphael0202 changed the title fix: remove server_domain in image, product_insight and prediction tables feat: implement real multi-platform support (OFF, OBF,...) Apr 12, 2023
- delete server_domain in image, product_insight and prediction tables
- add server_type field to image and prediction tables
- use ProductIdentifier (barcode + server_type) instead of barcode
  in codebase

See #894
@sonarcloud
Copy link

sonarcloud bot commented Apr 13, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot E 13 Security Hotspots
Code Smell A 176 Code Smells

0.0% 0.0% Coverage
2.8% 2.8% Duplication

@raphael0202 raphael0202 merged commit a211249 into master Apr 13, 2023
@raphael0202 raphael0202 deleted the remove-server-domain branch April 13, 2023 04:12
@alexgarel
Copy link
Member

@raphael0202 BTW I did go through half of this PR but didn't have any comment… (and it was very boring to review 😄)

Only worry on my side: you introduced new variables but did not add them in deployment workflow. Is it because you have sensible defaults ?

@raphael0202
Copy link
Collaborator Author

I understand that, it was quite boring for me as well to implement 😅
About the variables:

  • ROBOTOFF_DOMAIN became ROBOTOFF_TLD, container-deploy.yml was updated accordingly
  • ENABLE_PRODUCT_CHECK as sensible default
  • STATIC_OFF_DOMAIN was renamed into STATIC_DOMAIN, and container-deploy.yml was renamed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants