#4126 Show file statistics on scm browsing pages

v1.0.0
closed
nobody
42cc (432)
SCM
2015-08-20
2012-04-27
No

show file's info, like size in bytes, lines

Related

Tickets: #4126

Discussion

  • Yaroslav Luzin - 2012-05-03

    Closed #41 and pushed changes into 42cc_4126

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-03
    • status: open --> code-review
    • qa: ᗫave ᙖrondsema
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-04

    Please provide a branch that is based on a current dev with only changes for this ticket on it. E.g. not the old 42cc tickets from weeks ago, nor ticket:21

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-08
    • status: code-review --> open
     
  • Yaroslav Luzin - 2012-05-10

    Must be some mistake... I'll look into it.

     
  • Yaroslav Luzin - 2012-05-10

    Cherry picked a commit related to the ticket, removed the branch and pushed again. Please check.

    The ticket #41 was previously #21 before split, that's why probably the branch was based on ticket:21

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-10
    • status: open --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-22
    • status: code-review --> open
     
  • Dave Brondsema

    Dave Brondsema - 2012-05-22

    Thanks for repushing the branch. Sorry this has taken a while to get to reviewing. Here's a few things to tweak:

    • the <h3> includes the whole file content, which is not correct
    • let's have a unit test for generate_code_stats()
    • what happens with unicode text? Won't len() return a character count and be incorrect for a file size? It'd be nicer to get the file size more directly, so that encodings don't affect it.
    • I think the data_line_count would be a bit more accurate if you skip lines with just whitespace. E.g. in many cases there are lines with just spaces. A precompiled regex using \s would work well I think.
     
  • Yaroslav Luzin - 2012-05-23

    OK, I've created #71: [#4126] Tests, fixes and amendments (1cp) to fix this

     

    Related

    Tickets: #4126

  • Yaroslav Luzin - 2012-05-30

    closed #71, changes in 42cc_4126

     
  • Dave Brondsema

    Dave Brondsema - 2012-05-31
    • status: open --> code-review
     
  • Dave Brondsema

    Dave Brondsema - 2012-06-12
    • status: code-review --> closed
    • milestone: forge-backlog --> forge-jun-15
     

Log in to post a comment.