Giter VIP home page Giter VIP logo

contact-importer's People

Contributors

capony avatar doz avatar holek avatar schorsch avatar vijendra avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

vijendra

contact-importer's Issues

Long running script failure on heroku

Heroku displays an error on importing:

Application Error
An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details.

Delete csv files

Allo the user to delete uploaded files, need to check:

  • what to do with the mappings
  • also possible old imports ?

Google Contacts CSV has BOM

The ruby csv parser fails when importing google contacts export because it has a UTF16 BOM in it.

We should strip all BOM, and if present autodetect the incoming encoding and convert it to utf-8

Error in Test SessionsController GET 'new' should redirect to app canvas url

Failures:

  1. SessionsController GET 'new' should redirect to app canvas url
    Failure/Error: response.body.should =="<script> top.location.href='#{sk_url('abc')}/app/csv-importer'</script>"
    expected: "<script> top.location.href='https://abc.dev.salesking.eu/app/csv-importer'</script>"
    got: "<script> top.location.href='https://abc.dev.salesking.eu/app/csv-import-local'</script>" (using ==)

    ./spec/controllers/sessions_controller_spec.rb:37:in `block (3 levels) in <top (required)>'

This is due to hard coded slug in assert.

Split import Form into separate steps

For better usability the import form should be split up into separate parts

  1. upload a file
    • attachment_controller, attachments/new
    • show file contents and let user choose Quote character/ column sep
    • ajax csv parsing of file when user changes above e.g. show the parsed result in a table link in openOffice csv import
    • col_sep, quote_char should be moved from the import to the attachment model
  2. Create mapping
    • maybe at mappings/new?attachment_id=ID
    • Choose an existing mapping OR create a new
    • Drag&Drop fields like now .. could also need improvement for special fields: date/enums(new ticket)
  3. Create import
    • something like: imports/new?attachment_id=ID&mapping_id=ID
    • should we show the data before finally saving it? or is this part of the mapping form?

No information for user

If CSV file couldn't be imported due to some exception (mainly MalformedCSVError), there will not be any proper message for users. It just shows unclear message 0 rows imported, though there are data in CSV.

Re-use an import mapping

Field Mappings are already saved in db. Now we should enable the ruse of those when creating a new import.

Maybe the division of upload and mapping could help in the click flow

add mappings controller

we should be able to show existing mappings. Add a migration to add the company id to existing ones, so we dont show mappings of somebody else

invalid byte sequence in UTF-8

When trying to create mapping for google.csv (Gmail contacts exported), got this error. Possible duplicate of isse #1

ArgumentError in Mappings#new

Showing /home/vijendra/Desktop/CSV-Import/app/views/mappings/new.html.haml where line #10 raised:

invalid byte sequence in UTF-8
Extracted source (around line #10):

7: %label= t('mappings.source_fields')
8: .input
9: %ul#source-fields
10: - @attachment.rows(1).first.each_with_index do |item, index|
11: %li.field{'data-name' => item, 'data-source' => index}= item
12: .clearfix
13: %p= t('mappings.dnd_info')
Rails.root: /home/vijendra/Desktop/CSV-Import

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.