Commit graph

45443 commits

Author SHA1 Message Date
Akhil Narang
36ba02e71a
Merge pull request #25024 from riandrys/fix_get_label_from_fieldname_translation
fix: translation get label from fieldname
2024-02-23 10:54:11 +05:30
Nikhil Kothari
bc68afa5b6
fix: spelling of "recording" in button (#25025) 2024-02-23 10:40:31 +05:30
Riandrys Gongora Roman
f992821459
fix: translation get label from fieldname 2024-02-22 16:00:59 -05:00
Corentin Flr
8deed2e519
fix(grid): Add type attribute to buttons (#25021) 2024-02-22 18:07:26 +05:30
Ankush Menat
1ff7b84140
fix: wrap read_only functions correctly (#25018)
`functools.wraps` preserves signature useful for introspection.
2024-02-22 11:16:15 +00:00
Raffael Meyer
d8890a2286
fix: patch unordered list (#24971) 2024-02-22 16:19:23 +05:30
Ankush Menat
00977e0c5e
fix: handle total rows in number card (#25011) 2024-02-22 08:34:08 +00:00
Ankush Menat
14bfcb628d
fix: Guess currency from report row if available (#25009)
* fix: Guess currency from report row if available

In number card using report the curency can be defined on a row in
report, but since we don't pass report data currency fields get
formatted with default currency of global company.

* perf: use reducing common_doc for checking

Overtime this will be smaller than all rows and if everything is
exhausted then no work left to do.
2024-02-22 13:46:08 +05:30
Ankush Menat
4f18daba17
ci: fix ocassional patch test failure (#25001)
Some files in /env are touched during deletion which causes test to fail.

Hunch: running processes still not killed OR background jobs.
2024-02-21 14:55:32 +00:00
Jannat Patel
ab485b2f4f
fix: disable internal columns like _comments from report column selec… (#24998)
* fix: disable internal columns like _comments from report column selection

* fix: only exclude comments from reportview
2024-02-21 19:45:12 +05:30
Ankush Menat
9d0a24f3de
fix: handle email without content adding links (#24994) 2024-02-21 19:18:21 +05:30
Ankush Menat
dd50cc0cf1
fix: Correct type hint (#24990)
closes https://github.com/frappe/frappe/issues/24987
2024-02-21 19:12:21 +05:30
Ankush Menat
99bb5d0303
fix: Cast to string to handle int PK (#24988) 2024-02-21 13:27:38 +00:00
Ankush Menat
2dffcc08ab
fix: allow negative numbers in grid search (#24989) 2024-02-21 13:26:03 +00:00
Ankush Menat
dab06f33b1
fix: add show_dashboard field on custom fields (#24984)
closes https://github.com/frappe/frappe/issues/23637
2024-02-21 12:58:34 +00:00
Ankush Menat
f819558f35
chore: typo (#24983) 2024-02-21 17:33:36 +05:30
Shankarv19bcr
437beaa735 fix: typo 2024-02-21 17:19:32 +05:30
Akhil Narang
9b1735bcb3
Merge pull request #24979 from akhilnarang/enable-ruff-rules
refactor(treewide): enable `RUF` rules
2024-02-21 16:34:30 +05:30
Akhil Narang
75e8457005
chore: add recent ruff changes to git blame ignore
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:36 +05:30
Akhil Narang
3f1e19de85
refactor(treewide): enable RUF rules
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 16:20:28 +05:30
Ankush Menat
718b5b8bee
fix: Private images in PDFs from background jobs (#24980)
* refactor: Private images rendering in PDFs

Private images currently render fine if PDF is generated during a
request as we pass the cookiejar to WKHTML.

Background jobs however fail completeley because they can't retrieve
private images without cookiejar.

This PR converts all image types to base64 encoded sources in HTML
itself, so wkhtmltopdf doesn't have to a fire a request.

* test: private images in pdf
2024-02-21 10:38:02 +00:00
Ankush Menat
3aa7fd77ed
fix: patch QB before setup_module_map (#24981)
This function if cache isn't available CAN result in a DB query, this
will cause cold starts to fail because QB is not yet patched.
2024-02-21 09:57:50 +00:00
Akhil Narang
f027a03dcf
Merge pull request #24974 from akhilnarang/redis-pipeline-handle-exception
fix(redis_wrapper): handle redis not being connected during cache clearing
2024-02-21 12:48:15 +05:30
Maharshi Patel
339e5a0e57
Merge pull request #24975 from maharshivpatel/fix-bold-class
fix: added important to bold class.
2024-02-21 11:38:05 +05:30
Maharshi Patel
18749838b6 fix: added important to bold class.
it is kind of unintuitive that we are adding semi-bold weight ( 600 ) to bold class :D
it also make sense to have !important to the bold class.
2024-02-21 11:32:28 +05:30
Akhil Narang
648828c3b5
fix(redis_wrapper): handle redis not being connected during cache clearing
Ignore the redis connection errors, we can still proceed here

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-21 11:26:57 +05:30
Alan
d2445989e9
Merge pull request #24973 from 18alantom/build-install-deps
fix: install deps if node_modules not found
2024-02-21 11:03:21 +05:30
18alantom
c07c86e4fc fix: install deps if node_modules not found 2024-02-21 10:45:16 +05:30
Corentin Flr
bc0da15d20
fix(capture): Add input to DOM before emitting click on it (#24841) 2024-02-20 20:29:39 +05:30
Ankush Menat
64a5ebb112
refactor!: Drop user based workflow action compatibility (#24956)
* test: run workflow actions in tests

* test: fix workflow action tests

* refactor!: Remove compatibility with `user` based workflow action

* test: cleanup test cleanups

* fix: restore form dict after printing

* test: patch printing during workflow tests
2024-02-20 14:37:13 +00:00
Ankush Menat
b794f868cc
fix: never apply role profiles to standard user (#24968) 2024-02-20 14:07:50 +00:00
Ankush Menat
8093a1d0a5
Merge pull request #24858 from ankush/socketio_auth_headr
feat: socketio using authorization headers
2024-02-20 16:10:11 +05:30
Frappe PR Bot
058d467a48
New translations main.pot (German) (#24960) 2024-02-20 16:09:11 +05:30
Ankush Menat
c37bb58c0c
Merge pull request #24954 from ankush/socketio_perf
perf: Add optional socketio native packages
2024-02-20 11:43:20 +05:30
Ankush Menat
692a400632 perf: Add optional socketio native packages
These are native implementations of some of the things socketio relies
on. Just installing makes few things faster.

These are optional so yarn should ignore failure to install.
2024-02-20 11:07:47 +05:30
Akhil Narang
08962ac22a
Merge pull request #24952 from frappe/dependabot/github_actions/actions/checkout-4
chore(deps): bump actions/checkout from 3 to 4
2024-02-20 10:19:57 +05:30
dependabot[bot]
c5d5fad4cc
chore(deps): bump actions/checkout from 3 to 4
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-02-19 18:39:36 +00:00
Ankush Menat
e306e01660
Merge pull request #24947 from ankush/chore/remove_patch
fix: remove patch for hashing existing tokens
2024-02-19 18:44:39 +05:30
Ankush Menat
9a0fc2e9d9 fix: remove patch for hashing existing tokens 2024-02-19 18:38:21 +05:30
Ankush Menat
41bd0a41cd
Merge pull request #24945 from ankush/perf_cli
perf: defer imports during CLI
2024-02-19 18:23:13 +05:30
Ankush Menat
0a886b7ca8 perf: defer imports during CLI 2024-02-19 18:10:07 +05:30
Ankush Menat
3d488cbb09
Merge pull request #24643 from akhilnarang/optimize-redis
refactor: try to optimize redis calls
2024-02-19 17:45:15 +05:30
Akhil Narang
59ca074780
fix: only try JSON if content-type says so (#24936)
Keep NoneType as the fallback

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 15:29:22 +05:30
Akhil Narang
ec8500ef09
Merge pull request #24884 from barredterra/timeline-communication-date
fix: use communication date in timeline
2024-02-19 14:31:06 +05:30
Ankush Menat
1de72ab07f
Merge pull request #24938 from ankush/handle_cronless_jobs
fix: handle bad cron expressions
2024-02-19 14:30:43 +05:30
Akhil Narang
c60e97410d
chore(cache): add in some tests
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30
Akhil Narang
5343bcb756
fix(redis_wrapper/hdel): don't pipeline if we can avoid it
For a single deletion it doesn't make much sense, so just directly delete and return

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30
Akhil Narang
94365a59bf
chore(utils/caching): drop unnecessary indent
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30
Akhil Narang
7c82115f5b
refactor(redis): DEL -> UNLINK
This is beneficial since unlink is non blocking, it will run in a different thread if the data passed is large
https://redis.io/commands/unlink/

Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30
Akhil Narang
886d4ffc25
refactor(boot): frappe.cache() -> frappe.cache
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
2024-02-19 14:28:35 +05:30