home / github

Menu
  • GraphQL API
  • Search all tables

issue_comments

Table actions
  • GraphQL API for issue_comments

5 rows where issue = 974659059 sorted by updated_at descending

✎ View and edit SQL

This data as json, CSV (advanced)

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

user 4

  • pkopparla 2
  • max-sixty 1
  • Illviljan 1
  • github-actions[bot] 1

author_association 2

  • CONTRIBUTOR 3
  • MEMBER 2

issue 1

  • Added get_options method · 5 ✖
id html_url issue_url node_id user created_at updated_at ▲ author_association body reactions performed_via_github_app issue
901946960 https://github.com/pydata/xarray/pull/5716#issuecomment-901946960 https://api.github.com/repos/pydata/xarray/issues/5716 IC_kwDOAMm_X841wp5Q github-actions[bot] 41898282 2021-08-19T14:08:12Z 2021-09-05T00:04:22Z CONTRIBUTOR

Unit Test Results

6 files  ±0           6 suites  ±0   50m 28s :stopwatch: ±0s 16 227 tests ±0  14 493 :heavy_check_mark: ±0  1 734 :zzz: ±0  0 :x: ±0  90 558 runs  ±0  82 382 :heavy_check_mark: ±0  8 176 :zzz: ±0  0 :x: ±0 

Results for commit 9dbeb6bc. ± Comparison against base commit 9dbeb6bc.

:recycle: This comment has been updated with latest results.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added get_options method 974659059
904437683 https://github.com/pydata/xarray/pull/5716#issuecomment-904437683 https://api.github.com/repos/pydata/xarray/issues/5716 IC_kwDOAMm_X8416J-z pkopparla 76039838 2021-08-24T08:33:50Z 2021-08-24T08:33:50Z CONTRIBUTOR

Awesome, thanks @dcherian and all the reviewers!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added get_options method 974659059
902581059 https://github.com/pydata/xarray/pull/5716#issuecomment-902581059 https://api.github.com/repos/pydata/xarray/issues/5716 IC_kwDOAMm_X841zEtD pkopparla 76039838 2021-08-20T10:00:04Z 2021-08-20T10:39:40Z CONTRIBUTOR

Thank you @Illviljan @max-sixty I've changed the return type to FrozenDict and added a check to make sure that set_options changes are reflected in get_options.

Edit: All unit tests are passing on my local PC but there's one failure in the github checks.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added get_options method 974659059
902286066 https://github.com/pydata/xarray/pull/5716#issuecomment-902286066 https://api.github.com/repos/pydata/xarray/issues/5716 IC_kwDOAMm_X841x8ry max-sixty 5635139 2021-08-19T22:13:32Z 2021-08-19T22:13:32Z MEMBER

This looks good., thanks @pkopparla Thanks for reviewing @Illviljan .

Agree re a test — at least to just test it runs, albeit trivial.

FrozenDict would be better, though I think fine to do in another PR. We could return dict(OPTIONS) if we're worried people will attempt to set invalid values.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added get_options method 974659059
902010417 https://github.com/pydata/xarray/pull/5716#issuecomment-902010417 https://api.github.com/repos/pydata/xarray/issues/5716 IC_kwDOAMm_X841w5Yx Illviljan 14371165 2021-08-19T15:27:44Z 2021-08-19T15:27:44Z MEMBER

The returned dict should be read only, otherwise you can bypass all the validation checks that's done in set_options. I think you can use FrozenDict for that: https://github.com/pydata/xarray/blob/56cc0778d5edcb0173425b5850b834457c790210/xarray/core/utils.py#L476 Not sure if FrozenDict propagates the typing though, once OPTIONS is typed.

We probably need to make sure that get_options is updated if set_options has been used. A test for that would be nice.

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  Added get_options method 974659059

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,
   [performed_via_github_app] TEXT,
   [issue] INTEGER REFERENCES [issues]([id])
);
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 14.278ms · About: xarray-datasette