Skip to content

Latest commit

 

History

History
220 lines (162 loc) · 7.58 KB

CHANGELOG.md

File metadata and controls

220 lines (162 loc) · 7.58 KB

Changelog

Version 0.13.0

  • Add support for field name mappings.
  • Add use_id_suffixes_for_fk and use_id_suffixes_for_m2m settings for quick addition of _id suffixes to foreign keys and _ids for many to many fields.
  • Added the options GRAPHENE_DJANGO_CUD_USE_ID_SUFFIXES_FOR_FK and GRAPHENE_DJANGO_CUD_USE_ID_SUFFIXES_FOR_M2M to enable these settings globally.

Version 0.12.0

  • More documentation improvements (@Plebbimon).
  • Add "before_create_obj" hook, that allows to hook into the creation of an object before it is saved to the database ( @hansegucker).
  • Update dismabiguate_id to handle UUIDs (@M69k65y).

Version 0.11.1

  • Make required_fields and optional_fields handle None values more gracefully.
  • Remove mutable default arguments for auto_context_fields

Version 0.11.0

  • Fix graphene-django 3.x compatibility issues (thanks @sjdemartini, @wito-alex).
  • Improve documentation (thanks @sjdemartini, @Plebbimon).
  • Add perform_delete override to DjangoDeleteMutation (thanks @calummackervoy). This allows for better soft deletes.
  • Add get_return_id override to DjangoBatchDeleteMutation, enabling ID overwrites (thanks @rymanso).
  • Fix compatability issues with custom pks (thanks @NwawelAIroume).
  • Bump some package versions.
  • Some general project and file clean up.
  • Remove debug prints. Pardon all the mlogs.

Version 0.10.0

  • Put select_for_update behind a new option use_select_for_update, which is enabled by default.
  • Rename only_fields -> fields and exclude_fields -> exclude. Alias the old names but add deprecation warnings.
  • Make the library graphene(-django) 3.x compatible.
  • Respect required_fields in Patch and BatchPatch mutations (thanks @mbuvarp).

Version 0.9.1

  • Improve atomicity of patch/update-calls (thanks @keithhackbarth)
  • Improve documentation
  • Security-critical package updates

Version 0.9.0

  • (BREAKING) Ensure inputs are sent to all after_mutate hooks.

Version 0.8.1

  • (BREAKING) DjangoDeleteMutation now returns three id fields: deletedId, deletedRawId and deletedInputId. The default behaviour of deletedId is now to return a global id if the associated model type has a GlobalIDField for the "id" field.

Version 0.8.0

  • Add customisation of resolving IDs via the resolve_id(s) methods (@bjmc)
  • Django model DecimalFields are now properly resolved to graphene.Decimal (@sjdemartini)
  • (BREAKING) Django fields with choices are now reused from the associated DjangoObjectType. This implies that the created GraphQL field no longer has an extra "Input" at the end of the name. (@keithhackbarth)
  • (BREAKING) Update DjangoBatch-mutations. All hooks now take an "input" parameter.
  • Added after_update_obj hook for DjangoBatchPatchMutation and DjangoBatchUpdateMutation. This will be called after each object is updated.
  • Added after_create_obj hook for DjangoBatchCreateMutation. This will be called after each object is created.

Version 0.7.2

  • Ensure DeleteMutation calls "validate"

Version 0.7.1

  • Add missing exports

Version 0.7.0

  • Allow nested overrides in extras (@janosroden)
  • Allow UUID primary keys (@janosroden)
  • Make DjangoPatchMutation a subclass of DjangoUpdateMutation
  • Improve documentation (@bigtimecriminal)
  • Add auto-type handling to many to many extras
  • Add auto-type handling to foreign keys
  • Add DjangoBatchPatchMutation
  • Add DjangoBatchUpdateMutation
  • Add DjangoFilterUpdateMutation
  • Add custom fields for input types
  • Restructure some test files

Version 0.6.5

  • Fix some bad plain m2m and m2o field handling.
  • login_required now works as intended. Thanks to @janosroden.
  • Add a ignore_primary_key option to DjangoCreateMutation. Thanks to @e3oroush.

