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

New data import #4601

Merged
merged 12 commits into from Dec 15, 2017
Merged

New data import #4601

merged 12 commits into from Dec 15, 2017

Conversation

manassolanki
Copy link
Contributor

@manassolanki manassolanki commented Dec 11, 2017

New Data Import Tool

  • Data Import - new doctype
  • Done via the background jobs
  • Log table is created from the import details
  • Error logs are created with the link in log table
  • Real-time progress in the dashboard
  • Indicator for the status
  • If errors, and skip errors is checked, download errored data only in the templated file
  • Screenshots
  • Updated docs

Fixes frappe/erpnext#11474, frappe/erpnext#10712, frappe/erpnext#11443

Export Template

data_export

Data Import

data_import

frm.reload_doc();
}
if (data.progress) {
let progress_bar = $(cur_frm.dashboard.progress_area).find(".progress-bar");
Copy link
Contributor

Choose a reason for hiding this comment

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

cur_frm => frm

title: __('Download Template'),
fields: [
{
"label": "Select Columns",
Copy link
Contributor

Choose a reason for hiding this comment

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

__('Select Columns')

frappe.model.with_doctype(frm.doc.reference_doctype, function() {
if(frm.doc.reference_doctype) {
// render select columns
var parent_doctype = frappe.get_doc('DocType', frm.doc.reference_doctype);
Copy link
Contributor

Choose a reason for hiding this comment

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

frappe.get_meta(doctype)

"fieldtype": "HTML"
}
],
primary_action: function() {
Copy link
Contributor

Choose a reason for hiding this comment

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

primary_action: function(values) {

}
],
primary_action: function() {
var data = download_dialog.get_values();
Copy link
Contributor

Choose a reason for hiding this comment

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

var data = values;


def as_link(doctype, name):
if via_console:
return "{0}: {1}".format(doctype, name)
else:
return getlink(doctype, name)

error = False
total = len(data)
def get_link(doctype, name):
Copy link
Contributor

Choose a reason for hiding this comment

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

there is already a method called get_url_to_form

<div class="table-responsive">
<table class="table table-bordered table-hover log-details-table">
<tr class="">
<th style="width:10%"> Row No </th>
Copy link
Contributor

Choose a reason for hiding this comment

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

__

// rename this file from _test_[name] to test_[name] to activate
// and remove above this line

QUnit.test("test: Data Import", function (assert) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove file

}
},
{
"label": "File Type",
Copy link
Contributor

Choose a reason for hiding this comment

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

ye bhi

"default": "Excel"
},
{
"label": "Download with Data",
Copy link
Contributor

Choose a reason for hiding this comment

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

aur ye

@nabinhait nabinhait merged commit 520bfc2 into frappe:develop Dec 15, 2017
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Data Import] Misleading Error Message
3 participants