Skip to content

Overhaul code review#93

Merged
joshpencheon merged 12 commits intomasterfrom
audit_code_incrementally
Jan 29, 2021
Merged

Overhaul code review#93
joshpencheon merged 12 commits intomasterfrom
audit_code_incrementally

Conversation

@joshpencheon
Copy link
Contributor

@joshpencheon joshpencheon commented Jan 27, 2021

This PR is a refactoring and feature enhancement of the audit:code code. It:

  • refactors existing logic, to make it a little more reusable. (the code still needs a major overhaul, ideally)
  • Makes interactive mode "lazy" - diffs are computed on the fly, making working with large, stale, repositories easier.
  • Adds the ability for review information to be outputted as CSV, for external analysis / team allocation.
  • Adds the ability for reviews to be filled using a CSV file, to allow a user to work on an isolated partition.

I've kept this as one big PR, rather than numerous smaller ones, as the end goal was to be able to partition large amount of code review and allocate it out in an out-of-band process, and all the changes here are needed for that.

One way of giving this a go is to check the branch out, and try to dogfood and do the outstanding review on ndr_dev_support!

allows us to fetch lazily/interactively for large repositories
This commit knowingly disables interactive mode temporarily
Sorting by last_changed_revision isn't a helpful order to review in - an unreviewed
file with lots of churn would appear as a low priority, for example.

See original discussion on #7
Allows code review to be partitioned between multiple members of staff up front
Copy link
Contributor

@bshand bshand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, and I've tested it successfully on my local git working copy.

Copy link
Contributor

@ollietulloch ollietulloch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @joshpencheon - looks good. Succesfully produced an outfile.

The filter logic is neat, it'll make chunking up code review much easier.

@joshpencheon joshpencheon merged commit 7bd9e27 into master Jan 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants