Commit graph

193 commits

Author SHA1 Message Date
Gavin D'souza
5914f35bb7 fix: Change site archive path to archived/sites 2021-11-25 12:47:36 +05:30
Gavin D'souza
088fdca74d refactor: bench browse
* Manage colours through click
* Standardize the command's behaviour for consistency :')
* Use click instead of webbrowser module
* Simplify logic
2021-11-25 12:47:36 +05:30
Gavin D'souza
ef39843f6b fix(cli): Add new line after each site's migrate 2021-11-15 13:32:34 +05:30
Anurag0911
8b7629c064
feat: Encrypted Backups (#14513)
* feat: backup-encryption

* fix: Using encryption key and Minor changes.

* fix: Sider.

* fix: Closing curly brace does not appear on the same line as the subsequent block.

* fix: Review Suggestions.

* fix: Minor changes.

* chore: Icon

* fix: Icon and Privileges Changes.
2021-11-09 13:58:57 +05:30
Faris Ansari
c75f15e25a fix: print url only when user is Administrator 2021-11-02 13:52:09 +05:30
Faris Ansari
ce695b8706 fix: Restrict user logins to developer_mode
- Allow Administrator user login in production
- Print login url
2021-11-02 13:38:33 +05:30
Faris Ansari
c5512d4c66 fix: login as user with browse command
`bench --site site.local browse --user Administrator`
2021-11-01 12:34:24 +05:30
gavin
4041442e6a
Merge pull request #13955 from gavindsouza/trim-db
feat: Site Maintenance commands
2021-09-15 17:08:40 +05:30
Gavin D'souza
5c6ffd2b2a chore: Misc updates
* Updated hooks content
* Remove unnecessary multiple=True flag that breaks on click8
2021-09-15 16:31:24 +05:30
Gavin D'souza
3734b63c17 fix: Do partial backups instead of full in trim-database 2021-09-15 16:08:55 +05:30
Gavin D'souza
0413349cc8 fix: Table view for bench trim-tables 2021-09-14 21:53:02 +05:30
Gavin D'souza
cb6010f1cf feat(minor): Add json format option to trim-database 2021-09-14 21:52:22 +05:30
Gavin D'souza
ed15997a08 fix: Raise SIteNotSpecifiedError if no site is set 2021-09-09 15:48:47 +05:30
Gavin D'souza
b833e40b80 fix: Show backup status in trim-tables command 2021-09-03 20:04:15 +05:30
Gavin D'souza
28d1d58944 feat: bench trim-database
Get rid of ghost tables in the site's database
2021-09-03 20:02:44 +05:30
Gavin D'souza
1c1320c684 fix: backup before trimming a site database 2021-09-03 18:59:29 +05:30
Gavin D'souza
a1c8a7b5f2 fix(restore): Initialize site before decompressing file 2021-09-02 16:00:07 +05:30
Gavin D'souza
7f338edca1 feat: Command to trim tables
Maintenance command to get rid of extra columns in your DocType tables.
These columns are remnants of "deleted" fields through customizations or
upgrades
2021-08-17 12:50:11 +05:30
ChillarAnand
85e5512c80 fix: Show traceback if custom app installation fails with exception 2021-08-05 11:47:34 +05:30
Faris Ansari
315eb8d08b feat: set-password site command
for resetting any user's password on a site
2021-08-01 12:32:15 +05:30
Gavin D'souza
991965fe6b fix: Format JSON outputs better 2021-05-03 19:48:50 +05:30
Suraj Shetty
831f70a108
Merge branch 'develop' into list-apps-update 2021-05-03 13:41:49 +05:30
gavin
8d1711ebc5
chore: Use click.echo in favour of print
Accepting suggested changes because `click.echo` has improved support for handling Unicode and binary data that "does not fail no matter how badly configured the system is" _(ref: docstring)_.

Co-authored-by: Suraj Shetty <13928957+surajshetty3416@users.noreply.github.com>
2021-05-03 13:39:26 +05:30
Steffen
80e009f806 fix: error for bench drop-site. Added missing import. 2021-04-30 16:09:03 +02:00
eneegy
be027787c5 fix: Moving Site folder across different FileSystems failed (#13033)
Co-authored-by: Thanh Dao <thanhdn1989@gmail.com>
(cherry picked from commit 29be5829e16b7e9454713d69539066a87d5a4091)
2021-04-29 16:29:05 +05:30
Gavin D'souza
a4a32fc4ed feat(cli): Format Option for list-apps 2021-04-22 17:58:21 +05:30
Rohan Bansal
86851028ea feat: manage Python 3 compatiblity with dependencies 2021-04-14 14:40:58 +05:30
Aditya Hase
bbac844de7
perf: Remove frappe.installer from import tree 2021-02-19 21:19:13 +05:30
Gavin D'souza
1b609af8e5 fix: Handle paths relative to bench root and sites folder 2020-12-04 18:15:17 +05:30
Faris Ansari
ee3fa3e4e0 fix: Remove unreferenced variable base_path 2020-12-03 22:39:38 +05:30
Gavin D'souza
05c8e3c5a7 Merge branch 'develop' of github.com:frappe/frappe into skip-backup-tables 2020-11-13 19:44:17 +05:30
Gavin D'souza
14fe6ccfa3 fix: Add is_partial check in bench restore 2020-11-13 19:42:38 +05:30
Gavin D'souza
e036c65ee2 fix: Bypass validation if force is passed 2020-11-11 12:34:56 +05:30
Faris Ansari
fbefdbecec
Merge pull request #11690 from gavindsouza/multisite-list-apps 2020-11-10 11:23:55 +05:30
Gavin D'souza
44f8c6e264 Merge branch 'develop' of github.com:frappe/frappe into skip-backup-tables 2020-11-09 19:08:36 +05:30
Gavin D'souza
ce45343355 feat: Add aliases for bench backup
* --include is the same as --only, -i
* --exclude is the same as -e
2020-11-09 18:53:14 +05:30
Gavin D'souza
7b1fa59a29 feat: Restore partial backups via bench partial-restore 2020-11-09 18:51:33 +05:30
Gavin D'souza
af1ed2f0bc refactor: Move _new_site and extract_sql_from_archive from
frappe.commands.site module to frappe.installer
2020-11-09 18:50:03 +05:30
mergify[bot]
c0aae3e28e
Merge pull request #11878 from gavindsouza/validate-backup-before-restore
feat: Validate sql file before restoring site
2020-11-09 12:01:33 +00:00
Gavin D'souza
fb0d1fbac1 Merge branch 'develop' of github.com:frappe/frappe into skip-backup-tables 2020-11-09 14:53:59 +05:30
Gavin D'souza
61b0ffc14d fix: Add new-lines between sites' summaries 2020-11-09 13:48:06 +05:30
Gavin D'souza
6c28f0cffe style: Sider + Black 2020-11-09 13:20:38 +05:30
Gavin D'souza
9cedd7616d refactor: Show versions from Installed Applications to show "real"
versions synced with the site database
2020-11-09 12:48:54 +05:30
Gavin D'souza
2ac5fe2444 Merge branch 'develop' of github.com:frappe/frappe into multisite-list-apps 2020-11-09 11:06:24 +05:30
Gavin D'souza
94d1759041 feat: Validate sql file before restoring site 2020-11-05 13:46:12 +05:30
Gavin D'souza
4c1cb83e16 fix: Move unnecessary compileall outside migrate 2020-10-30 17:26:07 +05:30
Aditya Hase
1a5a2ab857
fix(recorder): start-recording and stop-recording commands 2020-10-28 09:37:54 +05:30
Gavin D'souza
5c5703b8f6 feat: Show apps excluding frappe using --only-apps 2020-10-12 12:26:39 +05:30
Gavin D'souza
d19973a357 fix: Support for multi-site list-apps summary 2020-10-12 12:25:02 +05:30
Gavin D'souza
bd6f52305e fix: Show traceback if verbose 2020-10-07 14:32:18 +05:30