Skip to content

Force report processing does not reprocess reports already marked as processed #856

Description

@sr-rossanderson

Patchman supports forcing report processing, but the force behaviour is not propagated through to Report.process().

A processed report can be selected for reprocessing by the CLI, but Report.process() immediately exits because it checks:

if self.processed:
    return

Expected behaviour:

When force=True, already-processed reports should be processed again.

Suggested fix:

def process(self, find_updates=True, verbose=False, force=False):

and:

if self.processed and not force:
    return

Then pass the CLI force value through:

report.process(find_updates=False, force=force)

Impact:

Repository mapping changes and similar processing fixes cannot be applied retroactively without directly modifying report state or database records.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions