#8271 Remove CommitRun usage

v1.11.0
closed
indexless (10)
General
nobody
9 hours ago
2019-03-13
No

Looks like CommitRun models & data haven't really been used since [#6272]. Usage is only in tests and repo refresh code, not actual site code. There are also some queries that can be pretty large, when thousands of commits are involved, like:

if CommitRunDoc.m.find(dict(commit_ids={'$all': run1.commit_ids},
                            _id={'$ne': run1._id})).count():

Related

Tickets: #6272

Discussion

  • Dave Brondsema

    Dave Brondsema - 2019-03-13
    • status: in-progress --> review
     
  • Dave Brondsema

    Dave Brondsema - 2019-03-13

    Done on branch db/8271 here and db/8271 on forgehg repo

    And can clean up some mongo space with db.repo_commitrun.drop()

     
  • Kenton Taylor

    Kenton Taylor - 2019-03-14
    • status: review --> closed
     
  • Kenton Taylor

    Kenton Taylor - 2019-03-14

    Branches on both repos merged.

     
  • Dave Brondsema

    Dave Brondsema - 9 hours ago
    • Milestone: unreleased --> v1.11.0
     

Log in to post a comment.