Problem/Motivation

Some issues logged on the log are already solved but can pollute the statistics view because the dates are older than the bug fix.

Proposed resolution

Add a filter by a date range.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

omarlopesino’s picture

Status: Active » Closed (won't fix)

Thanks for the contribution! However, that looks a custom solution for a very specific problem. There are better ways to check logs do not appear. For example, doing a manual test reproducing the error and check the error does not happen again. Plus, if the problem is solved, the logs will eventually disappear from db log as db log messages are periodically cleared.

Apologies for not accepting the feature request. I'm open to changing my mind in the case that is strictly necessary in the project.

eduardo morales alberti’s picture

@omarlopesino The module name is "watchdog_statistics", the admin user may need to know the statistics of the last month or the last week.

It is not the same 2000 entries of a log error in the last year than 2000 entries in the last week, with the filter of the date you can measure the log-entries/time.

The error can be tested manually, and you can check that the error is gone, but that is not the point of the feature. The point is to give to the admin role more tools to know which errors are more important to solve.

In my opinion, it is an interesting feature and not a custom one.

omarlopesino’s picture

That argument is completely different from what was said in the description.
However, that is your point of view and I do not share it, sorry. Also, I don't find it useful to argue more.

The issue is still closed, sorry.

And please, do not talk to me like it is obvious a feature is needed, it is really uncomfortable. Thanks!

omarlopesino’s picture

Status: Closed (won't fix) » Needs review

After talking with @Gedur, I have understood that filtering by date helps filtering out errors that may have been fixed in the past, and are not needed to be seen. You have tried to explain it to me but I didn't understand well.

Reopening and doing just some minimal adjustments:

  • The 'relative dates' placeholder is removed, as the filter will be based on dates.
  • The filter is now considering the greater or equal, and less or equal, instead greater and less.
  • The labels have been renamed to 'Timestamp (from)' and 'Timestamp (to)'.
  • The ids of the exposed filters have been renamed to timestamp_from and timestamp_to.

Thanks both for the contribution, changes will be consolidated and added into a new release.

omarlopesino’s picture

I have included to the MR a hook update that will update the view , replacing the configuration with the module's one. The module's main feature is the view, so it is needed to automatically refresh the view once is updated in the module.

Please note @eduardo, that the site where you are using this view will be changed. I think it won't suppose a problem, but if it does, let me know and we can think a solution if needed.

omarlopesino’s picture

Status: Needs review » Fixed

Released in 1.0.5. Thanks, and apologies again in case rejecting the issue have felt uncomfortable.

eduardo morales alberti’s picture

Thank you, @omarlopesino, for reconsidering the feature

  • omarlopesino committed fb28c7fd on 1.0.x
    Issue #3437358: Ensure uuid is not lost after update the views
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.