home / github

Menu
  • Search all tables
  • GraphQL API

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 464786717 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 5

issue 1

  • extra_template_vars plugin hook · 5 ✖

author_association 1

  • OWNER 5
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions issue performed_via_github_app
508876468 https://github.com/simonw/datasette/pull/542#issuecomment-508876468 https://api.github.com/repos/simonw/datasette/issues/542 MDEyOklzc3VlQ29tbWVudDUwODg3NjQ2OA== simonw 9599 2019-07-05T22:57:32Z 2019-07-05T22:57:32Z OWNER

This looks relevant: https://github.com/pytest-dev/pytest/issues/1235 - "pytest explodes if getcwd fails"

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_template_vars plugin hook 464786717  
508876259 https://github.com/simonw/datasette/pull/542#issuecomment-508876259 https://api.github.com/repos/simonw/datasette/issues/542 MDEyOklzc3VlQ29tbWVudDUwODg3NjI1OQ== simonw 9599 2019-07-05T22:55:27Z 2019-07-05T22:55:46Z OWNER

Here's what isolated_filesystem() does:

A context manager that creates a temporary folder and changes the current working directory to it for isolated filesystem tests.

https://github.com/pallets/click/issues/395 is a four year old issue suggesting allowing it to have a parent tmp directory passed to it, but since that issue was never closed I don't think it's going to help me.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_template_vars plugin hook 464786717  
508875041 https://github.com/simonw/datasette/pull/542#issuecomment-508875041 https://api.github.com/repos/simonw/datasette/issues/542 MDEyOklzc3VlQ29tbWVudDUwODg3NTA0MQ== simonw 9599 2019-07-05T22:43:53Z 2019-07-05T22:43:53Z OWNER

I've confirmed that it's the template_dir= line quoted above. It isn't the fault of pathlib - if you hard-code in the path string like this I still get the same failures: template_dir = "/Users/simonw/Dropbox/Development/datasette/tests/test_templates" for client in make_app_client( template_dir=template_dir ): So for some reason setting template_dir to a concrete directory breaks those other tests.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_template_vars plugin hook 464786717  
508873216 https://github.com/simonw/datasette/pull/542#issuecomment-508873216 https://api.github.com/repos/simonw/datasette/issues/542 MDEyOklzc3VlQ29tbWVudDUwODg3MzIxNg== simonw 9599 2019-07-05T22:27:00Z 2019-07-05T22:27:00Z OWNER

I bet that error is something to do with this: https://github.com/simonw/datasette/blob/e06e083240522a281b280b6461e935bf4b47bdbc/tests/test_plugins.py#L195-L197

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_template_vars plugin hook 464786717  
508873079 https://github.com/simonw/datasette/pull/542#issuecomment-508873079 https://api.github.com/repos/simonw/datasette/issues/542 MDEyOklzc3VlQ29tbWVudDUwODg3MzA3OQ== simonw 9599 2019-07-05T22:25:33Z 2019-07-05T22:25:33Z OWNER

I'm getting this weird failure again: ``` self = <click.testing.CliRunner object at 0x7f4295b7bd30> @contextlib.contextmanager def isolated_filesystem(self): """A context manager that creates a temporary folder and changes the current working directory to it for isolated filesystem tests. """

  cwd = os.getcwd()

E FileNotFoundError: [Errno 2] No such file or directory ``` I saw this the other day too, but managed to avoid it by skipping any code that messed around with temporary files.

Baffled as to why this is showing up now, as none of the changes I'm making here have any relevance to the way temporary files are created or the current working directory is set.

I understand the root cause here to be that the working directory for the tests was deleted while the tests were still running, which would seem to indicate that something to do with a tmpdir fixture is at fault.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
extra_template_vars plugin hook 464786717  

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 32.944ms · About: github-to-sqlite
  • Sort ascending
  • Sort descending
  • Facet by this
  • Hide this column
  • Show all columns
  • Show not-blank rows