Skip to content

Commit

Permalink
Address a huge number of TODOs across the codebase (#396)
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 28, 2023
2 parents d61c3c6 + 7573bf3 commit 7da020a
Show file tree
Hide file tree
Showing 284 changed files with 3,960 additions and 4,135 deletions.
6 changes: 6 additions & 0 deletions .changeset/clean-seahorses-develop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@dataplan/pg": patch
---

List and range codecs now use the underlying codec to parse values from
Postgres.
8 changes: 8 additions & 0 deletions .changeset/fair-eagles-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"graphile-build-pg": patch
"postgraphile": patch
"@dataplan/pg": patch
---

pgUnionAll uses a slightly more optimal SQL (where JSON isn't cast to `::text`
and then back to `::json`)
5 changes: 5 additions & 0 deletions .changeset/honest-bottles-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@dataplan/pg": patch
---

pgUnionAll can now specify a name, making the SQL and query plan easier to read.
6 changes: 6 additions & 0 deletions .changeset/odd-planes-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"grafast": patch
---

Improve debugging message when new steps are created at a time when doing so is
forbidden.
8 changes: 8 additions & 0 deletions .changeset/proud-insects-fetch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
"graphile-build-pg": patch
"postgraphile": patch
"@dataplan/pg": patch
---

Cursor pagination over nullable columns _should_ now work, although it is
untested.
9 changes: 9 additions & 0 deletions .changeset/serious-terms-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"graphile-build-pg": patch
"graphile-utils": patch
"postgraphile": patch
"@dataplan/pg": patch
"grafast": patch
---

Address a decent number of TODO/FIXME/etc comments in the codebase.
7 changes: 7 additions & 0 deletions .changeset/tender-eggs-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"graphile-build-pg": patch
"postgraphile": patch
"@dataplan/pg": patch
---

hasNextPage (via hasMore) now uses an access plan rather than a lambda plan.
7 changes: 7 additions & 0 deletions .changeset/violet-drinks-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"grafast": patch
---

(Internal) metaByMetaKey is now stored onto the bucket rather than the request
context, this allows running steps inside special buckets (subscriptions,
mutations) to run with a clean cache.
7 changes: 7 additions & 0 deletions .changeset/weak-stingrays-tease.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"graphile-build-pg": patch
"postgraphile": patch
"@dataplan/pg": patch
---

When fetching a single row, an `ORDER BY` clause will no longer be added.
10 changes: 10 additions & 0 deletions .changeset/wet-snakes-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"graphile-build-pg": patch
"@dataplan/pg": patch
---

Codecs can now (optionally) have executors associated (typically useful for
record codecs); so we've eradicated runtime resource definition for columns that
use composite types (or lists thereof) - all composite types accessible from
attributes are now guaranteed to have a table-like resource generated in the
registry.
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -41,7 +40,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -58,7 +56,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_posts_result__.*
Expand All @@ -77,7 +74,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -96,7 +92,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -119,7 +114,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -136,7 +130,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -153,7 +146,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_posts_result__.*
Expand All @@ -172,7 +164,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -191,7 +182,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -210,5 +200,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -41,7 +40,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -58,7 +56,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_posts_result__.*
Expand All @@ -77,7 +74,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -96,7 +92,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -119,7 +114,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -136,7 +130,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_items_result__.*
Expand All @@ -153,7 +146,6 @@ lateral (
) and (
__relational_items__."id" = __relational_items_identifiers__."id0"
)
order by __relational_items__."id" asc
) as __relational_items_result__;

select __relational_posts_result__.*
Expand All @@ -172,7 +164,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -191,7 +182,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __relational_posts_result__.*
Expand All @@ -210,5 +200,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -47,7 +46,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -73,7 +71,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -99,5 +96,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -47,7 +46,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -73,7 +71,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

insert into interfaces_and_unions.relational_items as __relational_items__ ("type", "author_id") values ($1::interfaces_and_unions.item_type, $2::"int4") returning
Expand All @@ -99,5 +96,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;

select __people_result__.*
Expand All @@ -45,5 +44,4 @@ lateral (
) and (
__people__."person_id" = __people_identifiers__."id0"
)
order by __people__."person_id" asc
) as __people_result__;
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ lateral (
) and (
__relational_posts__."id" = __relational_posts_identifiers__."id0"
)
order by __relational_posts__."id" asc
) as __relational_posts_result__;
Loading

0 comments on commit 7da020a

Please sign in to comment.