2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00
Commit Graph

308 Commits

Author SHA1 Message Date
Gavin D'souza
a84239d6ab refactor: Bench
* Drop patches of v3 & v4
* Re-write buggy / broken code wrt hints by pre-commit checks
* Auto-format and transform code
* Remove re-written & mutable function defaults
2022-07-27 14:39:22 +05:30
Gavin D'souza
e03f597ac6 fix: get-app on existing apps
get-app to replace existing folder would fail due to bad url generation.

Changes
* Archive old repo instead of overwritting
* Resetting flags in App instance
2022-07-27 14:24:10 +05:30
Aradhya Tripathi
45267fc897
fix: fixed update_app_states call (#1326) 2022-06-23 00:10:41 +05:30
Gavin D'souza
21eceae6ac chore: Drop dead code
tx [vulture](https://pypi.org/project/vulture/)
2022-06-14 15:48:56 +05:30
Aradhya Tripathi
dfed5c64a2
Merge branch 'develop' into fixes 2022-06-09 10:29:53 +05:30
Aradhya
5f37135ff2 fix: using local clones if path is passed in get-app 2022-06-09 10:27:53 +05:30
Devin Slauenwhite
e69b612035 feat: get-app ln -s 2022-06-03 04:47:23 +00:00
gavin
f7f7459c51 fix: Delete folder if --no-backup is passed 2022-05-19 13:09:18 +05:30
gavin
a3b859bf50 fix(remove-app): Use App.name instead of App.repo for consistent App name 2022-05-19 12:58:24 +05:30
gavin
117d456b16 fix: Handle tag fetching failures of disk mounted App inits 2022-05-19 12:57:05 +05:30
Aradhya
1cc961ea55 style: removed unused imports 2022-05-10 02:05:25 +05:30
Aradhya
c667be9023 fix: fixed args to sync-states 2022-05-09 23:07:11 +05:30
Aradhya
7f374887f4 fix: fixed states sync 2022-05-09 19:46:54 +05:30
Aradhya
35504f81b3 feat: Added app_name attribute to App class 2022-05-07 02:47:38 +05:30
Aradhya
b8aa00898f fix: reverted changes made by erroneous commit 2022-05-06 14:10:09 +05:30
Aradhya
66157f6c92 test: updated tests for App init 2022-05-05 20:30:26 +05:30
Aradhya
949e51a943 Merge branch 'fixes' of github.com:Aradhya-Tripathi/bench into fixes 2022-05-05 19:59:21 +05:30
Aradhya
b36c0723be feat: Made dynamic mount path if bench attr is passed to App class 2022-05-05 19:57:37 +05:30
Kelvin zawala
7b8f16bcb4
Get-app from port specific ssh git server (#1299)
* Get-app from port specific ssh git server

Current bench package fails to get an app from a private git server with a specific ssh port other than the normal 22.

* test: Added tests for ssh ports

Co-authored-by: Aradhya Tripathi <67282231+Aradhya-Tripathi@users.noreply.github.com>
Co-authored-by: Aradhya <aradhyatripathi51@gmail.com>
2022-05-03 17:22:10 +05:30
Ritwik Puri
eb715735bb
fix: Misc fixes (#1294)
* fix: use better api endpoint for is_valid_frappe_branch

* fix: dont allow appnames starting with number and/or dot in them

* fix: dont convert response to json

* fix: using ls-remote to check for valid branches

* refactor: changed the message displayed on invalid branch and invalid frappe path

Co-authored-by: Aradhya <aradhyatripathi51@gmail.com>
Co-authored-by: Aradhya Tripathi <67282231+Aradhya-Tripathi@users.noreply.github.com>
2022-04-27 20:17:04 +05:30
Aradhya Tripathi
c8ef8224d4
fix: fixed org, branch for apps mounted on disk (#1293)
* fix: fixed org, branch for apps mounted on disk

* fix: DRY-er code

* fix: fixed loading apps when use_ssh is true

* fix: removed flaky tests to test dependencies

* fix: removed exception if app not found in frappe or erpnext org

* fix: remote server

* test: Updated tests

fix: tests

* fix: raise when org is not found

* fix: setup requirements

* fix: falling back to original method of mounted app initialization if git repo isn't found
2022-04-19 22:31:51 +05:30
Aradhya
4441528d3f style: black-ish code 2022-03-28 21:00:41 +05:30
Aradhya
ff98aaf198 fix: reverted erroneous commits 2022-03-27 17:21:27 +05:30
Aradhya
fc0be250c2 feat: Exiting when app does not exist 2022-03-26 23:40:55 +05:30
Aradhya
2f17da1bf0 fix: support for local and remote apps when looking for dependencies 2022-03-26 00:06:17 +05:30
Aradhya
0b862c0745 feat: Added support for mounted app in get_dependencies 2022-03-25 22:27:58 +05:30
Aradhya
b28cfab550 fix: add code removed via erroneous commit 2022-03-21 23:58:52 +05:30
Aradhya
d514f84d5f merge: merged develop into dependency-resolution 2022-03-21 21:50:24 +05:30
Aradhya
67638b19b7 refactor: added ignore resolution to ignore messages in install app 2022-03-21 14:52:04 +05:30
Gavin D'souza
af14bafe21 fix(restart): Setup restarts vars with fallback 2022-03-21 13:37:16 +05:30
Aradhya
bbca3e9fab feat: mimicking get-app behaviour when app is already installed 2022-03-20 22:15:41 +05:30
Gavin D'souza
ad000f1be7 fix: Don't handle BaseExceptions 2022-03-17 11:41:57 +05:30
Gavin D'souza
d33d987b2c fix: User messages on get-app actions 2022-03-17 11:41:34 +05:30
saxenabhishek
9ac091b4d9 feat: add required and order of install 2022-03-11 14:12:31 +05:30
saxenabhishek
af3c871632 fix: missing installed branch 2022-03-11 13:34:54 +05:30
saxenabhishek
67df07b732 fix: empty states json condition 2022-03-11 13:22:49 +05:30
saxenabhishek
7de1fa7c4d style: black-ish 2022-03-11 13:13:53 +05:30
saxenabhishek
2287f3f7ec fix: check current branch 2022-03-11 13:13:53 +05:30
saxenabhishek
5bb3b52f23 fix: print required by in output 2022-03-10 23:07:15 +05:30
saxenabhishek
9004e1dd6a feat: add commit hash and branch in states.json 2022-03-10 23:06:47 +05:30
Aradhya
d178b08abb feat: verbose env setup & checking for compatible versions 2022-03-10 18:33:49 +05:30
saxenabhishek
79765e6b25 fix: check for valid branch in resolve 2022-03-10 12:59:14 +05:30
Aradhya
b0ae3ae359 perf: Using github API 2022-03-02 22:44:12 +05:30
Aradhya
de315f27ad fix: logging when in init-bench 2022-02-28 14:29:05 +05:30
Aradhya
bb911b5e5a refactor: ignoring app deps when install app without --resolve-deps 2022-02-25 16:51:06 +05:30
Aradhya
6d05fe2f53 Merge branch 'develop' of github.com:Aradhya-Tripathi/bench into dependency-resolution 2022-02-25 16:27:41 +05:30
Aradhya
2fed369066 fix: file-uri while app initialisation 2022-02-23 14:56:15 +05:30
Aradhya
6e4f121fc6 Merge branch 'develop' of github.com:Aradhya-Tripathi/bench into dependency-resolution 2022-02-22 13:31:00 +05:30
DaizyModi
28e681689f
feat: Setup Requirements for specific apps (#1265)
* feat:  flag for Setup Requirements

* chore: Moved __get_installed_app method in Bench

* fix: improve help message

* fix: allow muliple apps to be specified

Co-authored-by: Sagar Vora <sagar@resilient.tech>
Co-authored-by: gavin <gavin18d@gmail.com>
2022-02-18 17:34:39 +05:30
Aradhya
e629ca6f86 fix: minor fixes 2022-02-17 21:48:40 +05:30