Giter Club home page Giter Club logo

database-reports's People

Contributors

brandonweeks avatar dannys712 avatar dependabot[bot] avatar fee1-dead avatar hazardsj avatar jonesey95 avatar legoktm avatar mdaniels5757 avatar mzmcbride avatar niharika29 avatar scfc avatar steinsplitter avatar svick avatar technical-13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

database-reports's Issues

Update reports using toolserver.namespace table for labs setup

Labs has the same table, but named toolserverdb_p.namespace.

Except when I tried using it in reports/general/blankpages.py, I got:

$ ~/bin/dbreps -r general.blankpages -s commonswiki
Traceback (most recent call last):
  File "/data/project/dbreps/bin/dbreps", line 80, in <module>
    for row in r.get_table_rows(conn):
  File "/data/project/dbreps/.local/lib/python2.7/site-packages/reports/general/blankpages.py", line 51, in get_table_rows
    ''', (self.site, ))
  File "cursor.pyx", line 120, in oursql.Cursor.execute (oursqlx/oursql.c:16822)
  File "cursor.pyx", line 111, in oursql.Cursor.execute (oursqlx/oursql.c:16693)
  File "statement.pyx", line 157, in oursql._Statement.prepare (oursqlx/oursql.c:8458)
  File "statement.pyx", line 127, in oursql._Statement._raise_error (oursqlx/oursql.c:8082)
oursql.PermissionsError: (1142, "SELECT command denied to user 'p50380g50440'@'10.68.16.7' for table 'namespace'", None)

Any ideas @scfc ?

Updated to the unused template report needed

Over the past few months there has been work done to the unused template report requirements.

  1. Categories which should be excluded should be:

    WHERE cl_to IN (
    'Wikipedia_substituted_templates',
    'Wikipedia_transclusionless_templates',
    'Deprecated_templates_kept_for_historical_reasons',
    'Inactive project pages',
    'Parameter_shared_content_templates',
    'Administrative service award templates',
    'Computer language user templates',
    'Language user templates',
    'Level-zero userbox templates',
    'Wikipedia administrator statistics',
    'Subtemplates of Template RussiaAdmMunRef',
    'Subtemplates of Template RussiaBasicLawRef',
    'New Pages Feed templates'
    )

  2. The line "not page_title.endswith('/doc')" should be removed so unused /doc pages will appear. If a /doc page is unused that is usually a sign that something went wrong (sub page of a deleted page, sub page hasn't moved with main page, not needed, etc.).

Add report "Redirects with more than one outgoing link"

SELECT page_id,
       page_namespace,
       page_title
FROM page
JOIN pagelinks ON page_namespace = pl_namespace
              AND page_id = pl_from
WHERE page_namespace = 10
  AND page_is_redirect = 1
GROUP BY page_namespace,
         page_id
HAVING COUNT(*) > 1 LIMIT 3;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.