Commit graph

213 commits

Author SHA1 Message Date
Suraj Shetty
2ed8cacd2f chore: Use chrome browser for test
- Remove unused cypress:run command from package.json
2020-04-25 12:52:14 +05:30
Gavin D'souza
e07d4236a0 Merge branch 'misc-fix-1' of github.com:gavindsouza/frappe into misc-fix-1 2020-04-17 13:41:57 +05:30
Gavin D'souza
4fa3522c3b Merge branch 'develop' into misc-fix-1 2020-04-17 13:40:49 +05:30
gavin
37bae8cfac
style: install_db re-arrange parameters
Co-Authored-By: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2020-04-17 13:01:14 +05:30
Gavin D'souza
326439a4d1 fix: backups dont break if one site is corrupted 2020-04-16 14:09:21 +05:30
Gavin D'souza
30e0fa7561 style: remove unused imports 2020-04-13 12:21:31 +05:30
Gavin D'souza
275a678bd6 fix: site cleanup in case of errors on new-site
Added _new_site_cleanup to handle exceptions raised in case of
interuppted install of Frappe site. Deletes folders after calling
_drop_site
2020-04-13 11:42:02 +05:30
Aditya Hase
839114b7ff
fix: Add db-password option to new-site (#9685) 2020-03-13 15:10:59 +05:30
mergify[bot]
613eaea689
Merge pull request #9649 from Thunderbottom/no-mariadb-socket
feat(db): add new-site flag to use tcp/ip instead of unix socket
2020-03-11 20:29:49 +00:00
Shivam Mishra
98d3533c2c
fix: UI tests (#9664)
* fix: fallback for default desk page

* fix: return if reference name does not exist

* refactor: rename to Query Report

* refactor: codacy linting fixes

* refactor: null check for data in workspace

* feat: enable cypress recording

* chore: codacy linting fixes

* refactor: don't set route explicitly

* fix (cypress): wait for request to be complete in grid pagination test

* fix (cypress): explicitly return async calls

* refactor: visit new_form directly

* refactor: skip some scripts for ui tests

* Revert "refactor: skip some scripts for ui tests"

This reverts commit 1e46e3cd5361c2910d25efb244774d153511af53.
2020-03-09 12:30:59 +00:00
Chinmay D. Pai
004ddacbf1
fix: do not set db_host to % and instead pass to setup_db
db_host != the hostname part after @, hmm. so instead we'll pass
no-mariadb-socket flag to setup_database where we'll drop and create
users with host set to the TCP/IP socket instead of the UNIX socket.

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-06 13:02:26 +05:30
Chinmay D. Pai
e5a896ef00
feat(db): add new-site flag to use tcp/ip instead of unix socket
ref frappe/bench#949

Signed-off-by: Chinmay D. Pai <chinmaydpai@gmail.com>
2020-03-05 23:27:15 +05:30
Faris Ansari
4b51508194 fix: Cypress run command 2020-02-10 13:08:26 +05:30
mergify[bot]
6763ee7712
Merge pull request #9198 from gavindsouza/build-refact
refactor(build): updated variable names, namespaces + style fixes
2020-01-06 05:53:18 +00:00
Gavin D'souza
9dc172692d feat: added apps installed on site in console ns
chore: dropped deprecated commands
style: whitespacing and new line fixes
2020-01-04 13:44:37 +05:30
Gavin D'souza
16c4c8f202 fix(install): bench jupyter 2020-01-04 11:09:33 +05:30
Suraj Shetty
58825e89a8 feat: Disable testing for all sites by default
To avoid accidental test execution on production sites
2020-01-03 22:08:06 +05:30
Oshosanya Michael
8a11fb57cd feat: Allow full database config on creating site (#8874)
* Allow setting db port on install

* Allow setting db port on install

* Allow full db config on creating site

* bug fix

* bug fix

* Escape character

* Update frappe/commands/site.py

allow only integer argument

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* Update frappe/database/db_manager.py

No need to escape integer variable

Co-Authored-By: Chinmay Pai <chinmaydpai@gmail.com>

* cast port to integer to surpress pymysql error

* cast port to string to surpress pymysql error

* Removed type casting
2019-12-12 13:17:07 +05:30
Gavin D'souza
ae48dfe2b4 chore: dropped legacy selenium dependant tests
selenium TestDriver deprecated
--ui-tests flag in `bench run-tests` deprecated
2019-11-13 15:01:05 +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
Aditya Hase
fe0c399750
fix(cypress): Use cypress:run command 2019-09-05 17:57:13 +05:30
Sahil Khan
9b65a7c4a1 Merge branch 'version-12-hotfix' into merge_v12_hotfix_1 2019-08-20 16:09:39 +05:30
kratos
4c5a8d41af bug fix - Postgres db connection
Missing quotes in connection string.
2019-08-08 13:22:15 +05:30
Aditya Hase
4164c62efc fix(doctor): Show status of scheduler in bench doctor 2019-07-31 20:14:58 +05:30
Aditya Hase
2849ef9105 fix(doctor): Show status of scheduler in bench doctor 2019-07-31 20:12:22 +05:30
mergify[bot]
400c5f7c8e
Merge pull request #7956 from netchampfaris/skip-failing-patches-2
feat: Option to skip failing patches in migrate
2019-07-31 05:05:39 +00:00
deepeshgarg007
87e3531281 Merge branch develop into remove_user_limit 2019-07-28 19:55:28 +05:30
Faris Ansari
2626129184
Merge branch 'develop' into skip-failing-patches-2 2019-07-26 23:43:37 +05:30
Aditya Hase
cc2a0bd8f6 fix(commnds): Raise CalledProcessError if process returns non-zero exit code 2019-07-24 15:11:53 +05:30
Aditya Hase
582b871c0c fix(tests): Raise CalledProcessError if run-ui-test errors 2019-07-24 15:11:53 +05:30
Aditya Hase
7d65a557d1 fix(commnds): Raise CalledProcessError if process returns non-zero exit code 2019-07-24 15:03:10 +05:30
Aditya Hase
8a3c5a8c51 fix(tests): Raise CalledProcessError if run-ui-test errors 2019-07-24 15:03:10 +05:30
Faris Ansari
d06abbd852
feat: Option to skip failing patches in migrate (#7959) 2019-07-23 16:46:15 +05:30
Faris Ansari
a14e98a501 feat: Option to skip failing patches in migrate 2019-07-23 13:02:43 +05:30
Faris Ansari
da3811ab8e fix: Dont check if force 2019-07-20 20:49:06 +05:30
Faris Ansari
00e7a6a779 fix: Add no-backup option in drop-site 2019-07-20 20:41:43 +05:30
Faris Ansari
8dcfe0029d feat: add-to-hosts command 2019-07-20 20:35:36 +05:30
Faris Ansari
9cafae9d53 fix: Check if site exists before new-site 2019-07-20 20:33:50 +05:30
Faris Ansari
1389300115 fix: bench run-ui-tests command (#7844)
* fix: bench run-ui-tests command

BREAKING CHANGE
This replaces the old run-ui-tests command which used selenium to run
UI tests with Cypress.

Usage:

bench --site [sitename] run-ui-tests [app]
bench --site [sitename] run-ui-tests [app] --headless

* fix: Include adminPassword from site_config

* fix: string formatting
2019-07-05 15:30:59 +05:30
deepeshgarg007
f5a983a70d fix: Remove limits and usage info from frappe 2019-06-30 16:51:05 +05:30
Anurag Mishra
b76e42bc17 fix: removed *.xml 2019-06-13 17:52:47 +05:30
Anurag Mishra
376ba5392e fix: remove *_test.py 2019-06-13 16:53:03 +05:30
Anurag Mishra
a8ec5d6b2f fix: remove unwanted file from coverage 2019-06-13 16:43:36 +05:30
Rushabh Mehta
538195de21 fix(energy-point-list): use standard list view 2019-06-05 11:29:54 +05:30
Rushabh Mehta
7cb648eb5b
Merge pull request #7453 from rmehta/remove-autodoc
refactor: remove autodocs, no longer used
2019-05-23 15:09:23 +05:30
Faris Ansari
2ba5438c5f feat: Allow multiple apps to be installed to site
Usage:

`bench --site sitename install-app erpnext foundation`
2019-05-15 13:47:33 +05:30
Faris Ansari
5e2c2d8337
fix: Index rendered page content (#7405)
* fix: Index rendered page content

- Order results based on words matched in title

* fix: Reset session user after indexing page

* chore: comments
2019-05-12 19:21:07 +05:30
Rushabh Mehta
03b045a5b5 refactor: remove autodocs, no longer used 2019-05-11 10:12:11 +05:30
Rushabh Mehta
abfb44a047
Merge pull request #6993 from zerodhatech/fixtures
export fixtures of a specific app
2019-02-28 13:01:21 +05:30
Shridhar Patil
8aadcdf73e export fixtures of a specific app 2019-02-27 12:18:46 +05:30