-
Notifications
You must be signed in to change notification settings - Fork 246
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: list agent and contact #1308
Conversation
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## main #1308 +/- ##
==========================================
+ Coverage 12.87% 13.29% +0.41%
==========================================
Files 52 56 +4
Lines 1848 1963 +115
==========================================
+ Hits 238 261 +23
- Misses 1610 1702 +92
☔ View full report in Codecov by Sentry. |
@kurogeek can you please explain the root cause? Also, does this happen in both v14 and v15? |
I haven't tested on v15 yet, so I don't know this happens on v15 or not. As I mention on this #1284 (comment), the issue cause by SQL builder is producing the wrong SQL query that contain ambiguous fields and undefined name. SELECT
`name`,`email_id`,`image`,`phone`,`tabContact`.`first_name`,`tabContact`.`last_name`,`tabContact Email`.`email_id`,`tabContact Phone`.`phone`,`tabDynamic Link`.`link_name`
FROM `tabContact`
LEFT JOIN `tabContact Email`
ON `tabContact Email`.`parent`=`tabContact`.`name`
LEFT JOIN `tabContact Phone`
ON `tabContact Phone`.`parent`=`tabContact`.`name`
LEFT JOIN `tabDynamic Link`
ON `tabDynamic Link`.`parent`=`tabContact`.`name`
ORDER BY `tabContact`.`modified` DESC,`tabContact`.`modified` DESC LIMIT 20
SELECT `name`,`is_active`,`user.full_name`,`user.user_image`,`user.email`,`user.username`
FROM `tabHD Agent`
ORDER BY `modified` DESC,`modified` DESC LIMIT 20 From this SQL query, the And after more investigation, I found that rather than fixing the SQL builder, it would be simpler to just query all the fields with |
Fixed with 24937ad |
@nextchamp-saqib This is not fixed. Since there are incoming issues about this problem. #1413 #1418 |
This is the best I can do to fix #1284