Skip to content
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

fix(Virtual DocType): don't call db get_value in link field validation #23620

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

NagariaHussain
Copy link
Member

Link fields to virtual doctypes don't work right now.

Any better suggestions are welcome.

@NagariaHussain NagariaHussain requested review from a team and shariquerik and removed request for a team December 5, 2023 17:31
Copy link

codecov bot commented Dec 5, 2023

Codecov Report

Merging #23620 (7afc315) into develop (b23ee47) will decrease coverage by 0.02%.
Report is 24 commits behind head on develop.
The diff coverage is 0.00%.

❗ Current head 7afc315 differs from pull request most recent head 2688a4d. Consider uploading reports for the commit 2688a4d to get more accurate results

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23620      +/-   ##
===========================================
- Coverage    62.18%   62.17%   -0.02%     
===========================================
  Files          774      774              
  Lines        74155    74157       +2     
  Branches      6393     6393              
===========================================
- Hits         46115    46108       -7     
- Misses       24372    24381       +9     
  Partials      3668     3668              
Flag Coverage Δ
server 71.11% <0.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

frappe/client.py Outdated Show resolved Hide resolved
frappe/client.py Outdated Show resolved Hide resolved
frappe/client.py Show resolved Hide resolved
@NagariaHussain NagariaHussain enabled auto-merge (squash) December 7, 2023 16:14
@NagariaHussain
Copy link
Member Author

1 test failing @ankush:

CleanShot 2023-12-07 at 21 51 24@2x

@ankush ankush disabled auto-merge December 7, 2023 16:27
@ankush ankush merged commit cfc781e into develop Dec 7, 2023
21 of 22 checks passed
@ankush ankush deleted the fix-virtual-doctype-linkfield branch December 7, 2023 16:28
@ankush ankush added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Dec 7, 2023
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
#23620)

* fix(Virtual DocType): use get_doc to validate link field instead of db get_value

* refactor: use is_virtual_doctype util & always return a dict

(cherry picked from commit cfc781e)
mergify bot pushed a commit that referenced this pull request Dec 7, 2023
#23620)

* fix(Virtual DocType): use get_doc to validate link field instead of db get_value

* refactor: use is_virtual_doctype util & always return a dict

(cherry picked from commit cfc781e)
shariquerik added a commit that referenced this pull request Dec 8, 2023
…-23620

fix(Virtual DocType): don't call db get_value in link field validation (backport #23620)
shariquerik added a commit that referenced this pull request Dec 8, 2023
…-23620

fix(Virtual DocType): don't call db get_value in link field validation (backport #23620)
frappe-pr-bot pushed a commit that referenced this pull request Dec 12, 2023
# [15.5.0](v15.4.1...v15.5.0) (2023-12-12)

### Bug Fixes

