Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review TODO/FIXME/etc comments and address some of them #279

Merged
merged 47 commits into from
Apr 17, 2023
Merged

Conversation

benjie
Copy link
Member

@benjie benjie commented Apr 14, 2023

I've gone through every TODO/FIXME/HACK/XXX comment in the code and have addressed the ones that I felt were either straightforward and fast to achieve or needed to be done before we moved to "alpha". Here are some standout changes:

  • listOfCodec now accepts only two parameters, the second being a configuration object that contains all the previous remaining arguments
  • description no longer exists on the extensions - in most cases it has been elevated to being on the resource/codec/column/unique/relationship/etc itself.
  • __TrackedObjectStep is now __TrackedValueStep
  • MapStep and map() are now RemapKeysStep and remapKeys() respectively
  • ListTransform steps now accept a listStep rather than a listPlan
  • PgConnectionArgFirstLastBeforeAfterPlugin is now PgFirstLastBeforeAfterArgsPlugin (because it applies to lists as well as connections)
  • pgInsert()/PgInsertStep are now pgInsertSingle()/PgInsertSingleStep (and same for update/delete) to allow space for a PgInsertStep bulk step to exist in the future.
  • V5's config.schema.orderByNullsLast is now config.schema.pgOrderByNullsLast. V4 preset users are unaffected.
  • Various properties on the 'field' scopes in graphile-build have been renamed to have 'field' in their name

…fter the first are now a single config object.
…MapStep`/`map()` are now `RemapKeysStep`/`remapKeys()`. `ListTransform` now accepts `listStep` rather than `listPlan`.
…PgFirstLastBeforeAfterArgsPlugin` (because it applies to lists as well as connections). `PgInsertStep`/`pgInsert()`/`PgUpdateStep`/`pgUpdate()`/`PgDeleteStep`/`pgDelete()` are now `PgInsertSingleStep`/`pgInsertSingle()`/`PgUpdateSingleStep`/`pgUpdateSingle()`/`PgDeleteSingleStep`/`pgDeleteSingle()` (to make space to add a future bulk API if we want to). `config.schema.orderByNullsLast` is now `config.schema.pgOrderByNullsLast` for consistency (V4 preset users are unaffected). Lots of field scopes in `graphile-build-pg` have been updated to incorporate `field` into their names.
@benjie benjie merged commit b543fd1 into planning Apr 17, 2023
@benjie benjie deleted the address-todos branch April 17, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant