From 89a110ba660cafec69b1782efc2b117fbd653d4a Mon Sep 17 00:00:00 2001 From: Brian Bouterse Date: Wed, 13 Nov 2019 18:16:27 -0500 Subject: [PATCH 1/2] Create 3.0.0rc8 changelog [noissue] --- CHANGES.rst | 114 ++++++++++++++++++++++++++++++++ CHANGES/3308.feature | 1 - CHANGES/3308.removal | 1 - CHANGES/4544.feature | 1 - CHANGES/4780.bugfix | 1 - CHANGES/5028.misc | 1 - CHANGES/5086.feature | 1 - CHANGES/5353.misc | 1 - CHANGES/5378.feature | 2 - CHANGES/5397.feature | 2 - CHANGES/5560.feature | 1 - CHANGES/5574.misc | 1 - CHANGES/5580.misc | 1 - CHANGES/5609.misc | 1 - CHANGES/5612.misc | 1 - CHANGES/5621.bugfix | 1 - CHANGES/5622.bugfix | 1 - CHANGES/5625.removal | 3 - CHANGES/5627.removal | 1 - CHANGES/5629.feature | 1 - CHANGES/5631.feature | 1 - CHANGES/5649.removal | 1 - CHANGES/5686.misc | 1 - CHANGES/5695.removal | 2 - CHANGES/5696.bugfix | 1 - CHANGES/plugin_api/3541.feature | 7 -- CHANGES/plugin_api/3541.removal | 4 -- CHANGES/plugin_api/5086.feature | 1 - CHANGES/plugin_api/5574.doc | 1 - CHANGES/plugin_api/5625.removal | 5 -- CHANGES/plugin_api/5627.removal | 1 - CHANGES/plugin_api/5628.doc | 1 - CHANGES/plugin_api/5629.feature | 2 - 33 files changed, 114 insertions(+), 51 deletions(-) delete mode 100644 CHANGES/3308.feature delete mode 100644 CHANGES/3308.removal delete mode 100644 CHANGES/4544.feature delete mode 100644 CHANGES/4780.bugfix delete mode 100644 CHANGES/5028.misc delete mode 100644 CHANGES/5086.feature delete mode 100644 CHANGES/5353.misc delete mode 100644 CHANGES/5378.feature delete mode 100644 CHANGES/5397.feature delete mode 100644 CHANGES/5560.feature delete mode 100644 CHANGES/5574.misc delete mode 100644 CHANGES/5580.misc delete mode 100644 CHANGES/5609.misc delete mode 100644 CHANGES/5612.misc delete mode 100644 CHANGES/5621.bugfix delete mode 100644 CHANGES/5622.bugfix delete mode 100644 CHANGES/5625.removal delete mode 100644 CHANGES/5627.removal delete mode 100644 CHANGES/5629.feature delete mode 100644 CHANGES/5631.feature delete mode 100644 CHANGES/5649.removal delete mode 100644 CHANGES/5686.misc delete mode 100644 CHANGES/5695.removal delete mode 100644 CHANGES/5696.bugfix delete mode 100644 CHANGES/plugin_api/3541.feature delete mode 100644 CHANGES/plugin_api/3541.removal delete mode 100644 CHANGES/plugin_api/5086.feature delete mode 100644 CHANGES/plugin_api/5574.doc delete mode 100644 CHANGES/plugin_api/5625.removal delete mode 100644 CHANGES/plugin_api/5627.removal delete mode 100644 CHANGES/plugin_api/5628.doc delete mode 100644 CHANGES/plugin_api/5629.feature diff --git a/CHANGES.rst b/CHANGES.rst index 52e6de0d07..47bd3fcc0a 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -13,6 +13,120 @@ Changelog .. towncrier release notes start +3.0.0rc8 (2019-11-13) +===================== +REST API +-------- + +Features +~~~~~~~~ + +- New repository version is not created if no content was added or removed. + `#3308 `_ +- Change `relative_path` from `CharField` to `TextField` + `#4544 `_ +- Create Master/Detail models, serializers, viewsets for FileSystemExporter. + `#5086 `_ +- Adds ability to view content served by pulpcore-content in a browser. + `#5378 `_ +- Adds ability to view distributions served by pulpcore-content in a browser. + `#5397 `_ +- Users specify Pulp settings file locaiton and type using `PULP_SETTINGS` environment variable. + `#5560 `_ +- Added ``CONTENT_ORIGIN`` setting, which is now required. + `#5629 `_ +- Add storage information to the status API. Currently limited to disk space information. + `#5631 `_ + + +Bugfixes +~~~~~~~~ + +- Raise meaningful error for invalid filters. + `#4780 `_ +- Fix bug where 'ordering' parameter returned 400 error. + `#5621 `_ +- Handling `write_only` fields on OpenAPISchema. + `#5622 `_ +- Updated our package version requirements to be compatible with CentOS 7. + `#5696 `_ + + +Deprecations and Removals +~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Repository version number is no longer incremented if content has not changed. + `#3308 `_ +- The /pulp/api/v3/repositories/ endpoint has been removed and Repositories have made a "typed" object. They now live at /pulp/api/v3/repositories//, e.g. /repositories/file/file/. + + The convention for sync is that it will now be performed by POSTing to {repo_href}/sync/ remote={remote_href} instead of by POSTING to {remote_href}/sync/ repository={repo_href}. The latter convention will break due to the aforementioned change. + `#5625 `_ +- Remove plugin managed repos + `#5627 `_ +- Removed CONTENT_HOST variable and replace its functionality with CONTENT_ORIGIN. + `#5649 `_ +- Renamed ssl_ca_certificate to ca_cert, ssl_client_certificate to client_cert, ssl_client_key to + client_key, and ssl_validation to tls_validation. + `#5695 `_ + + +Misc +~~~~ + +- `#5028 `_, `#5353 `_, `#5574 `_, `#5580 `_, `#5609 `_, `#5612 `_, `#5686 `_ + + +Plugin API +---------- + +Features +~~~~~~~~ + +- Added `Repository.finalize_new_version(new_version)` which is called by `RepositoryVersion.__exit__` + to allow plugin-code to validate or modify the `RepositoryVersion` before pulpcore marks it as + complete and saves it. + + Added `pulpcore.plugin.repo_version_utils.remove_duplicates(new_version)` for plugin writers to use. + It relies on the definition of repository uniqueness from the `repo_key_fields` tuple plugins can + define on their `Content` subclasses. + `#3541 `_ +- Create Master/Detail models, serializers, viewsets for FileSystemExporter. + `#5086 `_ +- Added the ``CONTENT_ORIGIN`` setting which can be used to reliably know the scheme+host+port to the + pulp content app. + `#5629 `_ + + +Improved Documentation +~~~~~~~~~~~~~~~~~~~~~~ + +- Be more explicit about namespacing `ref_name` in plugin serializers. + `#5574 `_ +- Add `Plugin API` section to the changelog. + `#5628 `_ + + +Deprecations and Removals +~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Renamed the Content.repo_key to be Content.repo_key_fields. Also the calling of `remove_duplicates` + no longer happens in `RepositoryVersion.add_content` and instead is intended for plugins to call + from `Repository.finalize_new_version(new_version)`. Also the `pulpcore.plugin.RemoveDuplicates` + Stage was removed. + `#3541 `_ +- models.RepositoryVersion.create() is no longer available, it has been replaced by {repository instance}.new_version(). + + The convention for sync is that it will now be performed by POSTing to {repo_href}/sync/ remote={remote_href} instead of by POSTING to {remote_href}/sync/ repository={repo_href}. The latter will break due to becoming a typed resource, so plugins will need to adjust their code for the former convention. + + Make repositories "typed". Plugin writers need to subclass the Repository model, viewset, and serializer, as well as the RepositoryVersion viewset (just the viewset). They should also remove the /sync/ endpoint from their remote viewset and place it on the repository viewset. + `#5625 `_ +- Remove plugin managed repos + `#5627 `_ + + +---- + + 3.0.0rc7 (2019-10-15) ===================== diff --git a/CHANGES/3308.feature b/CHANGES/3308.feature deleted file mode 100644 index f1b556b368..0000000000 --- a/CHANGES/3308.feature +++ /dev/null @@ -1 +0,0 @@ -New repository version is not created if no content was added or removed. diff --git a/CHANGES/3308.removal b/CHANGES/3308.removal deleted file mode 100644 index e7af398296..0000000000 --- a/CHANGES/3308.removal +++ /dev/null @@ -1 +0,0 @@ -Repository version number is no longer incremented if content has not changed. diff --git a/CHANGES/4544.feature b/CHANGES/4544.feature deleted file mode 100644 index 30052138fc..0000000000 --- a/CHANGES/4544.feature +++ /dev/null @@ -1 +0,0 @@ -Change `relative_path` from `CharField` to `TextField` diff --git a/CHANGES/4780.bugfix b/CHANGES/4780.bugfix deleted file mode 100644 index 3fe2bd9bbe..0000000000 --- a/CHANGES/4780.bugfix +++ /dev/null @@ -1 +0,0 @@ -Raise meaningful error for invalid filters. diff --git a/CHANGES/5028.misc b/CHANGES/5028.misc deleted file mode 100644 index 64c69b7471..0000000000 --- a/CHANGES/5028.misc +++ /dev/null @@ -1 +0,0 @@ -Allowing to create a repository version without dispatching a task. diff --git a/CHANGES/5086.feature b/CHANGES/5086.feature deleted file mode 100644 index bb1d39132e..0000000000 --- a/CHANGES/5086.feature +++ /dev/null @@ -1 +0,0 @@ -Create Master/Detail models, serializers, viewsets for FileSystemExporter. diff --git a/CHANGES/5353.misc b/CHANGES/5353.misc deleted file mode 100644 index 83d72a775e..0000000000 --- a/CHANGES/5353.misc +++ /dev/null @@ -1 +0,0 @@ -Moving all the methods for `Content`, `ContentGuard`, `Remote` and `Publisher` from pulpcore-plugin to pulpcore. diff --git a/CHANGES/5378.feature b/CHANGES/5378.feature deleted file mode 100644 index 70d6a16294..0000000000 --- a/CHANGES/5378.feature +++ /dev/null @@ -1,2 +0,0 @@ -Adds ability to view content served by pulpcore-content in a browser. - diff --git a/CHANGES/5397.feature b/CHANGES/5397.feature deleted file mode 100644 index 1cfee357b0..0000000000 --- a/CHANGES/5397.feature +++ /dev/null @@ -1,2 +0,0 @@ -Adds ability to view distributions served by pulpcore-content in a browser. - diff --git a/CHANGES/5560.feature b/CHANGES/5560.feature deleted file mode 100644 index 675b6567d9..0000000000 --- a/CHANGES/5560.feature +++ /dev/null @@ -1 +0,0 @@ -Users specify Pulp settings file locaiton and type using `PULP_SETTINGS` environment variable. diff --git a/CHANGES/5574.misc b/CHANGES/5574.misc deleted file mode 100644 index a6edf7eb55..0000000000 --- a/CHANGES/5574.misc +++ /dev/null @@ -1 +0,0 @@ -Set default `ref_name` attribute for a ModelSerializers's `Meta` class. diff --git a/CHANGES/5580.misc b/CHANGES/5580.misc deleted file mode 100644 index f91de3d2cb..0000000000 --- a/CHANGES/5580.misc +++ /dev/null @@ -1 +0,0 @@ -Move the entirety of pulpcore-plugin into pulpcore. diff --git a/CHANGES/5609.misc b/CHANGES/5609.misc deleted file mode 100644 index 777275882a..0000000000 --- a/CHANGES/5609.misc +++ /dev/null @@ -1 +0,0 @@ -Database column types using CharField were converted to TextField. This was a restriction leftover from MySQL support which is no longer relevant. diff --git a/CHANGES/5612.misc b/CHANGES/5612.misc deleted file mode 100644 index a047b94730..0000000000 --- a/CHANGES/5612.misc +++ /dev/null @@ -1 +0,0 @@ -Fix plugin API documentation post-merge diff --git a/CHANGES/5621.bugfix b/CHANGES/5621.bugfix deleted file mode 100644 index 52e3ba1f2c..0000000000 --- a/CHANGES/5621.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix bug where 'ordering' parameter returned 400 error. diff --git a/CHANGES/5622.bugfix b/CHANGES/5622.bugfix deleted file mode 100644 index 2cbae0e680..0000000000 --- a/CHANGES/5622.bugfix +++ /dev/null @@ -1 +0,0 @@ -Handling `write_only` fields on OpenAPISchema. diff --git a/CHANGES/5625.removal b/CHANGES/5625.removal deleted file mode 100644 index 62e2d978ec..0000000000 --- a/CHANGES/5625.removal +++ /dev/null @@ -1,3 +0,0 @@ -The /pulp/api/v3/repositories/ endpoint has been removed and Repositories have made a "typed" object. They now live at /pulp/api/v3/repositories//, e.g. /repositories/file/file/. - -The convention for sync is that it will now be performed by POSTing to {repo_href}/sync/ remote={remote_href} instead of by POSTING to {remote_href}/sync/ repository={repo_href}. The latter convention will break due to the aforementioned change. diff --git a/CHANGES/5627.removal b/CHANGES/5627.removal deleted file mode 100644 index b4f8428629..0000000000 --- a/CHANGES/5627.removal +++ /dev/null @@ -1 +0,0 @@ -Remove plugin managed repos diff --git a/CHANGES/5629.feature b/CHANGES/5629.feature deleted file mode 100644 index 5468207c23..0000000000 --- a/CHANGES/5629.feature +++ /dev/null @@ -1 +0,0 @@ -Added ``CONTENT_ORIGIN`` setting, which is now required. diff --git a/CHANGES/5631.feature b/CHANGES/5631.feature deleted file mode 100644 index 363ba52e44..0000000000 --- a/CHANGES/5631.feature +++ /dev/null @@ -1 +0,0 @@ -Add storage information to the status API. Currently limited to disk space information. diff --git a/CHANGES/5649.removal b/CHANGES/5649.removal deleted file mode 100644 index 10cda43c4d..0000000000 --- a/CHANGES/5649.removal +++ /dev/null @@ -1 +0,0 @@ -Removed CONTENT_HOST variable and replace its functionality with CONTENT_ORIGIN. diff --git a/CHANGES/5686.misc b/CHANGES/5686.misc deleted file mode 100644 index 3817427d38..0000000000 --- a/CHANGES/5686.misc +++ /dev/null @@ -1 +0,0 @@ -Set CONTENT_ORIGIN when publishing docs. diff --git a/CHANGES/5695.removal b/CHANGES/5695.removal deleted file mode 100644 index 51f6bf5d02..0000000000 --- a/CHANGES/5695.removal +++ /dev/null @@ -1,2 +0,0 @@ -Renamed ssl_ca_certificate to ca_cert, ssl_client_certificate to client_cert, ssl_client_key to -client_key, and ssl_validation to tls_validation. diff --git a/CHANGES/5696.bugfix b/CHANGES/5696.bugfix deleted file mode 100644 index 39ed70c7bc..0000000000 --- a/CHANGES/5696.bugfix +++ /dev/null @@ -1 +0,0 @@ -Updated our package version requirements to be compatible with CentOS 7. diff --git a/CHANGES/plugin_api/3541.feature b/CHANGES/plugin_api/3541.feature deleted file mode 100644 index 6a3c889799..0000000000 --- a/CHANGES/plugin_api/3541.feature +++ /dev/null @@ -1,7 +0,0 @@ -Added `Repository.finalize_new_version(new_version)` which is called by `RepositoryVersion.__exit__` -to allow plugin-code to validate or modify the `RepositoryVersion` before pulpcore marks it as -complete and saves it. - -Added `pulpcore.plugin.repo_version_utils.remove_duplicates(new_version)` for plugin writers to use. -It relies on the definition of repository uniqueness from the `repo_key_fields` tuple plugins can -define on their `Content` subclasses. diff --git a/CHANGES/plugin_api/3541.removal b/CHANGES/plugin_api/3541.removal deleted file mode 100644 index cb617f899c..0000000000 --- a/CHANGES/plugin_api/3541.removal +++ /dev/null @@ -1,4 +0,0 @@ -Renamed the Content.repo_key to be Content.repo_key_fields. Also the calling of `remove_duplicates` -no longer happens in `RepositoryVersion.add_content` and instead is intended for plugins to call -from `Repository.finalize_new_version(new_version)`. Also the `pulpcore.plugin.RemoveDuplicates` -Stage was removed. diff --git a/CHANGES/plugin_api/5086.feature b/CHANGES/plugin_api/5086.feature deleted file mode 100644 index bb1d39132e..0000000000 --- a/CHANGES/plugin_api/5086.feature +++ /dev/null @@ -1 +0,0 @@ -Create Master/Detail models, serializers, viewsets for FileSystemExporter. diff --git a/CHANGES/plugin_api/5574.doc b/CHANGES/plugin_api/5574.doc deleted file mode 100644 index f11375c328..0000000000 --- a/CHANGES/plugin_api/5574.doc +++ /dev/null @@ -1 +0,0 @@ -Be more explicit about namespacing `ref_name` in plugin serializers. diff --git a/CHANGES/plugin_api/5625.removal b/CHANGES/plugin_api/5625.removal deleted file mode 100644 index 7fe2084472..0000000000 --- a/CHANGES/plugin_api/5625.removal +++ /dev/null @@ -1,5 +0,0 @@ -models.RepositoryVersion.create() is no longer available, it has been replaced by {repository instance}.new_version(). - -The convention for sync is that it will now be performed by POSTing to {repo_href}/sync/ remote={remote_href} instead of by POSTING to {remote_href}/sync/ repository={repo_href}. The latter will break due to becoming a typed resource, so plugins will need to adjust their code for the former convention. - -Make repositories "typed". Plugin writers need to subclass the Repository model, viewset, and serializer, as well as the RepositoryVersion viewset (just the viewset). They should also remove the /sync/ endpoint from their remote viewset and place it on the repository viewset. diff --git a/CHANGES/plugin_api/5627.removal b/CHANGES/plugin_api/5627.removal deleted file mode 100644 index b4f8428629..0000000000 --- a/CHANGES/plugin_api/5627.removal +++ /dev/null @@ -1 +0,0 @@ -Remove plugin managed repos diff --git a/CHANGES/plugin_api/5628.doc b/CHANGES/plugin_api/5628.doc deleted file mode 100644 index 4f72b2fb2e..0000000000 --- a/CHANGES/plugin_api/5628.doc +++ /dev/null @@ -1 +0,0 @@ -Add `Plugin API` section to the changelog. diff --git a/CHANGES/plugin_api/5629.feature b/CHANGES/plugin_api/5629.feature deleted file mode 100644 index e2366f74e1..0000000000 --- a/CHANGES/plugin_api/5629.feature +++ /dev/null @@ -1,2 +0,0 @@ -Added the ``CONTENT_ORIGIN`` setting which can be used to reliably know the scheme+host+port to the -pulp content app. From 43d00210e72e9b39928c422ba71ddb34ed245819 Mon Sep 17 00:00:00 2001 From: Brian Bouterse Date: Wed, 13 Nov 2019 18:17:20 -0500 Subject: [PATCH 2/2] Bump version to 3.0.0rc8 [noissue] --- pulpcore/__init__.py | 2 +- setup.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pulpcore/__init__.py b/pulpcore/__init__.py index 2f4d60e8f1..502be34375 100644 --- a/pulpcore/__init__.py +++ b/pulpcore/__init__.py @@ -1,4 +1,4 @@ -__version__ = '3.0.0rc8.dev' +__version__ = '3.0.0rc8' from pkgutil import extend_path diff --git a/setup.py b/setup.py index 8dc88c2d8e..7e1bc40e30 100644 --- a/setup.py +++ b/setup.py @@ -26,7 +26,7 @@ setup( name='pulpcore', - version='3.0.0rc8.dev', + version='3.0.0rc8', description='Pulp Django Application and Related Modules', long_description=long_description, long_description_content_type="text/markdown",