Commit graph

21893 commits

Author SHA1 Message Date
Suraj Shetty
acd33a4e50 fix: Prevent long review text from busting out of the body 2019-10-02 10:45:09 +05:30
Faris Ansari
63cb27b924
feat: New Data Import (#8310) 2019-09-30 23:54:54 +05:30
Faris Ansari
d3b3d0c38d style: Fix codacy errors 2019-09-30 20:08:28 +05:30
Faris Ansari
15c48079df tests: Make exporter tests pass 2019-09-30 19:32:21 +05:30
Faris Ansari
4277da02eb test: Make tests pass 2019-09-30 19:17:27 +05:30
mergify[bot]
1e54db0df5
Merge pull request #8521 from Thunderbottom/notification-mail-fix
fix(notifications): do not send emails if no recipients
2019-09-30 10:38:38 +00:00
Chinmay D. Pai
e2f4c076c7
fix(notifications): do not send emails if no recipients
notifications triggered through hooks have no checks for recipients, if
no recipients exist, sending mails shouldn't be attempted

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2019-09-30 15:41:16 +05:30
mergify[bot]
d6c5b6d10d
Merge pull request #8519 from hrwX/addr_cont_fix
fix(Contact): change filters for contact
2019-09-30 09:57:32 +00:00
mergify[bot]
5f33dd17c6
Merge pull request #8489 from prssanna/leaderboard-refactor
feat(Leaderboard): Add Energy Points Leaderboard to Leaderboard
2019-09-30 09:47:09 +00:00
Himanshu Warekar
ff1ef65e94 fix: rename filters for contact 2019-09-30 14:33:36 +05:30
Faris Ansari
b382be67d5 feat: data-import command
Use the new Data Import from the command line

```
bench --site sitename data-import --doctype Item --file /path/to/csvfile.csv
```
2019-09-30 13:39:43 +05:30
Faris Ansari
660a1d43d2 fix: Commonify autoname_field code 2019-09-30 13:38:41 +05:30
Faris Ansari
d87f60b177 fix: Child row parsing logic
if the row is blank, it's a child row doc
if the row has same values as parent row, it's a child row doc
if any of those conditions dont match, it's the next doc
2019-09-30 13:36:31 +05:30
Suraj Shetty
b4e616c0de fix: Rename "Energy Point Log" with "User"
Because it's user's leaderboard
2019-09-30 13:21:03 +05:30
Suraj Shetty
258fea55f0 style: Fix Codacy 2019-09-30 13:07:50 +05:30
Faris Ansari
a38aca52c0 fix: Freeze Start Import button on click 2019-09-30 12:45:54 +05:30
Rushabh Mehta
34eee3775e
Merge pull request #8517 from rmehta/count-fix
fix(minor): count fix
2019-09-30 11:51:40 +05:30
Rushabh Mehta
8e088cb990 fix(minor): count fix 2019-09-30 11:40:40 +05:30
prssanna
da8ad36cde fix: call leaderboard methods directly from config 2019-09-30 11:13:07 +05:30
Faris Ansari
928ce50206 style: fix errors reported by codacy 2019-09-29 22:42:05 +05:30
Faris Ansari
63c4991ef9 fix: Refresh import preview on form change 2019-09-29 22:42:05 +05:30
Faris Ansari
c917dda03a fix: Skip invalid link values 2019-09-29 22:42:05 +05:30
Faris Ansari
9f9a1ecba3 fix: Run in background if not in developer_mode or not in_test 2019-09-29 22:42:05 +05:30
Faris Ansari
779084991e refactor
- Parse template and build self.rows and self.columns
- Store header_row data in columns along with df and skip_import
- Use self.columns and self.rows without passing them explicitly
- Remove the ability to edit rows
- Show only first 10 rows as preview
- Build doc with default values set
- Show Dashboard progress when coming back from another view
- Better ETA Message inspired from Apple
- Action buttons "Export Errored Rows" and "Go to DocType List"
- Import status "Imported x out of y records"
- Success / Failure column in import log
2019-09-29 22:42:05 +05:30
Faris Ansari
4116e17bb3 fix: Mute emails in during import 2019-09-29 22:42:05 +05:30
Faris Ansari
13df26eaab fix: Show 10 rows in preview 2019-09-29 22:42:05 +05:30
Faris Ansari
d5c6a69e23 fix: Select "Don't Import" to skip a column
- Remove separate skip_column structure
- Simpler Map Columns dialog
2019-09-29 22:42:05 +05:30
Faris Ansari
addc20cde4 fix: Update datatable 2019-09-29 22:42:05 +05:30
Faris Ansari
056ad75bc2 fix: Automatically create Link field dependencies 2019-09-29 22:41:30 +05:30
Faris Ansari
a71f8f95b8 fix: Show template warnings 2019-09-29 22:41:30 +05:30
Faris Ansari
44028ce23a fix(test_runner): Load file if exists 2019-09-29 22:41:30 +05:30
Faris Ansari
5e8a56b444 fix: Rollback on exception 2019-09-29 22:41:30 +05:30
Faris Ansari
23d6e27f80 fix: Option to export 5 records 2019-09-29 22:41:30 +05:30
Faris Ansari
3b7b0f24dc fix: Commit after every doc import 2019-09-29 22:41:30 +05:30
Faris Ansari
cd961cb9ae fix: Validate template on attach 2019-09-29 22:41:30 +05:30
Faris Ansari
7927f5c8c4 fix(progress): Always show green progress 2019-09-29 22:41:30 +05:30
Faris Ansari
f86a5af729 fix: Update attach immediately 2019-09-29 22:41:30 +05:30
Faris Ansari
d2fe007177 fix(xls): Don't remove first row 2019-09-29 22:41:30 +05:30
Faris Ansari
b024d0f892 fix: Check for mandatory fields 2019-09-29 22:41:30 +05:30
Faris Ansari
ebb111aaf8 fix: Set only once Document Type and Import Type 2019-09-29 22:41:30 +05:30
Faris Ansari
2fc34effb4 fix: Show message when scheduler in inactive 2019-09-29 22:41:29 +05:30
Faris Ansari
df3236a98a fix: Set Export Type based on Import Type 2019-09-29 22:41:29 +05:30
Faris Ansari
b33d202a7a fix: Download Template button 2019-09-29 22:41:29 +05:30
Faris Ansari
5c533dc90d fix: Filter styling 2019-09-29 22:41:29 +05:30
Faris Ansari
1cccb33bad feat: Reload attached file 2019-09-29 22:41:29 +05:30
Faris Ansari
08214d2d63 fix: Remove "Select mandatory without children" 2019-09-29 22:41:29 +05:30
Faris Ansari
12f2d03a70 fix: Scroll to warning box 2019-09-29 22:41:29 +05:30
Faris Ansari
626c2b4070 fix: Structured warnings grouped by rows 2019-09-29 22:41:29 +05:30
Faris Ansari
fbfa078147 fix: as_dict
- convert_dates_to_str should work for non df fields
2019-09-29 22:41:29 +05:30
Faris Ansari
cd3ee90262 fix(Form API): scroll_to_field 2019-09-29 22:41:29 +05:30