userjack6880 / Open-DMARC-Analyzer

Open DMARC Analyzer is an Open Source DMARC Report Analyzer to be used with DMARC reports that have been parsed by John Levine's rrdmarc script or techsneeze's dmarcts-report-parser.
GNU General Public License v3.0
224 stars 24 forks source link

Set date range via UI #5

Closed ntimo closed 2 years ago

ntimo commented 5 years ago

Hello, it would be awesome to be able to set the date range via the web ui this would make browsing the latest reports much easier. Now you would have to edit the config.php on the server to change this.

Maybe a date picker where you can simply select a month or a custom date range or of course all would be nice.

Best wishes, Timo

userjack6880 commented 5 years ago

There was an existing ability to add a GET option to the url to change when the date starts. I still haven't written anything for the end date, but that'll eventually get included. Right now, it's more useful to see things from x date up until today.

The range option is set in number of weeks (it's the only thing I support right now, will add days and months later). For example: index.php?range=2w

Alpha 4 has added a control that lets you set the starting date back/forwards a week. It's a bit clumsy, but will work for now. This is a feature that'll continue to be improved as the need arises.

ntimo commented 5 years ago

I have to say I really like to new 1 week back/forwards system, but this could maybe be made configurable via the config.php so that you can set the default time range for this. So it can maybe be more then just 1 week. I didn't know that using index.php?range=2w was possible this is defiantly nice.

userjack6880 commented 5 years ago

How configurable on the config file do you mean? Like what parameter - how many weeks it goes back or the default start period?

ntimo commented 5 years ago

If you take a look at the config in the master branch I would simply use define('DATE_RANGE', '-1 week'); to define the default period that the fowards/backwards button uses. This way it can be -1 one week or even -2 months.

userjack6880 commented 3 years ago

I know it's been nearly 2 years since this was last addressed. Finally coming around to this issue - you can put in there '-1 month' to define a default of 4 weeks. I do realize that there is a minor bug that when you click <- 1 Week or 1 Week ->, it seems to consider the 1 week default only. This will be corrected in the next dev update.

userjack6880 commented 3 years ago

Update: test the new function in the dev branch, see if that suits your needs.

userjack6880 commented 2 years ago

Closing due to age and new major alpha version.