home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

9 rows where issue = 638104520 sorted by updated_at descending

✖
✖

✎ View and edit SQL

This data as json, CSV (advanced)

Suggested facets: created_at (date), updated_at (date)

user 1

  • simonw 9

issue 1

  • Research feasibility of 100% test coverage · 9 ✖

author_association 1

  • OWNER 9
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
643681747 https://github.com/simonw/datasette/issues/841#issuecomment-643681747 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY4MTc0Nw== simonw 9599 2020-06-13T21:38:46Z 2020-06-13T21:38:46Z OWNER

Closing this because I've researched feasibility. I may start a milestone in the future to help me get to 100%.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643661125 https://github.com/simonw/datasette/issues/841#issuecomment-643661125 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY2MTEyNQ== simonw 9599 2020-06-13T18:35:30Z 2020-06-13T18:36:50Z OWNER

I ran export CODECOV_TOKEN="f7935cad...", then ran this: `` datasette $ bash <(curl -s https://codecov.io/bash) _____ _ / ____| | | | | ___ __| | ___ ___ _____ __ | | / _ \ / _ |/ _ \/ / _ \ \ / / | |___| () | (| | __/ (| () \ V / __/ _,|_|__/ _/ Bash-20200602-f809a24

x> No CI provider detected. Testing inside Docker? http://docs.codecov.io/docs/testing-with-docker Testing with Tox? https://docs.codecov.io/docs/python#section-testing-with-tox project root: . --> token set from env Yaml not found, that's ok! Learn more at http://docs.codecov.io/docs/codecov-yaml ==> Running gcov in . (disable via -X gcov) ==> Searching for coverage reports in: + . -> Found 1 reports ==> Detecting git/mercurial file structure ==> Reading reports + ./coverage.xml bytes=139174 ==> Appending adjustments https://docs.codecov.io/docs/fixing-reports -> No adjustments found ==> Gzipping contents ==> Uploading reports url: https://codecov.io query: branch=master&commit=0e49842e227a0f1f69d48108c87d17fe0379e548&build=&build_url=&name=&tag=&slug=simonw%2Fdatasette&service=&flags=&pr=&job= -> Pinging Codecov https://codecov.io/upload/v4?package=bash-20200602-f809a24&token=secret&branch=master&commit=0e49842e227a0f1f69d48108c87d17fe0379e548&build=&build_url=&name=&tag=&slug=simonw%2Fdatasette&service=&flags=&pr=&job= -> Uploading -> View reports at https://codecov.io/github/simonw/datasette/commit/0e49842e227a0f1f69d48108c87d17fe0379e548 ``` But https://codecov.io/github/simonw/datasette/commit/0e49842e227a0f1f69d48108c87d17fe0379e548 is a 404, so it doesn't seem to have worked?

UPDATE: It works now, took about 30 seconds before the report showed up at that URL.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643660757 https://github.com/simonw/datasette/issues/841#issuecomment-643660757 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY2MDc1Nw== simonw 9599 2020-06-13T18:32:20Z 2020-06-13T18:32:20Z OWNER

Looking at options for publishing coverage reports:

  • https://github.com/codecov/codecov-action
  • https://github.com/coveralls-clients/coveralls-python

I'm going to try https://codecov.io/

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643660427 https://github.com/simonw/datasette/issues/841#issuecomment-643660427 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY2MDQyNw== simonw 9599 2020-06-13T18:29:30Z 2020-06-13T18:29:36Z OWNER

This one looks easy enough to fix:

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643658036 https://github.com/simonw/datasette/issues/841#issuecomment-643658036 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY1ODAzNg== simonw 9599 2020-06-13T18:08:13Z 2020-06-13T18:08:13Z OWNER

From digging through that report it looks like the majority stuff that isn't fully covered is corner-cases... which are the kind of things I really do want the tests to catch.

I'm not entirely ready to commit to 100%, but I'm going to start digging through and seeing how close I can get. If I can get to 98% (I'm on 91% already) I may as well push all the way to 100.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643657287 https://github.com/simonw/datasette/issues/841#issuecomment-643657287 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY1NzI4Nw== simonw 9599 2020-06-13T18:01:39Z 2020-06-13T18:01:39Z OWNER

Added --cov-report html and got this report: https://static.simonwillison.net/static/2020/htmlcov-issue-841/index.html

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643656053 https://github.com/simonw/datasette/issues/841#issuecomment-643656053 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY1NjA1Mw== simonw 9599 2020-06-13T17:50:34Z 2020-06-13T17:50:34Z OWNER

Added a .coveragerc file: [run] omit = datasette/_version.py, datasette/utils/shutil_backport.py And ran again: pytest --cov=datasette --cov-config=.coveragerc ``` Name Stmts Miss Cover


datasette/init.py 3 0 100% datasette/main.py 3 3 0% datasette/actor_auth_cookie.py 19 3 84% datasette/app.py 499 27 95% datasette/cli.py 157 45 71% datasette/database.py 233 17 93% datasette/default_permissions.py 39 0 100% datasette/facets.py 209 24 89% datasette/filters.py 122 7 94% datasette/hookspecs.py 19 0 100% datasette/inspect.py 37 23 38% datasette/plugins.py 34 6 82% datasette/publish/init.py 0 0 100% datasette/publish/cloudrun.py 55 2 96% datasette/publish/common.py 19 1 95% datasette/publish/heroku.py 95 13 86% datasette/renderer.py 63 4 94% datasette/sql_functions.py 4 0 100% datasette/tracer.py 85 16 81% datasette/utils/init.py 503 31 94% datasette/utils/asgi.py 253 25 90% datasette/version.py 4 0 100% datasette/views/init.py 0 0 100% datasette/views/base.py 288 19 93% datasette/views/database.py 120 2 98% datasette/views/index.py 57 2 96% datasette/views/special.py 72 16 78% datasette/views/table.py 418 18 96%


TOTAL 3410 304 91% ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643655108 https://github.com/simonw/datasette/issues/841#issuecomment-643655108 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzY1NTEwOA== simonw 9599 2020-06-13T17:43:15Z 2020-06-13T17:43:15Z OWNER

Using https://pypi.org/project/pytest-cov/ and running pytest --cov=datasette: ``` ---------- coverage: platform darwin, python 3.7.7-final-0 ----------- Name Stmts Miss Cover


datasette/init.py 3 0 100% datasette/main.py 3 3 0% datasette/_version.py 277 152 45% datasette/actor_auth_cookie.py 19 3 84% datasette/app.py 499 27 95% datasette/cli.py 157 45 71% datasette/database.py 233 17 93% datasette/default_permissions.py 39 0 100% datasette/facets.py 209 24 89% datasette/filters.py 122 7 94% datasette/hookspecs.py 19 0 100% datasette/inspect.py 37 23 38% datasette/plugins.py 34 6 82% datasette/publish/init.py 0 0 100% datasette/publish/cloudrun.py 55 2 96% datasette/publish/common.py 19 1 95% datasette/publish/heroku.py 95 13 86% datasette/renderer.py 63 4 94% datasette/sql_functions.py 4 0 100% datasette/tracer.py 85 16 81% datasette/utils/init.py 503 31 94% datasette/utils/asgi.py 253 25 90% datasette/utils/shutil_backport.py 44 40 9% datasette/version.py 4 0 100% datasette/views/init.py 0 0 100% datasette/views/base.py 288 19 93% datasette/views/database.py 120 2 98% datasette/views/index.py 57 2 96% datasette/views/special.py 72 16 78% datasette/views/table.py 418 18 96%


TOTAL 3731 496 87% ```

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  
643576372 https://github.com/simonw/datasette/issues/841#issuecomment-643576372 https://api.github.com/repos/simonw/datasette/issues/841 MDEyOklzc3VlQ29tbWVudDY0MzU3NjM3Mg== simonw 9599 2020-06-13T06:08:34Z 2020-06-13T06:08:34Z OWNER

Starlette achieves this. https://github.com/encode/starlette

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
Research feasibility of 100% test coverage 638104520  

Advanced export

JSON shape: default, array, newline-delimited, object

CSV options:

CREATE TABLE [issue_comments] (
   [html_url] TEXT,
   [issue_url] TEXT,
   [id] INTEGER PRIMARY KEY,
   [node_id] TEXT,
   [user] INTEGER REFERENCES [users]([id]),
   [created_at] TEXT,
   [updated_at] TEXT,
   [author_association] TEXT,
   [body] TEXT,
   [reactions] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
, [performed_via_github_app] TEXT);
CREATE INDEX [idx_issue_comments_issue]
                ON [issue_comments] ([issue]);
CREATE INDEX [idx_issue_comments_user]
                ON [issue_comments] ([user]);
Powered by Datasette · Queries took 22.09ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows