Skip to content

feat: data import api endpoint#897

Merged
tom-rm-meyer-ISST merged 7 commits intoeclipse-tractusx:mainfrom
achtzig20:excel-import-api
Jul 4, 2025
Merged

feat: data import api endpoint#897
tom-rm-meyer-ISST merged 7 commits intoeclipse-tractusx:mainfrom
achtzig20:excel-import-api

Conversation

@ReneSchroederLJ
Copy link
Copy Markdown
Member

@ReneSchroederLJ ReneSchroederLJ commented Jun 27, 2025

Description

  • added an endpoint to import data
  • import supports .xlsx files
  • data is uploaded per standard (demand, production, deliver and stock)
  • existing data for the standard is replaced

solves #899

Pre-review checks

Please ensure to do as many of the following checks as possible, before asking for committer review:

  • DEPENDENCIES are up-to-date. Dash license tool. Committers can open IP issues for restricted libs.
  • Copyright and license header are present on all affected files
  • If helm chart has been changed, the chart version has been bumped to either next major, minor or patch level (compared to released chart).

Copy link
Copy Markdown
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great feature!

Beside the comments: I appended the files
delivery.xlsx
demand.xlsx
production.xlsx
stock.xlsx
I used for a test using bruno (created a folder 4, with a subfolder assets where I placed the files).

Further please

  • update the admin guide
  • add a changleog entry

Notes:

  • handling of 500er vs 200er is inconsistent sometimes (e.g. persistence and enums lead to 500)
  • delivery didn't work for me

@ReneSchroederLJ
Copy link
Copy Markdown
Member Author

Thank you for the thorough review.

I addressed most of your comments, but I had to omit the changes to validation in order not to make this PR to complicated.

I created an issue for a validation rework to further improve the quality of error reporting.

Copy link
Copy Markdown
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, really increased quality here! Some findings - you can also handle them with #906. I attached my working import files.
demand.xlsx
stock_soft_fail.xlsx
production_no_fail.xlsx
delivery_no_fail.xlsx

Copy link
Copy Markdown
Contributor

@tom-rm-meyer-ISST tom-rm-meyer-ISST left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot. Improvement of validations via #906

@tom-rm-meyer-ISST tom-rm-meyer-ISST merged commit 29eb4fa into eclipse-tractusx:main Jul 4, 2025
13 checks passed
@ReneSchroederLJ ReneSchroederLJ deleted the excel-import-api branch October 8, 2025 08:51
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