Skip to content

Releases: adfinis/django-generic-api-permissions

v0.4.7

25 Nov 15:45
Compare
Choose a tag to compare

v0.4.7 (2024-11-25)

Bug Fixes

  • permissions: Make sure to first check the base permissions (cd6979b)

Currently we first check the generic permissions and the the views actual base permission. This doesn't make sense as we should first check e.g. whether a user is even authenticated before checking more specific permissions.

Chores

  • deps-dev: Bump pytest-django from 4.8.0 to 4.9.0 (a5ab7d0)

Bumps pytest-django from 4.8.0 to 4.9.0.


updated-dependencies:

  • dependency-name: pytest-django
    dependency-type: direct:development
    update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

  • deps: Bump djangorestframework from 3.14.0 to 3.15.2 (963cfcb)

Bumps djangorestframework from 3.14.0 to 3.15.2.


updated-dependencies:

  • dependency-name: djangorestframework
    dependency-type: direct:production
    update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

  • deps-dev: Bump pytest from 8.3.2 to 8.3.3 (3e9059d)

Bumps pytest from 8.3.2 to 8.3.3.


updated-dependencies:

  • dependency-name: pytest
    dependency-type: direct:development
    update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

  • deps: Bump django from 4.2.13 to 4.2.16 (9054023)

Bumps django from 4.2.13 to 4.2.16.


updated-dependencies:

  • dependency-name: django
    dependency-type: direct:production
    update-type: version-update:semver-patch ...

Signed-off-by: dependabot[bot] support@github.com

  • deps-dev: Bump ruff from 0.6.3 to 0.8.0 (b62d896)

Bumps ruff from 0.6.3 to 0.8.0.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

  • deps-dev: Bump pytest from 8.2.1 to 8.3.2 (50ece89)

Bumps pytest from 8.2.1 to 8.3.2.


updated-dependencies:

  • dependency-name: pytest
    dependency-type: direct:development
    update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

  • deps-dev: Bump ruff from 0.4.6 to 0.6.3 (773bcd3)

Bumps ruff from 0.4.6 to 0.6.3.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-minor ...

Signed-off-by: dependabot[bot] support@github.com

  • deps-dev: Bump black from 23.12.1 to 24.4.2 (58bf040)

Bumps black from 23.12.1 to 24.4.2.


updated-dependencies:

  • dependency-name: black
    dependency-type: direct:development
    update-type: version-update:semver-major ...

Signed-off-by: dependabot[bot] support@github.com

v0.4.6

29 May 08:27
Compare
Choose a tag to compare

v0.4.6 (2024-05-29)

Chore

  • chore(deps): bump python-semantic-release/python-semantic-release

Bumps python-semantic-release/python-semantic-release from 8.3.0 to 9.7.3.


updated-dependencies:

  • dependency-name: python-semantic-release/python-semantic-release
    dependency-type: direct:production
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] <support@github.com> (d9655f1)

  • chore(deps-dev): bump ruff from 0.3.5 to 0.4.6

Bumps ruff from 0.3.5 to 0.4.6.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com> (c614700)

  • chore(deps-dev): bump djangorestframework-jsonapi from 6.1.0 to 7.0.0

Bumps djangorestframework-jsonapi from 6.1.0 to 7.0.0.


updated-dependencies:

  • dependency-name: djangorestframework-jsonapi
    dependency-type: direct:development
    update-type: version-update:semver-major
    ...

Signed-off-by: dependabot[bot] <support@github.com> (abe4798)

  • chore(deps): bump django from 4.2.11 to 4.2.13

Bumps django from 4.2.11 to 4.2.13.


updated-dependencies:

  • dependency-name: django
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com> (33362de)

  • chore(deps-dev): bump pytest from 8.2.0 to 8.2.1

Bumps pytest from 8.2.0 to 8.2.1.


updated-dependencies:

  • dependency-name: pytest
    dependency-type: direct:development
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com> (90762a1)

  • chore(deps-dev): bump pytest from 8.1.1 to 8.2.0

Bumps pytest from 8.1.1 to 8.2.0.


updated-dependencies:

  • dependency-name: pytest
    dependency-type: direct:development
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com> (aaae000)

Fix

  • fix(permissions): extend drf permission methods

instead of calling permission in each specific method (create, etc.)
call super in check_object_permission (00580d8)

Unknown

  • Revert "chore(deps): bump python-semantic-release/python-semantic-release"

This reverts commit d9655f1. (18e447a)

v0.4.5

17 Apr 11:27
Compare
Choose a tag to compare

v0.4.5 (2024-04-17)

Chore

  • chore: fix maintenance docs (#39) (9947377)

  • chore: add CONTRIBUTING.md, allow running pytest directly in dev (#50)

Co-authored-by: Fabio Ambauen <1833932+open-dynaMIX@users.noreply.github.com> (4fd4a34)

  • chore(deps): bump django from 4.2.9 to 4.2.11

Bumps django from 4.2.9 to 4.2.11.


updated-dependencies:

  • dependency-name: django
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com> (a6b445d)

  • chore(deps-dev): bump ruff from 0.2.2 to 0.3.5

Bumps ruff from 0.2.2 to 0.3.5.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com> (42d7930)

Fix

  • fix: don't check permissions for GET requests (#51)

Permissions should only deal with POST/PATCH/DELETE - GET requests
should be entirely governed by the visibility layer. (774f259)

v0.4.4

20 Mar 16:10
Compare
Choose a tag to compare

v0.4.4 (2024-03-20)

Fix

  • fix: add fallback for queryset of read_only related fields (#38)

Read only fields don't have a queryset (see
https://github.com/encode/django-rest-framework/blame/77ef27f18fc7c11e1d2e5fd4aaa8acc51cda6792/rest_framework/utils/field_mapping.py#L288), so we need to provide a fallback. (9f6ed09)

v0.4.3

15 Mar 15:57
Compare
Choose a tag to compare

v0.4.3 (2024-03-15)

Chore

  • chore(deps-dev): bump ruff from 0.1.11 to 0.2.2 (#30)

Bumps ruff from 0.1.11 to 0.2.2.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-minor
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (c40eed7)

Documentation

  • docs(readme): fix typo in readme (3a76b16)

Fix

  • fix(validation): fix initialization of validator classes (#37) (f4dae3e)

v0.4.2

08 Jan 15:49
Compare
Choose a tag to compare

v0.4.2 (2024-01-08)

Chore

  • chore(deps): revert semantic release to 8.3.0 (9855045)

  • chore(deps): bump python-semantic-release/python-semantic-release (#16)

Bumps python-semantic-release/python-semantic-release from 8.7.0 to 8.7.2.


updated-dependencies:

  • dependency-name: python-semantic-release/python-semantic-release
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (25eed91)

  • chore(deps): bump django from 4.2.8 to 4.2.9 (#15)

Bumps django from 4.2.8 to 4.2.9.


updated-dependencies:

  • dependency-name: django
    dependency-type: direct:production
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (5410af0)

  • chore(deps-dev): bump ruff from 0.1.9 to 0.1.11 (#14)

Bumps ruff from 0.1.9 to 0.1.11.


updated-dependencies:

  • dependency-name: ruff
    dependency-type: direct:development
    update-type: version-update:semver-patch
    ...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> (4f80c4f)

  • chore: change semantic release commit message (6d39527)

Fix

  • fix: pass correct request param for relationships (0609f64)

v0.4.1

03 Jan 13:36
Compare
Choose a tag to compare

v0.4.1 (2024-01-03)

Chore

  • chore: add python to release action (9c16fa4)

  • chore: add poetry to release action (d76b9d9)

  • chore: add build command (67e2529)

Fix

  • fix: increase min python for flake8 (393b930)

v0.4.0

03 Jan 10:31
Compare
Choose a tag to compare

v0.4.0 (2024-01-03)

Chore

  • chore: fix version variable semantic release (83a33d2)

  • chore: fix semantic release action version (3ed75e0)

  • chore: fix release.yml (#13) (6d6a0ee)

Feature

  • feat: migrate to poetry

add sematic release (41c9226)

Fix

  • fix: import after app is ready (db1d1e6)

Unknown

  • Merge pull request #12 from adfinis/poetry

feat: migrate to poetry, semantic release (9a4ea26)

  • Merge pull request #11 from adfinis/fix-app-ready

fix: import after app is ready (6020979)

v0.3.0

27 Dec 10:12
57353e5
Compare
Choose a tag to compare

v0.3.0 (2023-12-27)

Features

  • Apply visibility rules for relationships
  • Introduce ruff

v0.2.0

26 Aug 12:23
8caaaa7
Compare
Choose a tag to compare

v0.2.0 (2021-08-26)

Features

  • Add support for custom validations

Refactor

Refactored the codebase, simplifying the code. Only one mixin per feature
required now.