David
39d4318a27
feat: enable db socket connection
2024-03-29 10:29:50 +01:00
Akhil Narang
3a7dd3a1db
Merge pull request #25417 from akhilnarang/psql-history-log
...
fix: log psql console usage as well
2024-03-14 12:33:24 +05:30
Akhil Narang
d0923b0cd9
refactor: move histfile setting into helper function
...
This will ensure even users of `bench db-console` can use it
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-14 11:12:17 +05:30
Akhil Narang
afdb455b5a
fix: log psql console usage as well
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-14 10:56:17 +05:30
Akhil Narang
8e057e2010
fix(console): use frappe.conf.db_user
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-03-14 09:06:19 +05:30
Ankush Menat
532e1ef402
Merge pull request #25366 from ankush/mariadb_logging
...
fix: log mariadb console usage
2024-03-12 20:45:54 +05:30
Ankush Menat
676c40a15b
Merge pull request #25364 from ankush/ipython_logging
...
fix: Log ipython commands
2024-03-12 20:34:15 +05:30
Ankush Menat
2d75dbb598
fix: log mariadb console usage
2024-03-12 20:33:27 +05:30
Ankush Menat
8bdc88f06d
fix: Log ipython commands
2024-03-12 20:11:00 +05:30
Ankush Menat
59f421cd04
fix: traceback colours ( #25356 )
...
default ipython colours use yellow on white font, which looks horrible
and is practically unreadable on most colourschemes.
2024-03-12 10:22:18 +00:00
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Akhil Narang
26ae0f3460
fix: ruff fixes
...
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-07 17:04:31 +05:30
Ankush Menat
33d0db364b
feat: allow configuring coverage from envvar ( #24788 )
2024-02-06 10:06:48 +00:00
Ankush Menat
de9ac89748
style: re-format with ruff
2024-02-05 18:53:33 +05:30
Akhil Narang
60c1812cc2
fix(run-tests): don't try to access frappe.flags before frappe.init()
...
Broke in #24432
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-02 22:26:01 +05:30
David Arnold
c57bc94ead
chore: cleanup frappe.connect invocations
2024-01-24 11:56:24 +01:00
Alan
7a68ebe3a4
Merge pull request #24412 from frappe/add-using-cached-build-flag
...
feat(Bench): add using-cached flag
2024-01-18 18:12:02 +05:30
mergify[bot]
483fcf89c3
Merge pull request #24428 from blaggacao/chore/cleanup-frappe-connect
...
chore: cleanup frappe connect (I/II)
2024-01-18 12:15:42 +00:00
18alantom
2da12b27cd
refactor: set using cached with envvar
2024-01-18 16:25:14 +05:30
18alantom
9a87ec11e7
fix: add command to indicate use-cached support
2024-01-18 13:15:58 +05:30
Ankush Menat
ee6743c26b
fix: avoid mutating list while iterating over it ( #24438 )
2024-01-18 05:44:30 +00:00
David Arnold
d87092936f
chore: simplify frappe.connect & require explicit site initialization
2024-01-17 16:53:30 +01:00
18alantom
9ece71bc56
feat: add using-cached flag to bench build
...
- add using-cache flag to node esbuild call
The flag is to be used by bench get-app if its is
using cache.
Flag causes building of assets to not run and
instead updates assets.json files from built assets.
Linking of assets in the sites folder also occurs.
2024-01-17 13:20:57 +05:30
Ankush Menat
9482126b93
perf: Skip rebuilding MO files where PO file is not updated
2024-01-10 17:04:34 +05:30
Ankush Menat
5d8208ccf4
feat: Build MO files with bench build
...
Translation assets are also... assets, so grouping them with `bench build`.
We can do some special function but that will likely require updating
bench for everyone. Not so ideal.
Also renamed `compile` function as it is a builtin in python.
2024-01-10 16:41:04 +05:30
Ankush Menat
704043a2f8
chore: remove duplicate cache clearing
...
frappe.clear_cache removes everything
2023-12-28 19:00:03 +05:30
barredterra
483fa15c8f
fix: clear translation cache
...
- Cache was not getting cleared, since it's user-specific
- Remove unused implementation from gettext
2023-12-26 23:17:31 +01:00
David Arnold
40a2daf84c
chore: give cli invocations of dbtools a dedicated interface
2023-11-09 12:14:41 +01:00
gavin
bedef22f34
fix(cli): Use mysql CLI as fallback is mariadb isnt found ( #23004 )
2023-10-30 19:48:04 +05:30
Akhil Narang
091ebdd8dc
refactor(treewide): use mariadb commands directly instead of mysql ( #22620 )
...
This has been done because the mysql command issues a deprecation warning now
mysql: Deprecated program name. It will be removed in a future release, use '/usr/bin/mariadb' instead
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2023-10-10 12:49:16 +05:30
barredterra
ed2290d1d6
Merge branch 'develop' into feat/improve-openid-connect-devx
2023-10-07 15:22:59 +02:00
Suraj Shetty
80347c9f28
Merge branch 'develop' into update-cy-new
2023-09-25 14:53:23 +05:30
Gavin D'souza
b19c569761
fix(run-ui-tests): Set default browser as chrome
...
Co-authored-by: Suraj Shetty <surajshetty3416@gmail.com>
2023-09-25 11:11:13 +05:30
Gavin D'souza
a5f709b468
ci: Use electron browser over chrome
...
* Electron is already shipped along with Cypress. Can we use it?
* Pass --record kwarg only if CYPRESS_RECORD_KEY envvar is set
2023-09-23 18:12:48 +05:30
Suraj Shetty
a496f6b5e1
build: Update cypress
2023-09-22 11:19:41 +05:30
Ankush Menat
56371f09e0
Revert "fix!: Bind development server only to localhost ( #22397 )"
...
This reverts commit 9244140816 .
Breaks docker development installs
2023-09-20 11:43:56 +05:30
David Arnold
64a09be958
Merge branch 'develop' into feat/improve-openid-connect-devx
2023-09-16 09:58:53 +02:00
Ankush Menat
9244140816
fix!: Bind development server only to localhost ( #22397 )
2023-09-13 17:26:19 +05:30
Ankush Menat
970a740164
revert: #22308 ( #22389 )
...
* Revert "chore: move function to correct file"
This reverts commit ebfdfa283b .
* Revert "refactor!: merge get_site_url into get_url (#22308 )"
This reverts commit 2001bc278f .
2023-09-13 14:34:52 +05:30
Ankush Menat
64dd4b876b
fix: UI test dont start without init
2023-09-13 12:33:49 +05:30
David Arnold
2001bc278f
refactor!: merge get_site_url into get_url ( #22308 )
...
* chore: merge get_site_url into get_url
* fix: keep alias with deprecation notice
2023-09-11 15:09:05 +05:30
David Arnold
87684e2647
feat: add werkzeug proxyfix to development server
2023-09-07 01:30:25 +02:00
Ankush Menat
b29272c092
fix: ipython console
...
https://github.com/ipython/ipython/issues/13966
2023-09-03 19:59:41 +05:30
Raffael Meyer
8f7a4f6697
Merge pull request #21873 from blaggacao/dont-exceed-python-module-boundary
2023-08-21 17:10:27 +02:00
Ankush Menat
fd740b780b
fix: use vanilla eval
2023-08-21 12:09:45 +05:30
David Arnold
8dabd2bae6
refactor: make the app source accessor explicit
...
The parent folder of a python module (inside `./site-packages`) can be
`./lib`. Separate code paths that depend on the app source into its own
getter so that patching that function becomes easier in those cases
where the python module is not served from the source checkout.
2023-08-20 01:11:05 +02:00
David Arnold
6b2bb9a2ab
fix: add env overrides for service orchestration ( #21577 )
...
This avoids having to manipulate config files in brittle bash
entrypoints that need to react to dynamic service discovery.
This significantly improves the operability of various bench sites.
2023-07-14 11:39:01 +05:30
Suraj Shetty
fe25fe1db1
feat: A flag (--save-metafiles) to save esbuild metafiles
...
- Useful for analysing bundle size
2023-06-26 09:14:17 +05:30
Alfredo Altamirano
c6b1b026c5
fix: data-import command fails with local files ( #20521 ) ( #21381 )
...
* fix: data is retrieved from db instead of local file
* fix: data import command only accepts absolute path
* fix: revert expanduser
- Shells expand it. Works fine with bash/zsh
- Doesn't work anyway as click wont let you init a path that doesn't
exist
* Revert "fix: data is retrieved from db instead of local file"
This reverts commit cbe50a26da61e01b5a9a7c51f8632defb0913aab.
* fix: allow local import if from console
---------
Co-authored-by: Alfredo Altamirano <Ahuahuachi@users.noreply.github.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
2023-06-20 18:09:23 +05:30
Ankush Menat
63a1a32594
chore: remove unused argument
2023-06-13 19:03:52 +05:30