Commit graph

2036 commits

Author SHA1 Message Date
David
326b6cdc8f
fix: assert equal on docs; compare dicts 2024-09-12 00:23:25 +02:00
David (aider)
7e66c2be50
feat: add unit tests for URL tracker functions 2024-09-12 00:08:11 +02:00
David
e0fe0b8c88
chore: simplify config calling 2024-09-11 23:24:26 +02:00
David
fe73c9f1aa
feat: add value tracer for test debugging 2024-09-05 21:58:19 +02:00
David
801e00d1e8
fix: --pdb drop directly into test case frame 2024-09-05 00:42:53 +02:00
David
789475e05f
chore: lint 2024-09-04 19:58:10 +02:00
David (aider)
f194eeee92
feat: add --pdb 2024-09-04 19:49:52 +02:00
David (aider)
349e9c67f3
feat: Add --pdb and --pdb-on flags to FrappeTestCase 2024-09-04 19:46:15 +02:00
David (aider)
73e253fde2
docs: add extensive docstring to debug_on 2024-09-04 19:46:15 +02:00
David
cde915e7fe
feat: add debug tests 2024-09-04 19:46:14 +02:00
Rushabh Mehta
b7758be1b5 fix(test): fix tests 2024-08-14 17:08:01 +05:30
gruener
8a2aa92389
fix: Fixes mariadb orm to return list instead of tuple as the typisat… (#27179)
* fix: Fixes mariadb orm to return list instead of tuple as the typisation suggests it

* fix: inverted fix for pg: Expect tuple as data_type for _transform_result

* fix: Fixed failing upstream spec due to data_type change
2024-08-09 09:27:07 +05:30
Rushabh Mehta
057d32a02d fix(test): complete workspace setup before running UI tests 2024-08-07 18:16:52 +05:30
Rushabh Mehta
0837a39335 fix(test): complete workspace setup before running UI tests 2024-08-07 09:50:17 +05:30
Philipp Gruener
ffcd6d1ff5 fix: Added missing newlines after merge (for pre-commit checks) 2024-07-16 22:52:31 +02:00
gruener
efc9bdd4f6
Merge branch 'develop' into bugfix/postgres_schema_support 2024-07-16 22:47:01 +02:00
Philipp Gruener
7df4185f87 fix: removed TODO marks 2024-07-08 15:16:51 +02:00
Philipp Gruener
c19e844516 fix: Re-establish orig connection in tearDown for failing cases, that following specs dont rely on broken connection 2024-07-05 16:43:15 +02:00
Philipp Gruener
ea3d1365fe fix: Adjusted the retrieved dbms errors to also handle mariadb errors correctly in specs. 2024-07-05 16:26:51 +02:00
Philipp Gruener
1b56b4f3f7 fix: Reset to orig env vars in specs 2024-07-05 15:44:04 +02:00
Philipp Gruener
abba28be3b feat: Added env db options for db, password and pg_schema 2024-07-05 12:05:20 +02:00
Philipp Gruener
d3591c7170 fix: Added missing ruff adjustments 2024-07-04 23:13:14 +02:00
Philipp Gruener
afd95691e9 fix: Fixed schema isolation/support for postgres connectivity. 2024-07-04 22:40:47 +02:00
Philipp Gruener
442ad03d7b feat: Adds possibility of permitting DB credentials via ENV vars instead of persisting them on the volume. 2024-07-04 22:24:21 +02:00
Ankush Menat
a65c6215e9
fix: Email tracking without "use_ssl" (#26718)
Everyone uses TLS these days, idk why this config exists.

closes https://github.com/frappe/frappe/issues/26717
2024-06-10 08:40:43 +00:00
Ankush Menat
04642edd63
fix: Move Monitor dump to after_response (#26703)
It needs access to response to capture status code and size etc
2024-06-06 14:38:22 +00:00
Ankush Menat
82e6a9a081
fix: Slightly efficient scheduling (#26657)
- Scheduler tick is 1 minute
- Fastest jobs are at least 4 minutes apart.

3/4 times we are wasting cpu cycle for each site.

Fix:
- Check every 4 minutes.
- Align the sleep around real clock to fix problem of jobs executing
  randomly in any part of the minute.

Cons:
Anything not aligned with scheduler interval will be delayed.
2024-06-04 05:21:47 +00:00
Ankush Menat
fb27368a53
feat: Link fields with UUID datatype in DB (#26625)
Link fields that refer to doctypes with UUID naming will also be UUID.
2024-05-31 09:17:09 +00:00
Ankush Menat
59bbbd7b56 perf: optimize scheduling
- Randomize scheduling order
- Cache dormant status for 1 hour (this gets checked every second, too much work)
2024-05-27 12:21:11 +05:30
Ankush Menat
005e74b20d
perf: Avoid coalesce for between filters (#26531)
- Avoid on `between` + date
- Avoid on timestamp fields
- Avoid on `>` and `>=` comparisons
2024-05-22 09:32:59 +00:00
Ankush Menat
513957ee40
Merge pull request #26457 from ankush/ci_skip
fix(DX): Don't run CI if there are no tests
2024-05-17 13:17:16 +05:30
Ankush Menat
afed21e29f fix: dont translate syntax error messages
closes https://github.com/frappe/frappe/issues/26443
2024-05-17 13:05:06 +05:30
Ankush Menat
6fb6c4035c
Merge pull request #26433 from ankush/query_optimzier
feat(recorder): Suggest index for optimizing query
2024-05-14 19:08:41 +05:30
Ankush Menat
b169f8780a feat: Add identified index from UI 2024-05-14 18:54:38 +05:30
Ankush Menat
65debdb137
test: Drop threshold for JS builds to be 1% (3.3 KB) (#26426)
Multiple recent cases of unknowingly pushing more JS in `/app`'s JS.
2024-05-13 10:08:14 +00:00
Ankush Menat
49fb60a0dd
Merge pull request #26360 from rutwikhdev/upgrade-fullcalendar
feat: upgrade fullcalendar
2024-05-13 13:38:34 +05:30
Ankush Menat
c3c579bdc5 test: update asset size values 2024-05-11 13:51:42 +05:30
Nikhil Kothari
fb2753fcaf
fix: pass user and shared params when checking for cache keys (#26402)
* fix: pass user and shared params when checking for cache keys

* chore(test): added test for user cache in redis_cache
2024-05-10 12:48:43 +00:00
Ankush Menat
5de5e25df6
fix: datetime comparison in QB (#26364)
closes https://github.com/frappe/frappe/issues/26363
2024-05-09 10:19:27 +00:00
Ankush Menat
f07ea138d5
test: check redis calls and overhead (#26356) 2024-05-07 10:05:21 +00:00
Ankush Menat
aa48d7d84a
test: smtp4dev API changes (#26330) 2024-05-06 16:23:25 +05:30
Ankush Menat
2796f8e002
Merge pull request #26314 from ankush/fix/update_notifications
feat: improved update notifications
2024-05-04 15:22:45 +05:30
Ankush Menat
8ab308838b feat: Keep certain keys persistent in cache 2024-05-04 15:08:35 +05:30
Ankush Menat
e0c171b23b feat: show security issues count
chore: conflicts
2024-05-04 15:08:34 +05:30
Ankush Menat
5ca14bb171 feat: FC specific update notifications 2024-05-04 15:08:34 +05:30
Ankush Menat
2b95aa66a7
test: increase threshold for perf test (#26316)
We are >2x faster since the time this test was written 😄
2024-05-04 06:34:16 +00:00
Ankush Menat
65b3c42635
fix: only redirect to same domain (#26304)
This limits post login redirects to same domain to avoid social engineering attempts.
2024-05-02 18:02:18 +05:30
Rohan
4bfcccfd11
fix: ignore unittest.mock objects during typing validations (#26301)
* fix: ignore unittest.mock objects during typing validations

* fix: check against base mock class

---------

Co-authored-by: Rohan Bansal <rohan@agritheory.dev>
2024-05-02 11:00:02 +00:00
Ankush Menat
ff31290d33
Merge pull request #25971 from rutwikhdev/discard-transactions
feat: Discard transactions
2024-04-29 16:08:37 +05:30
Ankush Menat
1e4c182b52
fix: retry count per doc instead of global (#26159) 2024-04-25 09:34:52 +00:00