Skip to content

286344: Add Deduplication Engine integration and related functionality#334

Open
arsen-vs wants to merge 1 commit intodevelopfrom
feature/286344
Open

286344: Add Deduplication Engine integration and related functionality#334
arsen-vs wants to merge 1 commit intodevelopfrom
feature/286344

Conversation

@arsen-vs
Copy link
Contributor

  • Introduced the DeduplicationClient class for interacting with the Deduplication Engine API, including methods for upserting deduplication sets, bulk adding images, and processing requests.
  • Updated the CONSTANCE_CONFIG to include DEDUP_API_TOKEN and DEDUP_API_URL for configuration management.
  • Added a new batch_deduplication module to handle batch deduplication tasks, including image reference extraction and job scheduling.
  • Enhanced permissions to include can_trigger_deduplication for managing deduplication actions in the admin interface.
  • Implemented tests for the DeduplicationClient and batch deduplication functionality to ensure robust integration and error handling.

These changes improve the system's capability to manage deduplication processes effectively, enhancing data integrity and operational efficiency.

Legal Boilerplate

Look, I get it.
Contributing to HOPE Workspace, I retain all rights, title and interest in and to my contributions, and by keeping
this boilerplate intact I confirm that HOPE Workspace can use, modify, copy, and redistribute my contributions,
under HOPE's choice of terms.

- Introduced the DeduplicationClient class for interacting with the Deduplication Engine API, including methods for upserting deduplication sets, bulk adding images, and processing requests.
- Updated the CONSTANCE_CONFIG to include DEDUP_API_TOKEN and DEDUP_API_URL for configuration management.
- Added a new batch_deduplication module to handle batch deduplication tasks, including image reference extraction and job scheduling.
- Enhanced permissions to include can_trigger_deduplication for managing deduplication actions in the admin interface.
- Implemented tests for the DeduplicationClient and batch deduplication functionality to ensure robust integration and error handling.

These changes improve the system's capability to manage deduplication processes effectively, enhancing data integrity and operational efficiency.
@codecov
Copy link

codecov bot commented Feb 16, 2026

Codecov Report

❌ Patch coverage is 88.29787% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 96.40%. Comparing base (311e75a) to head (ed932f3).
⚠️ Report is 11 commits behind head on develop.

Files with missing lines Patch % Lines
src/country_workspace/contrib/dedup/client.py 85.10% 5 Missing and 2 partials ⚠️
src/country_workspace/workspaces/admin/batch.py 84.61% 1 Missing and 1 partial ⚠️
..._workspace/workspaces/admin/batch_deduplication.py 93.54% 1 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (88.29%) is below the target coverage (95.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop     #334      +/-   ##
===========================================
- Coverage    96.49%   96.40%   -0.10%     
===========================================
  Files          217      220       +3     
  Lines         8269     8362      +93     
  Branches       839      851      +12     
===========================================
+ Hits          7979     8061      +82     
- Misses         159      166       +7     
- Partials       131      135       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.

1 participant

Comments