8000 Merge from upstream v14 by Alchez · Pull Request #74 · ParsimonyGit/frappe · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Merge from upstream v14 #74

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 299 commits into from
Jan 9, 2023

Conversation

mergify bot and others added 12 commits November 10, 2022 11:29
…frappe#18824)

Bumps [socket.io-parser](https://github.com/socketio/socket.io-parser) from 4.0.4 to 4.0.5.
- [Release notes](https://github.com/socketio/socket.io-parser/releases)
- [Changelog](https://github.com/socketio/socket.io-parser/blob/main/CHANGELOG.md)
- [Commits](socketio/socket.io-parser@4.0.4...4.0.5)

---
updated-dependencies:
- dependency-name: socket.io-parser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit 104942e)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit ab35ec8)

Co-authored-by: AMS Fauzi <33210916+AMSFauzi7869@users.noreply.github.com>
(cherry picked from commit faab012)
* Load from db only if doc passed is not of type Document. This was
  added earlier to load in case of dicts. ref: frappe#11883
* Move blocks to evaluate only if required
* Add typing hints

(cherry picked from commit a093b7b)

Co-authored-by: gavin <gavin18d@gmail.com>
(cherry picked from commit 19bb792)
…frappe#18809)

* fix : correct inbox view route (frappe#18807)

Close frappe#18625 and frappe#14832
More details here : https://discuss.erpnext.com/t/mail-inbox-view-does-not-work-no-mailbox-icon/92143/3?u=jodeq

(cherry picked from commit cd7bafa)

# Conflicts:
#	frappe/public/js/frappe/list/list_view_select.js

* chore: fix conflict

Co-authored-by: JodeQ <jodeq@users.noreply.github.com>
…rappe#18820)

* fix: raise exception if doc before save is not found

* test: ensure error is raised when trying to save new doc using `doc.save()`

* chore: add comment explaining condition

* test: clearer name and docstring

(cherry picked from commit a42ca7d)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
@Alchez Alchez requested a review from vjFaLk November 11, 2022 08:52
@commit-lint
Copy link
commit-lint bot commented Nov 11, 2022

Build System

Bug Fixes

Code Refactoring

Performance Improvements

Reverts

  • async await in breadcrumbs.js (6a1e619)

Chore

Features

Continuous Integration

Contributors

mergify[bot], ankush, shariquerik, Alchez, frappe-bot, rohitwaghchaure

Commit-Lint commands

You can trigger Commit-Lint actions by commenting on this PR:

  • @Commit-Lint merge patch will merge dependabot PR on "patch" versions (X.X.Y - Y change)
  • @Commit-Lint merge minor will merge dependabot PR on "minor" versions (X.Y.Y - Y change)
  • @Commit-Lint merge major will merge dependabot PR on "major" versions (Y.Y.Y - Y change)
  • @Commit-Lint merge disable will desactivate merge dependabot PR
  • @Commit-Lint review will approve dependabot PR
  • @Commit-Lint stop review will stop approve dependabot PR

ankush and others added 16 commits November 11, 2022 17:00
)

(cherry picked from commit bfab719)

Co-authored-by: jll-02 <63648645+jll-02@users.noreply.github.com>
…pe#18855)

(cherry picked from commit 7f3ea7a)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
* perf: faster generate_hash

(cherry picked from commit fcaa16b)

* refactor: remove `txt` param from generate_hash use

(cherry picked from commit f34f703)

# Conflicts:
#	frappe/tests/test_modules.py

* chore: conflicts

Co-authored-by: Ankush Menat <ankush@frappe.io>
Co-authored-by: Ankush Menat <ankushmenat@gmail.com>
(cherry picked from commit 838a523)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
…g settings (frappe#18867) (frappe#18869)

(cherry picked from commit feb9190)

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
)



(cherry picked from commit 990a96e)

Co-authored-by: Ankush Menat <ankush@frappe.io>
# [14.15.0](frappe/frappe@v14.14.3...v14.15.0) (2022-11-15)

### Bug Fixes

* avoid patching QB if already patched ([a8ba877](frappe@a8ba877))
* breadcrumbs is broken ([90ca7b1](frappe@90ca7b1))
* check if the doctype exists before adding default logtypes in log settings ([frappe#18867](frappe#18867)) ([frappe#18869](frappe#18869)) ([93fe3e9](frappe@93fe3e9))
* dashboard view from workspace (backport [frappe#18779](frappe#18779)) ([frappe#18813](frappe#18813)) ([42f5e04](frappe@42f5e04))
* decorator ordering ([2245cc0](frappe@2245cc0))
* dont allow reading attributes of unsafe objects (backport [frappe#18706](frappe#18706)) ([frappe#18806](frappe#18806)) ([2b193bd](frappe@2b193bd)), closes [frappe#18784](frappe#18784)
* hardcode doctype in google oauth callback ([frappe#18862](frappe#18862)) ([78a337b](frappe@78a337b))
* page has an empty menu button ([b2bbcde](frappe@b2bbcde))
* raise exception if doc before save is not found ([frappe#18796](frappe#18796)) ([frappe#18820](frappe#18820)) ([7505a0d](frappe@7505a0d))
* reportview permlevel bug ([frappe#18822](frappe#18822)) ([frappe#18828](frappe#18828)) ([ec248a9](frappe@ec248a9))
* **security:** prevent xss attack in search ([frappe#18847](frappe#18847)) ([frappe#18850](frappe#18850)) ([8807035](frappe@8807035))

### Features

* Set default SQL statement timeouts ([8ab95f4](frappe@8ab95f4))
* show utilization percent on RQ Worker ([frappe#18868](frappe#18868)) ([frappe#18870](frappe#18870)) ([a7060fa](frappe@a7060fa))

### Performance Improvements

* faster as_list and as_dict ([33d6369](frappe@33d6369))
* faster generate_hash (backport [frappe#18825](frappe#18825)) ([frappe#18851](frappe#18851)) ([bb5c7d5](frappe@bb5c7d5))
* **workflow:** get_transitions ([frappe#18834](frappe#18834)) ([frappe#18839](frappe#18839)) ([3f71181](frappe@3f71181))

### Reverts

* async await in breadcrumbs.js ([6a1e619](frappe@6a1e619))
(cherry picked from commit 425e4bf)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
…rappe#18848) (frappe#18883)

* refactor: Use safer hashing algorithm for verified_command (frappe#18848)

(cherry picked from commit ba27434)

* refactor: hmac generation

Reduce code duplication

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 0d5d2cf)

Co-authored-by: Ankush Menat <ankush@frappe.io>
…8901)

(cherry picked from commit 7063357)

Co-authored-by: Ankush Menat <ankush@frappe.io>
[skip ci]

(cherry picked from commit 6428930)

Co-authored-by: Jannat Patel <31363128+pateljannat@users.noreply.github.com>
(cherry picked from commit f3c00c2)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
…18911)

* fix(file): attached_to_name can be an integer

incorrect validation introduces via
frappe#18880

* test(file): set correct fieldname

* fix: check for str, int explicitly

(cherry picked from commit edf01ee)

Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>
phot0n and others added 29 commits December 27, 2022 13:00
…fix/pr-19407

fix(subscription): Allow remote_login even if subscription.expiry is not set (backport frappe#19407)
…fix/pr-19411

fix(minor): dont set autoincrement autoname by default for child table (backport frappe#19411)
…appe#19420)

(cherry picked from commit a72fdcb)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
# [14.21.0](frappe/frappe@v14.20.0...v14.21.0) (2022-12-27)

### Bug Fixes

* Allow emailing disabled user ([frappe#19382](frappe#19382)) ([frappe#19383](frappe#19383)) ([fb7f645](frappe@fb7f645))
* **error snapshot:** fix seen update qeury in error snapshot to work with postgres ([frappe#19373](frappe#19373)) ([frappe#19374](frappe#19374)) ([0ab6a30](frappe@0ab6a30))
* **minor:** dont set autoincrement autoname by default for child table ([8ff3f4c](frappe@8ff3f4c))
* not able to make delivery note from pick list ([frappe#19418](frappe#19418)) ([frappe#19420](frappe#19420)) ([d2d776c](frappe@d2d776c))
* shift-select checkboxes ranges ([frappe#19367](frappe#19367)) ([frappe#19368](frappe#19368)) ([bd79b03](frappe@bd79b03))
* **subscription:** Allow remote_login even if subscription.expiry is not set ([1d777dc](frappe@1d777dc))

### Features

* hook `ignore_links_on_delete` to skip doctypes on delete ([frappe#19347](frappe#19347)) ([frappe#19356](frappe#19356)) ([a457447](frappe@a457447))
…#19422) (frappe#19432)

* fix(socketio)!: Event list_update > doctype_subscribe

(cherry picked from commit c960382)

# Conflicts:
#	frappe/realtime.py

* chore: resolve conflict

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
…frappe#19398) (frappe#19402)

Signed-off-by: Sabu Siyad <hello@ssiyad.com>

Signed-off-by: Sabu Siyad <hello@ssiyad.com>
(cherry picked from commit 5e6ac70)

Co-authored-by: Sabu Siyad <hello@ssiyad.com>
(cherry picked from commit 0e40dff)

Co-authored-by: Sagar Vora <sagar@resilient.tech>
(cherry picked from commit ef82ef9)

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
(cherry picked from commit d072e20)
…fix/pr-19395

chore: remove code for handling old dict-based meta cache (backport frappe#19395)
This is static data present in code, no need to apply permissions.

closes frappe#19394

(cherry picked from commit 5ece1d7)

Co-authored-by: Ankush Menat <ankush@frappe.io>
…rappe#19454)

* fix: prevent emails from being queued multiple times

* style: fmt

* refactor: optimistic error handling

- Combined email queue sending to single call instead of different
  branches for testing.
- If failing to get jobs -> attempt sending anyway. Failure could be
  form one bad job which shouldn't completely stop everything.

* chore: type

Co-authored-by: Ankush Menat <ankush@frappe.io>
(cherry picked from commit 6b0950e)

Co-authored-by: stephen <stephenBDT@users.noreply.github.com>
…fix/pr-19458

fix: only allow system manager to create/edit email templates by default (backport frappe#19458)
* refactor: OAuth

* Added typing hints for Oauth APIs and dependant utils
* Simplify oauth core flows
* Remove long commented code
* Use newer, simpler syntax for better readability

(cherry picked from commit d13c377)

* chore(oauth): Make provider typing optional in redirect_post_login

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
(cherry picked from commit 2571876)

* chore: add positional args back to login_oauth_user

Co-authored-by: Gavin D'souza <gavin18d@gmail.com>
## [14.21.1](frappe/frappe@v14.21.0...v14.21.1) (2023-01-04)

### Bug Fixes

* Allow everyone to read geo data ([frappe#19451](frappe#19451)) ([frappe#19457](frappe#19457)) ([54eecce](frappe@54eecce))
* build_response for re.Match ([frappe#19442](frappe#19442)) ([c3729c7](frappe@c3729c7))
* don't set default in list view for fields not allowed ([373234d](frappe@373234d))
* **link/js:** handle undefined `link_title_doctypes` in `frappe.boot` ([frappe#19398](frappe#19398)) ([frappe#19402](frappe#19402)) ([f314e58](frappe@f314e58))
* only allow system manager to create email templates ([f46a649](frappe@f46a649))
* prevent emails from being queued multiple times ([frappe#19386](frappe#19386)) ([frappe#19454](frappe#19454)) ([21b84a4](frappe@21b84a4))
* show document title instead of name in like notification email subject ([41af70d](frappe@41af70d))
* **socketio:** Event list_update > doctype_subscribe (backport [frappe#19422](frappe#19422)) ([frappe#19432](frappe#19432)) ([4529e6d](frappe@4529e6d))
* **test:** override fields of test doctype if passed ([8a86a8c](frappe@8a86a8c))
* use title instead of name in message body too ([5878b53](frappe@5878b53))
@vjFaLk vjFaLk merged commit 35f466e into ParsimonyGit:parsimony-production-v14 Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0