GithubHelp home page GithubHelp logo

canthis / oc-chunk-import Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 48 KB

Experimental implementation of Chunk Importer for October CMS. Based on October's original ImportExport behavior.

PHP 61.32% CSS 0.50% JavaScript 9.41% HTML 28.77%

oc-chunk-import's Introduction

October CMS Chunk Import with progress bar

Experimental implementation of Chunk Importer for October CMS. Based on October's original ImportExport behavior. Preview of chunk importer with progress bar

Usage

This plugin comes with test models and controllers, so it's up and ready for testing. Take Test CSV file from /assets folder and try to import some data.

Now import process is splitted into chunks. Each chunk processes 50 records at a time, each chunk is a new AJAX request, and that's how progress bar is being updated.

There's also a Import Log side menu, where You can find user, who imported particular file, imported file name and date it was imported at.

oc-chunk-import's People

Contributors

canthis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

oc-chunk-import's Issues

No result messages returned, statics going haywire

Hi,

Thanks! This is definitely a hugely useful enhancement to OctoberCMS.

I had a requirement for processing large imports (each row of which created multiple objects, so relatively slow running as well), which was not great with the standard import. I cut your plugin down to just the common code (removing your test data objects) and set my import up to use it.

The core functionality works well, but the data isn't being returned to the progress dialogue correctly - created, updated and error messages are not returned at all (not populated in the returned JSON), and while the stats at the top show errors in the chunk that they first occur, when the subsequent chunk returns the errors number disappears (though they are still reflected in the difference between processed and created - I don't have updates in this import, so I don't know if that is also affected).

The total rows processed is also slightly less than the total rows in my CSV (2349 reported versus 2353 rows of data in the CSV) - I've not worked out yet whether any rows were actually not processed, or whether it's simply the statistic that's wrong.

Hopefully this is helpful feedback!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.