Skip to content

Conversation

@Virgin75
Copy link

@Virgin75 Virgin75 commented Apr 4, 2023

…models to start the indexation

  • Add JoinField in fields.py to allow easy creation of parent/child join type field.
  • Edit indexation management command to allow start of the indexation on specific models only (with --objects).
    Usage, e.g: python3 manage.py opensearch document index --objects stay document will only start the indexation for the registered models using the Stay and Document models (defined in Django inner class).

@codecov-commenter
Copy link

codecov-commenter commented Apr 4, 2023

Codecov Report

Attention: Patch coverage is 43.75000% with 36 lines in your changes are missing coverage. Please review.

Project coverage is 90.00%. Comparing base (4d4f437) to head (8980d89).
Report is 5 commits behind head on master.

❗ Current head 8980d89 differs from pull request most recent head 4f04a28. Consider uploading reports for the commit 4f04a28 to get more accurate results

Files Patch % Lines
...o_opensearch_dsl/management/commands/opensearch.py 42.10% 30 Missing and 3 partials ⚠️
django_opensearch_dsl/registries.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
- Coverage   95.93%   90.00%   -5.94%     
==========================================
  Files          12       12              
  Lines         615      620       +5     
  Branches       86       93       +7     
==========================================
- Hits          590      558      -32     
- Misses         20       55      +35     
- Partials        5        7       +2     

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

@Virgin75 Virgin75 force-pushed the feat/join_field_and_update_index_command branch 2 times, most recently from 8980d89 to d0833e6 Compare April 5, 2023 13:00
@qcoumes qcoumes force-pushed the feat/join_field_and_update_index_command branch 3 times, most recently from d0ee947 to 351c4b4 Compare March 21, 2024 10:40
@qcoumes qcoumes mentioned this pull request Mar 22, 2024
7 tasks
@qcoumes qcoumes force-pushed the feat/join_field_and_update_index_command branch from 351c4b4 to 4f04a28 Compare March 25, 2024 13:29
@qcoumes qcoumes force-pushed the feat/join_field_and_update_index_command branch from 158348a to 9d1383f Compare October 1, 2024 04:08
@qcoumes qcoumes force-pushed the feat/join_field_and_update_index_command branch from f680232 to b5058db Compare November 25, 2025 01:40
…models to start the indexation

feat: Automatically divide queryset in batches

fix query is_ordered

add batch_size and the check if min max exists

Remove stdoutwrite

fix chunk_size

Add the stdout to display the current batch

add batch_size

Add batch type args to indexation command

fix: If `pks["min"]` & `pks["max"]` were same value, iteration did not start

Feature/add index manage func (#80)

* add manage_index in a separate fonction

* add manage_index in a separate fonction

* fix by using command stderr and stdout

* add the check on opensearchAction

* add custom registry

* add document_management

* fix the document registry

* add using to chose the os alias

* fix using

* add db_alias

* remove db_alias

---------

Co-authored-by: Abdellatif Missoumi <[email protected]>

skip when empty objects (#83)

Co-authored-by: Abdellatif <[email protected]>
@qcoumes qcoumes force-pushed the feat/join_field_and_update_index_command branch from b5058db to 4df0853 Compare November 25, 2025 01:41
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.

3 participants