Skip to content

Latest commit

 

History

History
530 lines (344 loc) · 23 KB

CHANGELOG.md

File metadata and controls

530 lines (344 loc) · 23 KB

CHANGELOG

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. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • 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] [email protected]

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

Bumps pytest from 8.3.2 to 8.3.3. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

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

Bumps django from 4.2.13 to 4.2.16. - Commits

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

Signed-off-by: dependabot[bot] [email protected]

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

Bumps ruff from 0.6.3 to 0.8.0. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

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

Bumps pytest from 8.2.1 to 8.3.2. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

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

Bumps ruff from 0.4.6 to 0.6.3. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

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

Bumps black from 23.12.1 to 24.4.2. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

v0.4.6 (2024-05-29)

Bug Fixes

  • permissions: Extend drf permission methods (00580d8)

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

Chores

Automatically generated by python-semantic-release

  • deps: Bump python-semantic-release/python-semantic-release (d9655f1)

Commits

--- 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] [email protected]

  • deps-dev: Bump ruff from 0.3.5 to 0.4.6 (c614700)

Bumps ruff from 0.3.5 to 0.4.6. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • deps-dev: Bump djangorestframework-jsonapi from 6.1.0 to 7.0.0 (abe4798)

Bumps djangorestframework-jsonapi from 6.1.0 to 7.0.0. - Release notes - Changelog

Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • deps: Bump django from 4.2.11 to 4.2.13 (33362de)

Bumps django from 4.2.11 to 4.2.13. - Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • deps-dev: Bump pytest from 8.2.0 to 8.2.1 (90762a1)

Bumps pytest from 8.2.0 to 8.2.1. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • deps-dev: Bump pytest from 8.1.1 to 8.2.0 (aaae000)

Bumps pytest from 8.1.1 to 8.2.0. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

v0.4.5 (2024-04-17)

Bug Fixes

  • Don't check permissions for GET requests (#51, 774f259)

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

Chores

Automatically generated by python-semantic-release

  • Fix maintenance docs (#39, 9947377)

  • Add CONTRIBUTING.md, allow running pytest directly in dev (#50, 4fd4a34)

Co-authored-by: Fabio Ambauen [email protected]

  • deps: Bump django from 4.2.9 to 4.2.11 (a6b445d)

Bumps django from 4.2.9 to 4.2.11. - Commits

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

Signed-off-by: dependabot[bot] [email protected]

  • deps-dev: Bump ruff from 0.2.2 to 0.3.5 (42d7930)

Bumps ruff from 0.2.2 to 0.3.5. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected]

v0.4.4 (2024-03-20)

Bug Fixes

  • Add fallback for queryset of read_only related fields (#38, 9f6ed09)

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.

Chores

Automatically generated by python-semantic-release

v0.4.3 (2024-03-15)

Bug Fixes

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

Chores

Automatically generated by python-semantic-release

  • deps-dev: Bump ruff from 0.1.11 to 0.2.2 (#30, c40eed7)

Bumps ruff from 0.1.11 to 0.2.2. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

Documentation

  • readme: Fix typo in readme (3a76b16)

v0.4.2 (2024-01-08)

Bug Fixes

  • Pass correct request param for relationships (0609f64)

Chores

Automatically generated by python-semantic-release

  • deps: Revert semantic release to 8.3.0 (9855045)

  • deps: Bump python-semantic-release/python-semantic-release (#16, 25eed91)

Commits

--- 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] [email protected] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • deps: Bump django from 4.2.8 to 4.2.9 (#15, 5410af0)

Bumps django from 4.2.8 to 4.2.9. - Commits

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

Signed-off-by: dependabot[bot] [email protected] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • deps-dev: Bump ruff from 0.1.9 to 0.1.11 (#14, 4f80c4f)

Bumps ruff from 0.1.9 to 0.1.11. - Release notes - Changelog - Commits

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

Signed-off-by: dependabot[bot] [email protected] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

  • Change semantic release commit message (6d39527)

v0.4.1 (2024-01-03)

Bug Fixes

  • Increase min python for flake8 (393b930)

Chores

  • Add python to release action (9c16fa4)

  • Add poetry to release action (d76b9d9)

  • Add build command (67e2529)

v0.4.0 (2024-01-03)

Bug Fixes

  • Import after app is ready (db1d1e6)

Chores

  • Fix version variable semantic release (83a33d2)

  • Fix semantic release action version (3ed75e0)

  • Fix release.yml (#13, 6d6a0ee)

Features

add sematic release

v0.3.0 (2023-12-27)

Bug Fixes

  • Improve type checks (0ee7e0e)

  • Prevent overwrite of hidden relations in patch (7247483)

  • Remove unnecessary get_queryset from RelatedFieldMixin (15e2ea4)

  • Fix test setup (a23d244)

  • Change MRO for serializer relation fields (09f13fe)

  • Add more python versions to test (2d988db)

switch to ruff

Chores

Features

  • Filter manytomany relations (34be60c)

  • Implement foreignkey visibility filtering (7d01398)

  • Add visibiility mixin for relationships (545c36a)

v0.2.0 (2021-08-26)

Chores

Django 5 will set USE_TZ to default and warns if our settings.py doesn't contain it. Also, they renamed the master branc to main. Django-latest requires Python 3.8+, so we cannot test that combination anymore

Refactoring

  • Unify the code base, add validation (faa61d2)

Since the code base baseicall does the same for four different objectives, we shouldn't have multiple, similar implementations of basically the same things.

This introduces a generic config class that is used to register permission, visibility, and validation classes. The interface to using the package has been cleaned up as well: The model classes won't need a mixin anymore for either visibility or permissions to work. The permission classes don't need to inherit from the BasePermission anymore either

There is now a clean import / usage structure to use this package:

  • all permissions stuff can be imported from generic_permissions.permissions * all visibility stuff can be imported from generic_permissions.visibilities * all validation stuff can be imported from generic_permissions.validation

v0.1.0 (2020-12-18)

Chores

  • Prepare first proper release (0d5d677)

  • Prepare metadata for PyPI release (c89cf9c)

Features

  • Add initial implementation (2a8d8b4)