Problem/Motivation

If we provide a views filter for selecting duplicate files, then site admins can easily build a report of duplicate files.

Steps to reproduce

Proposed resolution

Provide a HasDuplicate filter.

An exposed filter would be useful, so users could choose between displaying all files or duplicate files (or, I guess, non-duplicate files).

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork filehash-3547787

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

mfb created an issue. See original summary.

mfb’s picture

Status: Active » Needs review

mfb’s picture

Issue summary: View changes

Actually, I think it would be useful if we allow the filter to be exposed, so that the end user can turn the duplicate filter on/off? Updating issue summary to say so.

joseph.olstad’s picture

Very nice! Thanks @mfb

mfb’s picture

Issue summary: View changes
Issue tags: +Needs tests

This could use test coverage

mfb’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs tests

  • mfb committed 345a0525 on 3.x
    Issue #3547787 by mfb: Provide a views filter for selecting duplicate...

  • mfb committed 40fe148e on 2.x
    Issue #3547787 by mfb: Provide a views filter for selecting duplicate...

  • mfb committed e4cfda32 on 8.x-1.x
    Issue #3547787 by mfb: Provide a views filter for selecting duplicate...
mfb’s picture

Status: Reviewed & tested by the community » Fixed

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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