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

Syncing from upstream OCA/connector-interfaces (18.0) #126

Merged
merged 206 commits into from
Oct 23, 2024
Merged

Conversation

bt-admin
Copy link

bt_gitbot

simahawk and others added 30 commits October 21, 2024 09:11
* [FIX] invalidate_cache for set_shared

* fixup! [FIX] invalidate_cache for set_shared
The odoorecord handler now takes a custom context, if any,
from the importer. In this way you can customize it via importer
w/out having to define a custom record handler for each importer.

All create/write actions now pass a new ctx key around:

    `connector_importer_session`

Additionally, `tracking_disable` is ENABLED by default
since it's very unlikely that you want to track all the changes
when import from external sources.

TODO: make tracking disabling customizeable via recordset conf.
simahawk and others added 27 commits October 21, 2024 09:11
You can now pass any context key to the importer (propagated to the record handler)

by using 'ctx' key in the 'importer' options.
Was broken because available_importers requires an import type which is not available before editing.
It was also impossible to set the backend directly.
connector_importer: fix test_recordset.test_docs_html

Without components registered this is broken
however it is already tested in test_recordset_importer
You can now configure mapper options' key source_key_rename
to specify a mapping of keys to be renamed to match odoo field names.
Currently translated at 100.0% (154 of 154 strings)

Translation: connector-interfaces-16.0/connector-interfaces-16.0-connector_importer
Translate-URL: https://translation.odoo-community.org/projects/connector-interfaces-16-0/connector-interfaces-16-0-connector_importer/it/
…use_job parameter

We want to handle debug mode and take into account the use_job parameter in order to spawn jobs only when requested
Replace the use of Serialized fields with Binary fields for report_data and shared_data in the ImportRecordset model. This change aims to improve performance and provide better storage management for large datasets.
Signed-off-by simahawk
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: connector-interfaces-18.0/connector-interfaces-18.0-connector_importer
Translate-URL: https://translation.odoo-community.org/projects/connector-interfaces-18-0/connector-interfaces-18-0-connector_importer/
@bt-admin bt-admin added the 18.0 label Oct 23, 2024
@bt-admin bt-admin merged commit d306f97 into brain-tec:18.0 Oct 23, 2024
4 checks passed
Copy link

codecov bot commented Oct 23, 2024

Codecov Report

Attention: Patch coverage is 75.25097% with 641 lines in your changes missing coverage. Please review.

Please upload report for BASE (18.0@8814112). Learn more about missing BASE report.
Report is 208 commits behind head on 18.0.

Files with missing lines Patch % Lines
connector_importer/utils/mapper_utils.py 44.06% 83 Missing and 16 partials ⚠️
connector_importer/models/recordset.py 62.90% 67 Missing and 2 partials ⚠️
connector_importer/components/importer_csv_std.py 16.45% 66 Missing ⚠️
connector_importer/models/reporter.py 32.97% 63 Missing ⚠️
connector_importer/utils/report_html.py 21.12% 55 Missing and 1 partial ⚠️
connector_importer/components/importer.py 77.51% 42 Missing and 5 partials ⚠️
connector_importer/models/backend.py 50.00% 35 Missing and 2 partials ⚠️
connector_importer/utils/import_utils.py 68.60% 22 Missing and 5 partials ⚠️
connector_importer/components/odoorecord.py 78.33% 16 Missing and 10 partials ⚠️
connector_importer/models/sources/source_csv.py 64.06% 19 Missing and 4 partials ⚠️
... and 17 more
Additional details and impacted files
@@           Coverage Diff           @@
##             18.0     #126   +/-   ##
=======================================
  Coverage        ?   75.25%           
=======================================
  Files           ?       47           
  Lines           ?     2590           
  Branches        ?      287           
=======================================
  Hits            ?     1949           
  Misses          ?      570           
  Partials        ?       71           

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

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

Successfully merging this pull request may close these issues.