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

Stage 1 of behavior overhaul #2160

Merged
merged 51 commits into from
Sep 27, 2024
Merged

Stage 1 of behavior overhaul #2160

merged 51 commits into from
Sep 27, 2024

Commits on Sep 25, 2024

  1. graphile-config now supports lists of hook objects, to allow hooking …

    …multiple times with different priorities
    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9893ec3 View commit details
    Browse the repository at this point in the history
  2. docs(changeset): Add support for lists of hook objects, so that the s…

    …ame hook can be applied multiple times in the same plugin but with different priorities.
    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    9cd9bb5 View commit details
    Browse the repository at this point in the history
  3. Type-safety around behaviors

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    8a264e9 View commit details
    Browse the repository at this point in the history
  4. Add descriptions and entities

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    eca1ad6 View commit details
    Browse the repository at this point in the history
  5. More descriptions

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    7f84b40 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4611bde View commit details
    Browse the repository at this point in the history
  7. Move into class

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ea6e6d1 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    22482ab View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9039b00 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    450c92d View commit details
    Browse the repository at this point in the history
  11. More behaviors registered

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ab1d705 View commit details
    Browse the repository at this point in the history
  12. Behavior multiplication plugin

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    b7f5f29 View commit details
    Browse the repository at this point in the history
  13. Must conform

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    82850b7 View commit details
    Browse the repository at this point in the history
  14. -* prevents corruption

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    76f0444 View commit details
    Browse the repository at this point in the history
  15. Add the parent behaviors too

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    421fcef View commit details
    Browse the repository at this point in the history
  16. Add more missing behaviors, and fix behavior of connection-incapable …

    …lists (use 'array' instead)
    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    ec470d5 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    e070614 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    b368cb0 View commit details
    Browse the repository at this point in the history
  19. Fix PgPolymorphismPlugin

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4a9ca7a View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6639bd7 View commit details
    Browse the repository at this point in the history
  21. Fix bad git patch add edits

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    2a3d6bd View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    6d96108 View commit details
    Browse the repository at this point in the history
  23. Register behavior on demand

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    00a7816 View commit details
    Browse the repository at this point in the history
  24. Fix implied behavior for refs

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    c360637 View commit details
    Browse the repository at this point in the history
  25. Don't inherit global behavior

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    5c3301e View commit details
    Browse the repository at this point in the history
  26. Actually we do want to start with default behaviors otherwise you can…

    …'t turn on singleRelation:*:connection for example
    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    004d4ed View commit details
    Browse the repository at this point in the history
  27. Fix lint

    benjie committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    8d0d903 View commit details
    Browse the repository at this point in the history

Commits on Sep 26, 2024

  1. Configuration menu
    Copy the full SHA
    3660ec8 View commit details
    Browse the repository at this point in the history
  2. Remove from final place

    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    2dd58e6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    47fa837 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6a3a520 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    96aa437 View commit details
    Browse the repository at this point in the history
  6. Fix bug in V4 behavior plugin

    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    99e4903 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ce6efaa View commit details
    Browse the repository at this point in the history
  8. User has explicitly marked these non-executable fields as filterable/…

    …sortable, so we should honour them.
    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    4b3dd3f View commit details
    Browse the repository at this point in the history
  9. Lint

    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    7f7c267 View commit details
    Browse the repository at this point in the history
  10. docs(changeset): Massive overhaul of the behavior system which now ha…

    …s a centralized registry of
    
    known behaviors and applies behaviors in a more careful and nuanced way,
    removing many hacks and workarounds, and ultimately meaning that
    `defaultBehavior: "-*"` should now operate correctly.
    
    Technically this is a breaking change because the order in which behaviors are
    applied has changed, and so a different behavior might ultimately "win". This
    shows up in places where there is ambiguity, for example if you add
    `@filterable` to a function that you don't have execute permissions on, that
    function will now show up in the schema since user overrides (smart tags) "win"
    versus inferred behaviors such as introspected permissions; this wasn't the
    case before. Hopefully most users will not notice any difference, and for those
    who do, the `graphile behavior debug` CLI may be able to help you figure out
    what's going on.
    
    Be sure to print your schema before and after this update and look for changes;
    if there are changes then you likely need to fix the relevant behaviors/smart
    tags. (Hopefully there's no changes for you!)
    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    426e932 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    e720702 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4215786 View commit details
    Browse the repository at this point in the history
  13. Fix lint

    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    12aa3e0 View commit details
    Browse the repository at this point in the history
  14. Don't duplicate definition

    benjie committed Sep 26, 2024
    Configuration menu
    Copy the full SHA
    822085b View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    34fcfbe View commit details
    Browse the repository at this point in the history

Commits on Sep 27, 2024

  1. Update release notes

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    cde36fd View commit details
    Browse the repository at this point in the history
  2. docs(changeset): Fix bug where creating the build object also initial…

    …ized it; this is incorrect since if you just want the build object you don't necessarily want to register all of the GraphQL types (and potentially discover naming conflicts) at that moment. Introduced new `schemaBuilder.initBuild(schemaBuilder.createBuild(input))` API to explicitly handle initing if you need an initialized build object.
    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    54054b8 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    205cfe3 View commit details
    Browse the repository at this point in the history
  4. Register yet more behaviors

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    b67e222 View commit details
    Browse the repository at this point in the history
  5. Fix bug

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    a47794a View commit details
    Browse the repository at this point in the history
  6. Fix accidental loss of '-'

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    68dc392 View commit details
    Browse the repository at this point in the history
  7. Note about stricter typings

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    21f8988 View commit details
    Browse the repository at this point in the history
  8. Fix types

    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    979ab99 View commit details
    Browse the repository at this point in the history
  9. docs(changeset): Fix interactions with behavior system, including fix…

    …ing debugging behaviors when naming conflicts occur in the schema.
    benjie committed Sep 27, 2024
    Configuration menu
    Copy the full SHA
    2dfc10f View commit details
    Browse the repository at this point in the history