Version 0.6.4

  • Update DjangoBatchCreateMutation. Fix bad number of arguments on check_permissions.

Version 0.6.3

  • Update DjangoDeleteMutation, change a number of method signatures:
    • get_permission and check_permissions now takes the obj to be deleted as a parameter.
    • Renamed all input arguments to id.
    • after_mutate now takes a final found argument.

Version 0.6.2

  • Update patch and update mutations: Added the resolved object to check_permisions as a final argument.

Version 0.6.1

  • Updated all mutations: Only create new meta options when one does not already exist.

Version 0.6.0

  • Renamed DjangoBatchDeleteMutation to DjangoFilterDeleteMutation.
  • Added a new DjangoBatchDeleteMutation which takes an array of IDs to delete.
  • Added local versions of all overrideable methods. This makes type hinting more accurate.
  • Changed the argument order of some of the overrideable methods.
  • In particular: Changed the method signature of "get_queryset".

Version 0.5.3

  • Change some potential issue with OneToOne persistence

Version 0.5.2

  • Remove unnecessary debug print.

Version 0.5.1

  • Improve many to many and one to one detection.

Version 0.5.0

  • Add one to one extras handling, allowing for nested functionality for one to one fields.
  • Restructure project slightly, by moving mutations to separate files.
  • Remove some unnecessary utility functions.

Version 0.4.4

  • Fix bug where default field handling for many-to-many and many-to-one fields failed.

Version 0.4.3

  • Add missing files

Version 0.4.2

  • Update bad handling of AutoFields

Version 0.4.1

  • Ensure AutoFields are disambiguated.

Version 0.4.0

  • Add proper handling of update nested many-to-on extras for update mutations.
  • Fix a deprecation warning. See #12. Thanks to @fkromer.

Version 0.3.2

  • Fix bug when converting OneToOneRels.

Version 0.3.1

  • Fix bug in TimeDelta

Version 0.3.0

  • get_queryset now takes an info argument and other kwargs.

Version 0.2.2

  • Fix a bug related to setting of many-to-one extras on create operations.

Version 0.2.1

  • Add better handling of choices fields. Fixes #5.
  • Fix handling of "exact" m2m and m2o extras.
  • Improve m2o handling of exact and remove extras.

Version 0.2.0

  • Add the field_types meta-field, which allows users to override converted field types.

Version 0.1.0

  • Improve test environment
  • Add check_permissions and get_permissions methods. The methods can be overridden to provide custom permissions handling.
  • Fix issue with required-handling for fields with choices.
  • Add queryset handling to delete mutations.
  • Add field validation.
  • Add before_mutate, before_save and after_mutate hooks.

Version 0.0.16

  • Fix bug related to conversion of filter fields.

Version 0.0.15

  • Fix bug with many to many extras type extraction

Version 0.0.14

  • Loosen graphene-django required version

Version 0.0.13

  • Change package mangement to poetry
  • Add missing install dependencies in setup.py
  • Move repo to github

Version 0.0.12

  • Fix issue with fields havng name "input": Change items call to use super.

Version 0.0.11

  • Make sure enum fields are fetched from registry

Version 0.0.10

  • Add better handling of filter fields in DjangoBatchDeleteMutation

Version 0.0.9

  • Add DjangoBatchCreateMutation

Version 0.0.8

  • Fix bug with bad auto context field

Version 0.0.7

  • Improve conversion of Boolean field

Version 0.0.6

  • Add customizible names for many to many and many to one rels.

Version 0.0.5

  • Fix some issues with adding/removing many to one rels

Version 0.0.4

  • Fix bug where argument was not sent into update_obj

Version 0.0.3

  • Improve nested auto field name generation

Version 0.0.2

  • Add foreign key, many to many and many to one extras generation.

Version 0.0.1

Initial release, add core and classes:

  • DjangoCreateMutation
  • DjangoPatchMutation
  • DjangoUpdateMutation
  • DjangoDeleteMutation
  • DjangoBatchDeleteMutation