Closed (fixed)
Project:
Yandex.Metrics
Version:
7.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
17 Nov 2012 at 07:38 UTC
Updated:
15 Apr 2013 at 07:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
man-1982 commentedAdded support for module views. Added default views block. Please, see "admin/structure/views". Done.
Comment #2
kalabroNot sure that we can modify code in hook_schema in this way. Now I get annoying error before updating:
Comment #3
Konstantin Komelin commentedThanks, kalabro!
Besides this patch includes changes for #1643374: Remove clear: both;.
man-1982, it would be better to recreate patch according to the comments:
1) Synchronize code with latest branch changes
2) Extract changes for #1643374: Remove clear: both; into a separate patch and attach it to the appropriate issue.
3) Fix issues with database #2
----
Спасибо, kalabro!
Кроме того этот патч включает изменения для #1643374: Remove clear: both;.
man-1982, было бы лучше пересоздать патч с учетом комментариев:
1) Синхронизировать код с последними изменениями в бренче
2) Выделить изменения для #1643374: Remove clear: both; в отдельный патч и приложить его к соответствующему тикету.
3) Исправить проблемы с базой согласно #2
Comment #4
kalabroTime to review :)
1. To fix #2 we can use the 4th parameter from db_add_field() function instead of db_add_primary_key():
2. When try to add field “Yandex.Metrics: Title for url” I get: Broken/missing handler. Handler views/handlers/views_handler_field_ym_title.inc should be listed in module .info file.
3. Please, add Views to dependencies or check if views is enabled in _yandex_metrics_reports_is_popular_content_enabled(). Otherwise we get "Fatal error: Call to undefined function views_get_view() in sites/all/modules/indev/yandex_metrics/yandex_metrics_reports/yandex_metrics_reports.module on line 1081" while cron running.
4. Unnecessary modifications at the end of yandex_metrics.info file.
Comment #5
man-1982 commentedI've fixed bugs. Please, review my code.
Comment #6
Konstantin Komelin commentedFound some non-critical issues in comments format and codding standards.
But the patch looks good in a whole and will be ported.
Comment #7
Konstantin Komelin commentedGood job, Andrey!
Team, thank you, it's great example of team collaboration!
I commited Andrey's patch with small corrections: http://drupalcode.org/project/yandex_metrics.git/commit/cda7b04
And my congratulations with the first commit, Andrey!
Could you port your changes to the 6.x-2.x branch?
Comment #8
kalabroWhat about upgrade path? We just decided to leave both old style block and views?
Comment #9
Konstantin Komelin commentedkalabro
I'd like to remove old block code at all. What do you think?
man-1982
You created Views plugin with table instead of HTML list. Any reasons why?
Sorry, I missed it before.
----
kalabro
Я бы хотел удалить старый код с корнями. Что думаете?
man-1982
Ты создал Views плагин в виде таблицы, а не HTML списка. В чем причины?
Прошу прощения, что упустил это раньше.
Скриншот как было раньше:

Comment #10
man-1982 commentedI fixed default views according to the wishes in #4
Comment #11
Konstantin Komelin commentedPatch from #10 looks good.
Commited with small text correction.
http://drupalcode.org/project/yandex_metrics.git/commit/8819135
Comment #12
Konstantin Komelin commentedAndrey, could you port your changes to the 6.x-2.x branch?
Comment #13
Konstantin Komelin commentedI will port Views plugin to 6.x-2.x by myself.
Comment #14
Konstantin Komelin commentedDone for 6.x-2.x. It should work with Views 2 as well as Views 3.
Commit: http://drupalcode.org/project/yandex_metrics.git/commit/8b82447
I need somebody to review views integration for 6.x-2.x.
Comment #15
Konstantin Komelin commentedComment #16
Konstantin Komelin commentedRelated task:
Improve text strings. Some strings of Popular Content view should be rephrased.
Comment #17
kalabroAdding tag for related task "Improve text strings. Some strings of Popular Content view should be rephrased."
Comment #18
Konstantin Komelin commentedImproved text strings: http://drupalcode.org/project/yandex_metrics.git/commit/36b0ff8