commonground-api-common 2.0.0__tar.gz → 2.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/CHANGELOG.rst +18 -1
  2. {commonground_api_common-2.0.0/commonground_api_common.egg-info → commonground_api_common-2.1.0}/PKG-INFO +5 -3
  3. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0/commonground_api_common.egg-info}/PKG-INFO +5 -3
  4. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/commonground_api_common.egg-info/requires.txt +5 -2
  5. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/setup.cfg +5 -3
  6. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_views.py +5 -2
  7. commonground_api_common-2.1.0/vng_api_common/__init__.py +1 -0
  8. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/client.py +12 -9
  9. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0006_delete_apicredential.py +1 -0
  10. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/views.py +13 -2
  11. commonground_api_common-2.0.0/vng_api_common/__init__.py +0 -1
  12. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/MANIFEST.in +0 -0
  13. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/README.rst +0 -0
  14. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/bin/generate_schema +0 -0
  15. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/bin/patch_content_types +0 -0
  16. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/bin/use_external_components +0 -0
  17. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/commonground_api_common.egg-info/SOURCES.txt +0 -0
  18. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/commonground_api_common.egg-info/dependency_links.txt +0 -0
  19. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/commonground_api_common.egg-info/not-zip-safe +0 -0
  20. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/commonground_api_common.egg-info/top_level.txt +0 -0
  21. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/pyproject.toml +0 -0
  22. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/setup.py +0 -0
  23. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_autorisatie_validation.py +0 -0
  24. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_cache_headers.py +0 -0
  25. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_check_query_params.py +0 -0
  26. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_checks.py +0 -0
  27. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_choices.py +0 -0
  28. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_content_type_headers.py +0 -0
  29. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_filters.py +0 -0
  30. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_gegevensgroepen.py +0 -0
  31. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_get_resource.py +0 -0
  32. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_jwt_decoding.py +0 -0
  33. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_jwtsecrets.py +0 -0
  34. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_migrations.py +0 -0
  35. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_nested_serializer_validation.py +0 -0
  36. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_pagination.py +0 -0
  37. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_permissions.py +0 -0
  38. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_publish_validators.py +0 -0
  39. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_schema_root_tags.py +0 -0
  40. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_server_errors.py +0 -0
  41. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_utils.py +0 -0
  42. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/tests/test_validators.py +0 -0
  43. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/admin.py +0 -0
  44. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/api/__init__.py +0 -0
  45. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/api/permissions.py +0 -0
  46. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/api/serializers.py +0 -0
  47. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/api/urls.py +0 -0
  48. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/api/views.py +0 -0
  49. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/apps.py +0 -0
  50. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/__init__.py +0 -0
  51. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/admin.py +0 -0
  52. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/api/__init__.py +0 -0
  53. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/api/scopes.py +0 -0
  54. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/api/serializers.py +0 -0
  55. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/apps.py +0 -0
  56. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/audits.py +0 -0
  57. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0001_initial.py +0 -0
  58. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0002_auto_20190516_0830.py +0 -0
  59. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0003_auto_20190517_0844.py +0 -0
  60. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0004_auto_20190520_1238.py +0 -0
  61. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0005_auto_20190520_1450.py +0 -0
  62. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0006_audittrail_toelichting.py +0 -0
  63. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0007_auto_20190522_0916.py +0 -0
  64. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0008_audittrail_resource_weergave.py +0 -0
  65. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0009_auto_20190712_1643.py +0 -0
  66. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0010_audittrail_request_id.py +0 -0
  67. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0011_auto_20190918_1335.py +0 -0
  68. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0012_auto_20200619_0545.py +0 -0
  69. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0012_remove_audittrail_request_id.py +0 -0
  70. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0013_audittrail_logrecord_id.py +0 -0
  71. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0013_auto_20201207_0846.py +0 -0
  72. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0014_auto_20201221_0905.py +0 -0
  73. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0014_auto_20210323_1654.py +0 -0
  74. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0015_auto_20220318_1608.py +0 -0
  75. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0016_merge_20220607_0517.py +0 -0
  76. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0017_alter_audittrail_bron.py +0 -0
  77. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/0018_auto_20221212_0745.py +0 -0
  78. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/__init__.py +0 -0
  79. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/migrations/_operations.py +0 -0
  80. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/models.py +0 -0
  81. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/audittrails/viewsets.py +0 -0
  82. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/__init__.py +0 -0
  83. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/admin.py +0 -0
  84. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/middleware.py +0 -0
  85. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0001_initial.py +0 -0
  86. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0002_authorizationsconfig.py +0 -0
  87. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0003_auto_20190502_0409.py +0 -0
  88. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0004_auto_20190503_0941.py +0 -0
  89. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0005_auto_20190506_0842.py +0 -0
  90. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0006_auto_20190506_0901.py +0 -0
  91. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0007_auto_20190506_1212.py +0 -0
  92. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0008_auto_20190712_1541.py +0 -0
  93. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0009_update_enums.py +0 -0
  94. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0010_auto_20190712_1643.py +0 -0
  95. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0011_auto_20191114_0728.py +0 -0
  96. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0012_auto_20200619_0545.py +0 -0
  97. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0013_auto_20201207_0846.py +0 -0
  98. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0014_auto_20201221_0905.py +0 -0
  99. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0015_auto_20220318_1608.py +0 -0
  100. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/0016_remove_authorizationsconfig_api_root_and_more.py +0 -0
  101. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/migrations/__init__.py +0 -0
  102. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/models.py +0 -0
  103. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/serializers.py +0 -0
  104. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/utils.py +0 -0
  105. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/authorizations/validators.py +0 -0
  106. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/__init__.py +0 -0
  107. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/decorators.py +0 -0
  108. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/etags.py +0 -0
  109. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/introspection.py +0 -0
  110. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/models.py +0 -0
  111. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/registry.py +0 -0
  112. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/caching/signals.py +0 -0
  113. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/checks.py +0 -0
  114. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/choices.py +0 -0
  115. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/compat.py +0 -0
  116. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/conf/__init__.py +0 -0
  117. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/conf/api.py +0 -0
  118. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/constants.py +0 -0
  119. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/db/__init__.py +0 -0
  120. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/db/operations.py +0 -0
  121. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/decorators.py +0 -0
  122. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/descriptors.py +0 -0
  123. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/doc.py +0 -0
  124. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/exception_handling.py +0 -0
  125. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/exceptions.py +0 -0
  126. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/fields.py +0 -0
  127. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/filters.py +0 -0
  128. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/filtersets.py +0 -0
  129. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/generators.py +0 -0
  130. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/geo.py +0 -0
  131. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/__init__.py +0 -0
  132. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/cache.py +0 -0
  133. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/fields.py +0 -0
  134. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/files.py +0 -0
  135. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/geojson.py +0 -0
  136. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/polymorphic.py +0 -0
  137. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/query.py +0 -0
  138. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/utils.py +0 -0
  139. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/inspectors/view.py +0 -0
  140. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/locale/nl/LC_MESSAGES/django.mo +0 -0
  141. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/locale/nl/LC_MESSAGES/django.po +0 -0
  142. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/__init__.py +0 -0
  143. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/__init__.py +0 -0
  144. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/generate_autorisaties.py +0 -0
  145. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/generate_notificaties.py +0 -0
  146. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/generate_swagger.py +0 -0
  147. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/patch_error_contenttypes.py +0 -0
  148. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/management/commands/use_external_components.py +0 -0
  149. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/middleware.py +0 -0
  150. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0001_initial.py +0 -0
  151. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0002_apicredential.py +0 -0
  152. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0003_auto_20190417_1145.py +0 -0
  153. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0004_auto_20190517_0903.py +0 -0
  154. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/0005_auto_20190614_1346.py +0 -0
  155. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/migrations/__init__.py +0 -0
  156. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/mocks.py +0 -0
  157. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/models.py +0 -0
  158. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/__init__.py +0 -0
  159. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/api/__init__.py +0 -0
  160. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/api/urls.py +0 -0
  161. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/api/views.py +0 -0
  162. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/apps.py +0 -0
  163. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/handlers.py +0 -0
  164. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0001_initial.py +0 -0
  165. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0002_subscription__subscription.py +0 -0
  166. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0003_auto_20190319_1048.py +0 -0
  167. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0004_auto_20190325_1313.py +0 -0
  168. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0005_fix_default_nrc.py +0 -0
  169. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0006_auto_20190417_1142.py +0 -0
  170. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0007_auto_20190429_1442.py +0 -0
  171. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0008_auto_20190502_0415.py +0 -0
  172. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0009_auto_20190729_0427.py +0 -0
  173. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0010_auto_20220704_1419.py +0 -0
  174. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/0011_remove_subscription_config_and_more.py +0 -0
  175. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/notifications/migrations/__init__.py +0 -0
  176. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/oas.py +0 -0
  177. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/pagination.py +0 -0
  178. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/permissions.py +0 -0
  179. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/polymorphism.py +0 -0
  180. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/routers.py +0 -0
  181. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/schema.py +0 -0
  182. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/scopes.py +0 -0
  183. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/search.py +0 -0
  184. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/serializers.py +0 -0
  185. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/css/admin/admin_overrides.css +0 -0
  186. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/css/screen.css +0 -0
  187. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/ico/favicon.png +0 -0
  188. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/img/vng.svg +0 -0
  189. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/LICENSE.txt +0 -0
  190. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/css/all.css +0 -0
  191. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/css/all.min.css +0 -0
  192. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.eot +0 -0
  193. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.svg +0 -0
  194. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.ttf +0 -0
  195. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.woff +0 -0
  196. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-brands-400.woff2 +0 -0
  197. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.eot +0 -0
  198. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.svg +0 -0
  199. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.ttf +0 -0
  200. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.woff +0 -0
  201. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-regular-400.woff2 +0 -0
  202. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.eot +0 -0
  203. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.svg +0 -0
  204. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.ttf +0 -0
  205. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.woff +0 -0
  206. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/static/vng_api_common/libs/fontawesome/webfonts/fa-solid-900.woff2 +0 -0
  207. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/admin/base_site.html +0 -0
  208. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/api_schema_to_markdown_table.md +0 -0
  209. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/autorisaties.md +0 -0
  210. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/includes/kanalen_card.html +0 -0
  211. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/index.html +0 -0
  212. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/master.html +0 -0
  213. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/notificaties.md +0 -0
  214. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/ref/error_detail.html +0 -0
  215. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/ref/scopes.html +0 -0
  216. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templates/vng_api_common/view_config.html +0 -0
  217. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templatetags/__init__.py +0 -0
  218. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/templatetags/vng_api_common.py +0 -0
  219. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/tests/__init__.py +0 -0
  220. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/tests/auth.py +0 -0
  221. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/tests/caching.py +0 -0
  222. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/tests/schema.py +0 -0
  223. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/tests/urls.py +0 -0
  224. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/urls.py +0 -0
  225. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/utils.py +0 -0
  226. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/validators.py +0 -0
  227. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/version.py +0 -0
  228. {commonground_api_common-2.0.0 → commonground_api_common-2.1.0}/vng_api_common/viewsets.py +0 -0