* Add filter in Workspace Card Links Block (backport [#23578](#23578)) ([#23686](#23686)) ([8709738](8709738))
* Avoid duplicate contact names ([#23731](#23731)) ([#23734](#23734)) ([5fb8302](5fb8302))
* change webhook header types to small text ([#23722](#23722)) ([#23727](#23727)) ([b433165](b433165))
* Color indicator style ([709e6eb](709e6eb))
* correct error message ([#23746](#23746)) ([#23748](#23748)) ([4c7124c](4c7124c))
* Correct fallback for social login key ([045d059](045d059))
* ecsape search string ([#23717](#23717)) ([#23720](#23720)) ([d6fbdc9](d6fbdc9))
* escape username on avatar control ([#23713](#23713)) ([#23716](#23716)) ([980dae7](980dae7))
* get users for leaderboard ([#23740](#23740)) ([8234d79](8234d79))
* ignore duplicate contact creation ([#23423](#23423)) ([#23730](#23730)) ([cd50875](cd50875))
* ignore if controller doesn't have `get_list` attr ([#23736](#23736)) ([#23742](#23742)) ([0248c07](0248c07))
* Modified Number system for Nepal ([#23613](#23613)) ([#23634](#23634)) ([29ef929](29ef929))
* only update primary action if it is new action is provided ([0de2b28](0de2b28))
* pass filter to formatter to handle custom logic ([b6e53d4](b6e53d4))
* prioritize link_title if value != link_title ([4efd750](4efd750))
* remove redundant breadcrumbs ([#23653](#23653)) ([4be06db](4be06db))
* **Report View:** clear checked items ([049e066](049e066))
* **sentry:** set the user's name correctly ([859fd74](859fd74))
* set correct sentry tags ([cc04b63](cc04b63))
* Show server script name in traceback ([#23676](#23676)) ([132ac1d](132ac1d))
* undefined variable name fixed in dark.scss (backport [#23646](#23646)) ([#23695](#23695)) ([0fbe079](0fbe079))
* use encoded filename for arabic (latin) language while exporting ([82027ab](82027ab))
* **UX:** Add group by information in report view URLs ([#23547](#23547)) ([#23745](#23745)) ([07ade2c](07ade2c))
* **Virtual DocType:** don't call db get_value in link field validation ([#23620](#23620)) ([e019f13](e019f13))

### Features

* **minor:** child table field as standard filter in list view ([#23625](#23625)) ([ec7aedc](ec7aedc))

### Reverts

* Revert "feat: wkhtmltopdf logging (#19935)" ([52621d9](52621d9)), closes [#19935](#19935)
frappe-pr-bot pushed a commit that referenced this pull request Dec 12, 2023
# [14.59.0](v14.58.0...v14.59.0) (2023-12-12)

### Bug Fixes

* Add filter in Workspace Card Links Block (backport [#23578](#23578)) ([#23685](#23685)) ([29bcf7b](29bcf7b))
* Avoid duplicate contact names ([#23731](#23731)) ([#23733](#23733)) ([78aecd7](78aecd7))
* correct error message ([#23746](#23746)) ([#23747](#23747)) ([7b608e2](7b608e2))
* dont stop next unattached file from being attached if file_url of first file is invalid ([e6dacf0](e6dacf0))
* dont stop next unattached file from being unattached ([394fd77](394fd77))
* ecsape search string ([#23717](#23717)) ([#23719](#23719)) ([6d670fd](6d670fd))
* escape username on avatar control ([#23713](#23713)) ([#23715](#23715)) ([2bc4261](2bc4261))
* german translations for navbar toggles (backport [#23478](#23478)) ([#23502](#23502)) ([da4606c](da4606c))
* get users for leaderboard ([#23739](#23739)) ([33b7066](33b7066))
* ignore if controller doesn't have `get_list` attr ([#23736](#23736)) ([#23741](#23741)) ([649876c](649876c))
* ignore rtlcss for cropperjs ([bf784f9](bf784f9))
* Modified Number system for Nepal ([#23613](#23613)) ([#23633](#23633)) ([fd6cc46](fd6cc46))
* only update primary action if it is new action is provided ([06f5611](06f5611))
* pass filter to formatter to handle custom logic ([eda3dd2](eda3dd2))
* prioritize link_title if value != link_title ([268a2d7](268a2d7))
* remove redundant breadcrumbs ([#23654](#23654)) ([0c4288d](0c4288d))
* **Report View:** clear checked items ([293cd3c](293cd3c))
* undefined variable name fixed in dark.scss (backport [#23646](#23646)) ([#23694](#23694)) ([c2daee6](c2daee6))
* use encoded filename for arabic (latin) language while exporting ([df165dd](df165dd))
* **Virtual DocType:** don't call db get_value in link field validation ([#23620](#23620)) ([1d240a2](1d240a2))

### Features

* add sender_name_field ([eec8e1e](eec8e1e))
* **minor:** child table field as standard filter in list view ([#23625](#23625)) ([40b32ab](40b32ab))
* **minor:** child table field as standard filter in list view (backport [#23625](#23625)) ([#23687](#23687)) ([7342b6d](7342b6d))
* set sender_name_field in reference doc ([5de64d8](5de64d8))
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants