Skip to content

[FR] Convert "data import" functionality to API #2341

Closed

Description

@SchrodingersGat

The current "import" features (e.g. BOM import) are pretty clunky, and notably, extremely slow.

In particular, the BOM importer is extremely slow because it renders everything server side, rather than "on demand" lookup of related fields.

It would be far better to use the existing DRF API and perform data upload via JSON serializers.

  • Much more efficient than HTTP forms
  • Reduce code duplication, focus on API support

django-data-wizard looks like it might be a very good tool to use here.

Ref: #2331

Activity

  1. added
    enhancement
    on Nov 20, 2021
  2. added this to the 0.7.0 milestone on Nov 20, 2021
  3. added
    api
    roadmap
    on Nov 20, 2021
  4. matmair commented on Nov 20, 2021

    @matmair
    Member

    @SchrodingersGat maybe a refactor of all import code would be great, I feel like there is a lot more code then necessary in each definition. Although the current matching is quite flexible. Some test coverage might be nice thought.

  5. modified the milestones: 0.7.0, 0.8.0 on Apr 5, 2022
  6. SchrodingersGat commented on Apr 5, 2022

    @SchrodingersGat
    MemberAuthor

    Note that this has now been implemented for BOM data import - #2603

    This concept needs to be abstracted, and used for other data import functions (e.g. "part" data)

  7. SchrodingersGat commented on Jun 3, 2022

    @SchrodingersGat
    MemberAuthor

    Replaced by #3101

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apienhancementroadmap

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions