User tests: Successful: Unsuccessful:
fix for #6617 (comment)
Original issue description
Okay, but what about question 2 of my post?
I'm not a Joomla expert but this seems to not be working the way the Joomla Help screen explains it should.
- The Banner Manager > Tracks screen keeps adding new rows of info every HOUR instead of DAILY for each Banner. Shouldn't it only list each Banner's impressions once per day instead of every hour of every day?
The hourly impression tracking creates tons of pages in the Tracks screens over time. I would think that would be a waste of database space and unnecessary Tracks screens.I have attached 3 screenshots of my Joomla 3.4x settings related to the Client and Banner Tracking.
I apologize if this is not a bug but let me know if I should instead post this as a question on the Joomla.org forum instead of GitHub.
Status | New | ⇒ | Pending |
Labels |
Added:
?
|
Category | ⇒ | Components |
it is a bug if we call it daily when it is in fact hourly
On 27 January 2016 at 12:19, waader notifications@github.com wrote:
I tested this successfully, but I would not consider this a bug. I agree
that hourly records are a bit excessive but this a known behaviour for a
long time, see for example here:
http://www.inmotionhosting.com/support/edu/joomla-3/banners/trackingAlso on an existing installation with activated tracking you would get
mixed (hourly, daily) records which isn´t desirable. A neat solution could
be another parameter - there aren´t that many for this component - thatlet´s you switch to daily records.
This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/8825
https://issues.joomla.org/tracker/joomla-cms/8825.—
Reply to this email directly or view it on GitHub
#8825 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
You probably mean the description in the mentioned help text. As I get no help text at all I searched via google and found that this behaviour is known for a long time. So in this case I would say, correct the help text. Anyway.
To me the code is wrong not the text
On 27 January 2016 at 12:42, waader notifications@github.com wrote:
You probably mean the description in the mentioned help text. As I get no
help text at all I searched via google and found that this behaviour is
known for a long time. So in this case I would say, correct the help text.
Anyway.—
Reply to this email directly or view it on GitHub
#8825 (comment).
Brian Teeman
Co-founder Joomla! and OpenSourceMatters Inc.
http://brian.teeman.net/
Rel_Number | 0 | ⇒ | 6617 |
Relation Type | ⇒ | Pull Request for |
I have tested this item successfully on 139d644
Does what it says but I see no issue here.
It would be a nice addition if you could choose between Hourly or Daily through the settings.
If you just change the code, existing environments will start working differently.
When you create a configuration option for it and keep the default the same you won't change existing websites.
This PR has received new commits.
CC: @waader
just a rebase to current staging.
This PR has received new commits.
CC: @waader
Labels |
Added:
?
|
@brianteeman Plese check new language strings
Lol I was just commenting on the strings when I got the email :)
This PR has received new commits.
CC: @waader
my seccond comment still applys ;)
this can't work because we set it to 'Y-m-d H'
in line 81 and override it everytime with 'Y-m-d'
in line 84.
I think moving the line 84 above the if can fix the issue:
$trackDate = JFactory::getDate()->format('Y-m-d');
if ($track_frequency == 'hourly')
{
$trackDate = JFactory::getDate()->format('Y-m-d H');
}
This PR has received new commits.
CC: @waader
This PR has received new commits.
CC: @waader
Looks better thanks
@wojsmol I Tested this correctly, but I'm seeing one inconsistency.
The text states: "These settings apply for all clients unless they are changed for a specific client. "
But the "Track Frequency" is not configurable on client level.
Maybe you can add this to the Client part and then everything is perfect.
This PR has received new commits.
CC: @waader
This PR has received new commits.
CC: @waader
@wojsmol The track frequency at client level does not work, it keeps jumping back to hourly.
Instead of the selected setting.
This PR has received new commits.
CC: @waader
This PR has received new commits.
CC: @waader
After applying the patch run the database fix in Extensions> Manage> Database.
I have tested this item
@wojsmol it works perfectly now
This PR has received new commits.
I have tested this item
After I have installed the patch and fixed the database I'm able to see the track frequency option.
On the client level of the banner I checked the daily option and it doesn't switch to hourly. I have tested with a mysql database.
So in my opinion it works correctly.
I have tested this item
I applied the patch and got the track frequency option which works correctly.
I had done the database fix and can change between daily and hour now.
Using MySQL.
Tested@icampus
@waader @alikon requesting if you can test in postgresql and sqlazure if possible. Thanks.
I have tested this item
Installed the patch and could set the Track Frequency option to Hourly or Daily. I set the option to Hourly. In the Banner edit form I can set the Track Frequency to Hourly or Daily. In the Client edit form I can also set the Track Frequency to Hourly or Daily.
I have tested this item
Tested both options (hourly and daily) and it works like expected after the patch.
I have tested this item
Tested this one with PostgreSQL. Getting several errors, not only related to this issue. Needs a more thorough review.
If needed I can test more on PostgreSQL.
Status | Pending | ⇒ | Needs Review |
Category | Components | ⇒ | SQL Administration com_admin Postgresql MS SQL com_banners Language & Strings Front End Installation Components |
With postgres I get a syntax error for type timestamp with this query:
UPDATE #__banner_tracks SET "count" = ("count" + 1) WHERE track_type=1 AND banner_id=4 AND track_date='2017-04-10 09'
...maybe you could use CAST()
...
Status | Needs Review | ⇒ | Pending |
Labels |
@alikon Can you help here?
gently Reminder @alikon.
the issue is to use a date to compare a timestamp field as reported 1 year and plus ago by @waader #8825 (comment)
see here https://github.com/joomla/joomla-cms/pull/8825/files#diff-4140a4b988c67c2915e88362dd9815ceR79 , so provide the correct data type or compare the same data type before issuing a comparison, this should be a normal rule not a postgresql rule only
I only did a code review.
IMO all lines $trackDate = JFactory::getDate()->format('Y-m-d H');
should be replaced by something like $trackDate = JFactory::getDate()->format('Y-m-d H:00:00');
and the same for $trackDate = JFactory::getDate()->format('Y-m-d');
should be replaced by $trackDate = JFactory::getDate()->format('Y-m-d 00:00:00');
.
Then all values should be OK.
Another issue is that there is no time zone and everything will be calculated in UTC.
Labels |
@franz-wohlkoenig PR is ready for testing.
@brianteeman Please accept language strings.
@brianteeman Please see 5ff5f0e
@brianteeman Fixed in latest commit.
I have tested this item
When Track frequency is set in the banner details ("hourly" or "daily"), it always get the Track Frequency in the global configuration.
Category | Components SQL Administration com_admin Postgresql MS SQL com_banners Language & Strings Front End Installation | ⇒ | Administration com_admin com_banners Components Front End Installation MS SQL Postgresql SQL |
Title |
|
Category | Components SQL Administration com_admin Postgresql MS SQL com_banners Front End Installation | ⇒ | SQL Administration com_admin Postgresql MS SQL com_banners Language & Strings Front End Installation Components |
Fixes to read the track_frequency parameter of the component (banner and client):
banner_patch.txt
banners_patch.txt
This is the oldest PR we have and sadly it started with a bug fix and is now a new feature.
Our policy says no new features in patch levels and no new feature in combat version 3.10. I don't know why this PR hasn't merged before but now I would like to ask you @wojsmol to rebase this PR on J4.
This would be really great, thx. In the meantime I close this PR.
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-06-29 21:47:50 |
Closed_By | ⇒ | HLeithner |
I tested this successfully, but I would not consider this a bug. I agree that hourly records are a bit excessive but this a known behaviour for a long time, see for example here: http://www.inmotionhosting.com/support/edu/joomla-3/banners/tracking
Also on an existing installation with activated tracking you would get mixed (hourly, daily) records which isn´t desirable. A neat solution could be another parameter - there aren´t that many for this component - that let´s you switch to daily records.
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8825.