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

[Importer] Allow to reference importing rows #8203

Open
1 of 2 tasks
wolflu05 opened this issue Sep 27, 2024 · 5 comments
Open
1 of 2 tasks

[Importer] Allow to reference importing rows #8203

wolflu05 opened this issue Sep 27, 2024 · 5 comments
Labels
enhancement This is an suggested enhancement or new feature import / export Data importing, exporting and processing
Milestone

Comments

@wolflu05
Copy link
Contributor

Please verify that this feature request has NOT been suggested before.

  • I checked and didn't find a similar feature request

Problem statement

When importing a dataset it is not possible to reference other rows from the current dataset. This is required to import a deeply nested category tree, location tree, ... (ref: #8166 (comment))

Suggested solution

Allow to select an extra column for the primary key of the dataset lines. Then this column can be used to lookup rows when other rows reference e.g. *1 (where the * means look for a row in the current dataset with this id.).

Example:

pk,name,parent
1,Electronic Parts1,
2,Passives,*1
3,Resistors,*2
4,Capacitors,*2
5,IC,*1
6,Mechanic Parts,

This then can be used to build a graph of data and then start by importing the root node first, then the Childs of the root node, ...

Describe alternatives you've considered

Import categories or locations "level by level"

Examples of other systems

No response

Do you want to develop this?

  • I want to develop this.
@wolflu05 wolflu05 added enhancement This is an suggested enhancement or new feature import / export Data importing, exporting and processing triage:not-checked Item was not checked by the core team labels Sep 27, 2024
@SchrodingersGat
Copy link
Member

We already have a unique "row" number (within the dataset) - we could use this, perhaps?

@wolflu05
Copy link
Contributor Author

What column are you referring too? You mean the index of the entry in the csv file? I would argument that this is not a great idea, as then we rely on the order of the lines in the csv table. And the order may change if people manually modify the file.

@SchrodingersGat
Copy link
Member

Fair point!

Copy link
Contributor

This issue seems stale. Please react to show this is still important.

@github-actions github-actions bot added the inactive Indicates lack of activity label Nov 27, 2024
@SchrodingersGat
Copy link
Member

Not stale

@SchrodingersGat SchrodingersGat added this to the horizon milestone Nov 27, 2024
@SchrodingersGat SchrodingersGat removed inactive Indicates lack of activity triage:not-checked Item was not checked by the core team labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This is an suggested enhancement or new feature import / export Data importing, exporting and processing
Projects
None yet
Development

No branches or pull requests

2 participants