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: ignore if controller doesn't have get_list attr #23736

Merged
merged 1 commit into from
Dec 11, 2023

Conversation

vorasmit
Copy link
Contributor

Frappe Internal Reference: https://support.frappe.io/app/hd-ticket/7100
Only process links in virtual doctypes which has get_list attribute

@vorasmit vorasmit requested review from a team and surajshetty3416 and removed request for a team December 11, 2023 14:47
Copy link

codecov bot commented Dec 11, 2023

Codecov Report

Merging #23736 (2815d79) into develop (f847a61) will decrease coverage by 0.01%.
Report is 7 commits behind head on develop.
The diff coverage is 81.81%.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #23736      +/-   ##
===========================================
- Coverage    62.24%   62.23%   -0.01%     
===========================================
  Files          774      774              
  Lines        74120    74125       +5     
  Branches      6372     6372              
===========================================
- Hits         46133    46132       -1     
- Misses       24356    24362       +6     
  Partials      3631     3631              
Flag Coverage Δ
server 71.08% <81.81%> (-0.03%) ⬇️

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

@ankush ankush merged commit f62f447 into frappe:develop Dec 11, 2023
24 of 25 checks passed
@ankush
Copy link
Member

ankush commented Dec 11, 2023

@ruthra-kumar fyi. Maybe it should be implemented or all get_list instances need to have this check.

@ankush ankush added backport version-14-hotfix backport to version 14 backport version-15-hotfix Backport the PR to v15 labels Dec 11, 2023
mergify bot pushed a commit that referenced this pull request Dec 11, 2023
mergify bot pushed a commit that referenced this pull request Dec 11, 2023
@ruthra-kumar
Copy link
Member

@ruthra-kumar fyi. Maybe it should be implemented or all get_list instances need to have this check.

@ankush
Even though it is a child table, it being virtual means FW purely relies on get_list method to function properly. I think its better to implement it.

ankush pushed a commit that referenced this pull request Dec 12, 2023
(cherry picked from commit f62f447)

Co-authored-by: Smit Vora <smitvora203@gmail.com>
ankush pushed a commit that referenced this pull request Dec 12, 2023
(cherry picked from commit f62f447)

Co-authored-by: Smit Vora <smitvora203@gmail.com>
@vorasmit vorasmit deleted the fix-hasattr branch December 12, 2023 11:51
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 28, 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.

3 participants