@@ -2,6 +2,23 @@
2
2
  Change history
3
3
  ==============
4
4
 
5
+ 2.1.0 (2024-11-29)
6
+ ------------------
7
+
8
+ * Update `notifications-api-common` to version `0.3.1`
9
+ * [#44] include missing `Service` migration from `zgw-consumers`
10
+ * Add `check_autorisaties_subscription` keyword argument to `_test_nrc_config`
11
+ which allows checking for subscriptions to be optional (defaults to `True`) for the
12
+ authorization service.
13
+ * Modify `_test_nrc_config` check to skip extra checks if Notificaties API is not configured
14
+ * Add `raise_exceptions` option to `get_client` util
15
+ * Remove assertion in `to_internal_data` util to avoid errors in case of empty (204) responses
16
+
17
+ 2.0.1 (2024-11-22)
18
+ ------------------
19
+
20
+ * move zgw-consumers-oas to ``testutils`` instead of ``tests``, to avoid pulling in irrelevant test deps in other projects
21
+
5
22
  2.0.0 (2024-11-22)
6
23
  ------------------
7
24
 
@@ -12,7 +29,7 @@ Change history
12
29
 
13
30
  .. warning::
14
31
 
15
- If your project uses OAS test utilities, make sure to install them via ``commonground-api-common[tests]``
32
+ If your project uses OAS test utilities, make sure to install them via ``commonground-api-common[testutils]``
16
33
 
17
34
  .. warning::
18
35
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonground-api-common
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -29,10 +29,10 @@ Requires-Dist: drf-yasg>=1.20.0
29
29
  Requires-Dist: drf-nested-routers>=0.94.1
30
30
  Requires-Dist: iso-639
31
31
  Requires-Dist: isodate
32
- Requires-Dist: notifications-api-common>=0.3.0
32
+ Requires-Dist: notifications-api-common>=0.3.1
33
33
  Requires-Dist: zgw-consumers>=0.35.1
34
34
  Requires-Dist: oyaml
35
- Requires-Dist: PyJWT>=2.0.0
35
+ Requires-Dist: PyJWT>=2.1.0
36
36
  Requires-Dist: requests
37
37
  Requires-Dist: requests-mock
38
38
  Requires-Dist: coreapi
@@ -51,6 +51,8 @@ Requires-Dist: black; extra == "tests"
51
51
  Requires-Dist: requests-mock; extra == "tests"
52
52
  Requires-Dist: freezegun; extra == "tests"
53
53
  Requires-Dist: zgw-consumers-oas; extra == "tests"
54
+ Provides-Extra: testutils
55
+ Requires-Dist: zgw-consumers-oas; extra == "testutils"
54
56
  Provides-Extra: pep8
55
57
  Requires-Dist: flake8; extra == "pep8"
56
58
  Provides-Extra: coverage
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: commonground-api-common
3
- Version: 2.0.0
3
+ Version: 2.1.0
4
4
  Summary: Commonground API tooling
5
5
  Home-page: https://github.com/maykinmedia/commonground-api-common
6
6
  Author: Maykin Media, VNG-Realisatie
@@ -29,10 +29,10 @@ Requires-Dist: drf-yasg>=1.20.0
29
29
  Requires-Dist: drf-nested-routers>=0.94.1
30
30
  Requires-Dist: iso-639
31
31
  Requires-Dist: isodate
32
- Requires-Dist: notifications-api-common>=0.3.0
32
+ Requires-Dist: notifications-api-common>=0.3.1
33
33
  Requires-Dist: zgw-consumers>=0.35.1
34
34
  Requires-Dist: oyaml
35
- Requires-Dist: PyJWT>=2.0.0
35
+ Requires-Dist: PyJWT>=2.1.0
36
36
  Requires-Dist: requests
37
37
  Requires-Dist: requests-mock
38
38
  Requires-Dist: coreapi
@@ -51,6 +51,8 @@ Requires-Dist: black; extra == "tests"
51
51
  Requires-Dist: requests-mock; extra == "tests"
52
52
  Requires-Dist: freezegun; extra == "tests"
53
53
  Requires-Dist: zgw-consumers-oas; extra == "tests"
54
+ Provides-Extra: testutils
55
+ Requires-Dist: zgw-consumers-oas; extra == "testutils"
54
56
  Provides-Extra: pep8
55
57
  Requires-Dist: flake8; extra == "pep8"
56
58
  Provides-Extra: coverage
@@ -8,10 +8,10 @@ drf-yasg>=1.20.0
8
8
  drf-nested-routers>=0.94.1
9
9
  iso-639
10
10
  isodate
11
- notifications-api-common>=0.3.0
11
+ notifications-api-common>=0.3.1
12
12
  zgw-consumers>=0.35.1
13
13
  oyaml
14
- PyJWT>=2.0.0
14
+ PyJWT>=2.1.0
15
15
  requests
16
16
  requests-mock
17
17
  coreapi
@@ -46,3 +46,6 @@ black
46
46
  requests-mock
47
47
  freezegun
48
48
  zgw-consumers-oas
49
+
50
+ [testutils]
51
+ zgw-consumers-oas
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = commonground-api-common
3
- version = 2.0.0
3
+ version = 2.1.0
4
4
  description = Commonground API tooling
5
5
  long_description = file: README.rst
6
6
  url = https://github.com/maykinmedia/commonground-api-common
@@ -41,10 +41,10 @@ install_requires =
41
41
  drf-nested-routers>=0.94.1
42
42
  iso-639
43
43
  isodate
44
- notifications-api-common>=0.3.0
44
+ notifications-api-common>=0.3.1
45
45
  zgw-consumers>=0.35.1
46
46
  oyaml
47
- PyJWT>=2.0.0
47
+ PyJWT>=2.1.0
48
48
  requests
49
49
  requests-mock
50
50
  coreapi
@@ -79,6 +79,8 @@ tests =
79
79
  requests-mock
80
80
  freezegun
81
81
  zgw-consumers-oas
82
+ testutils =
83
+ zgw-consumers-oas
82
84
  pep8 = flake8
83
85
  coverage = pytest-cov
84
86
  docs =
@@ -1,10 +1,10 @@
1
1
  from django.template.response import TemplateResponse
2
2
  from django.urls import reverse
3
+ from django.utils.translation import gettext as _
3
4
 
4
5
  import pytest
5
6
  import requests_mock
6
7
  from notifications_api_common.models import NotificationsConfig
7
- from requests import Response
8
8
  from rest_framework import status
9
9
  from zgw_consumers.test.factories import ServiceFactory
10
10
 
@@ -120,7 +120,10 @@ def test_config_view_notifications_error_response(api_client):
120
120
  response_content = response.content.decode("utf-8")
121
121
 
122
122
  assert response.status_code == status.HTTP_200_OK
123
- assert "Could not connect with NRC" in response_content
123
+ assert (
124
+ _("Cannot retrieve kanalen: HTTP {status_code}").format(status_code=403)
125
+ in response_content
126
+ )
124
127
 
125
128
  assert request_mocker.call_count == 2
126
129
 
@@ -0,0 +1 @@
1
+ __version__ = "2.1.0"
@@ -3,10 +3,6 @@ Interface to get a client object for a given URL.
3
3
  """
4
4
 
5
5
  import logging
6
- from typing import Any, Optional
7
-
8
- from django.conf import settings
9
- from django.utils.module_loading import import_string
10
6
 
11
7
  from ape_pie import APIClient
12
8
  from requests import JSONDecodeError, RequestException, Response
@@ -18,6 +14,10 @@ class ClientError(RuntimeError):
18
14
  pass
19
15
 
20
16
 
17
+ class NoServiceConfigured(RuntimeError):
18
+ pass
19
+
20
+
21
21
  # TODO: use more approriate method name
22
22
  def to_internal_data(response: Response) -> dict | list | None:
23
23
  try:
@@ -33,7 +33,6 @@ def to_internal_data(response: Response) -> dict | list | None:
33
33
  raise
34
34
  raise ClientError(response_json if response_json is not None else {}) from exc
35
35
 
36
- assert response_json
37
36
  return response_json
38
37
 
39
38
 
@@ -56,7 +55,9 @@ class Client(APIClient):
56
55
  return super().request(method, url, *args, **kwargs)
57
56
 
58
57
 
59
- def get_client(url: str) -> Client | None:
58
+ def get_client(
59
+ url: str, raise_exceptions: bool = False, **client_kwargs
60
+ ) -> Client | None:
60
61
  """
61
62
  Get a client instance for the given URL.
62
63
  If no suitable client is found, ``None`` is returned.
@@ -64,10 +65,12 @@ def get_client(url: str) -> Client | None:
64
65
  from zgw_consumers.client import build_client
65
66
  from zgw_consumers.models import Service
66
67
 
67
- service: Optional[Service] = Service.get_service(url)
68
+ service: Service | None = Service.get_service(url)
68
69
 
69
70
  if not service:
70
71
  logger.warning(f"No service configured for {url}")
71
- return None
72
+ if raise_exceptions:
73
+ raise NoServiceConfigured(f"{url} API should be added to Service model")
74
+ return
72
75
 
73
- return build_client(service, client_factory=Client)
76
+ return build_client(service, client_factory=Client, **client_kwargs)
@@ -107,6 +107,7 @@ class Migration(migrations.Migration):
107
107
 
108
108
  dependencies = [
109
109
  ("vng_api_common", "0005_auto_20190614_1346"),
110
+ ("zgw_consumers", "0022_set_default_service_slug"),
110
111
  ]
111
112
 
112
113
  operations = [
@@ -174,7 +174,7 @@ def _test_ac_config() -> list:
174
174
  return checks
175
175
 
176
176
 
177
- def _test_nrc_config() -> list:
177
+ def _test_nrc_config(check_autorisaties_subscription=True) -> list:
178
178
  if not apps.is_installed("notifications_api_common"):
179
179
  return []
180
180
 
@@ -183,6 +183,9 @@ def _test_nrc_config() -> list:
183
183
  nrc_config = NotificationsConfig.get_solo()
184
184
  nrc_client: Optional[Client] = NotificationsConfig.get_client()
185
185
 
186
+ if not nrc_client:
187
+ return [((_("NRC"), _("Missing"), False))]
188
+
186
189
  has_nrc_auth = nrc_client.auth is not None if nrc_client else False
187
190
 
188
191
  if not nrc_config.notifications_api_service:
@@ -209,14 +212,22 @@ def _test_nrc_config() -> list:
209
212
  try:
210
213
  response: requests.Response = nrc_client.get("kanaal")
211
214
  response.raise_for_status()
212
- except requests.RequestException:
215
+ except requests.ConnectionError:
213
216
  error = True
214
217
  message = _("Could not connect with NRC")
218
+ except requests.HTTPError as exc:
219
+ error = True
220
+ message = _("Cannot retrieve kanalen: HTTP {status_code}").format(
221
+ status_code=exc.response.status_code
222
+ )
215
223
  else:
216
224
  message = _("Can retrieve kanalen")
217
225
 
218
226
  checks.append((_("NRC connection and authorizations"), message, not error))
219
227
 
228
+ if not check_autorisaties_subscription:
229
+ return checks
230
+
220
231
  # check if there's a subscription for AC notifications
221
232
  has_sub = (
222
233
  Subscription.objects.filter(channels__contains=["autorisaties"])
@@ -1 +0,0 @@
1
- __version__ = "2.0.0"