github
html_url | issue_url | id | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
https://github.com/simonw/datasette/issues/1098#issuecomment-735444698 | https://api.github.com/repos/simonw/datasette/issues/1098 | 735444698 | MDEyOklzc3VlQ29tbWVudDczNTQ0NDY5OA== | 9599 | 2020-11-29T19:50:14Z | 2020-11-29T19:50:14Z | OWNER | Demo of the fix: https://latest.datasette.io/fixtures/foreign_key_references (the compound foreign key columns do not link to anything) | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
743370900 | |
https://github.com/simonw/datasette/issues/1098#issuecomment-735443654 | https://api.github.com/repos/simonw/datasette/issues/1098 | 735443654 | MDEyOklzc3VlQ29tbWVudDczNTQ0MzY1NA== | 9599 | 2020-11-29T19:41:01Z | 2020-11-29T19:41:01Z | OWNER | Fix is out in 0.52.1: https://docs.datasette.io/en/latest/changelog.html#v0-52-1 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
743370900 | |
https://github.com/simonw/datasette/issues/1098#issuecomment-735442226 | https://api.github.com/repos/simonw/datasette/issues/1098 | 735442226 | MDEyOklzc3VlQ29tbWVudDczNTQ0MjIyNg== | 9599 | 2020-11-29T19:28:04Z | 2020-11-29T19:28:04Z | OWNER | For the moment I'm going to solve this by teaching Datasette's internal introspection methods - in particular these ones - to ignore compound foreign keys entirely: https://github.com/simonw/datasette/blob/e800ffcf7cc6a915eb554b369c654f87162575e5/datasette/utils/__init__.py#L470-L505 | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
743370900 | |
https://github.com/simonw/datasette/issues/1098#issuecomment-727656208 | https://api.github.com/repos/simonw/datasette/issues/1098 | 727656208 | MDEyOklzc3VlQ29tbWVudDcyNzY1NjIwOA== | 9599 | 2020-11-15T23:26:14Z | 2020-11-15T23:26:14Z | OWNER | Schema for that broken example: ```sql CREATE TABLE generators_eia860 ( id INTEGER NOT NULL, plant_id_eia INTEGER, generator_id TEXT, report_date DATE, operational_status_code TEXT, operational_status TEXT, ownership_code TEXT, utility_id_eia INTEGER, capacity_mw FLOAT, summer_capacity_mw FLOAT, winter_capacity_mw FLOAT, energy_source_code_1 TEXT, energy_source_code_2 TEXT, energy_source_code_3 TEXT, energy_source_code_4 TEXT, energy_source_code_5 TEXT, energy_source_code_6 TEXT, fuel_type_code_pudl TEXT, multiple_fuels BOOLEAN, deliver_power_transgrid BOOLEAN, syncronized_transmission_grid BOOLEAN, turbines_num INTEGER, planned_modifications BOOLEAN, planned_net_summer_capacity_uprate_mw FLOAT, planned_net_winter_capacity_uprate_mw FLOAT, planned_uprate_date DATE, planned_net_summer_capacity_derate_mw FLOAT, planned_net_winter_capacity_derate_mw FLOAT, planned_derate_date DATE, planned_new_prime_mover_code TEXT, planned_energy_source_code_1 TEXT, planned_repower_date DATE, other_planned_modifications BOOLEAN, other_modifications_date DATE, planned_retirement_date DATE, carbon_capture BOOLEAN, startup_source_code_1 TEXT, startup_source_code_2 TEXT, startup_source_code_3 TEXT, startup_source_code_4 TEXT, technology_description TEXT, turbines_inverters_hydrokinetics TEXT, time_cold_shutdown_full_load_code TEXT, planned_new_capacity_mw FLOAT, cofire_fuels BOOLEAN, switch_oil_gas BOOLEAN, nameplate_power_factor FLOAT, minimum_load_mw FLOAT, uprate_derate_during_year BOOLEAN, uprate_derate_completed_date DATE, current_planned_operating_date DATE, summer_estimated_capability_mw FLOAT, winter_estimated_capability_mw FLOAT, retirement_date DATE, PRIMARY KEY (id), FOREIGN KEY(plant_id_eia, generator_id) REFERENCES generators_entity_eia (plant_id_eia, generator_id), FOREIGN KEY(utility_id_eia) REFERENCES utilities_entity_eia (utility_id_eia), CHECK (m… | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
743370900 | |
https://github.com/simonw/datasette/issues/1098#issuecomment-727655636 | https://api.github.com/repos/simonw/datasette/issues/1098 | 727655636 | MDEyOklzc3VlQ29tbWVudDcyNzY1NTYzNg== | 9599 | 2020-11-15T23:22:27Z | 2020-11-15T23:22:27Z | OWNER | Need to replicate this in the fixtures, then fix it. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
743370900 |