Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into stable-4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
newswangerd committed Apr 16, 2021
2 parents d6c9bf7 + 69aa9cf commit 03ef3aa
Show file tree
Hide file tree
Showing 55 changed files with 150 additions and 117 deletions.
2 changes: 1 addition & 1 deletion .travis/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.3.0.dev
4.3.0a2
140 changes: 140 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,146 @@ Changelog

.. towncrier release notes start
4.3.0a2 (2021-04-16)
====================

Features
--------

- Enable OpenAPI spec at cloud.redhat.com/api/automation-hub/v3/openapi.json

Update docs and decorators on viewsets and serializers to generate correct
spec.

Modify pulpcore openapigenerator to include concrete hrefs in addition
to {ansible_collection_href}/ style endpoints.

Need to provide the existing pulp /pulp/api/v3/docs/ view and
a new view at /api/automation-hub/v3/openapi.json
- new viewset may need drf-spectacular tweaks

Sub tasks:
- Create a snapshot of the OpenAPI spec in CI.
- setup any useful tooling for validating/verifying the spec
- openapidiff ?
- Enable swaggerui view (/v3/swagger/ ?)

Potential problems:

- May want/need to import pulpcore openapi generator utils, which may not be in plugin
api

Before:

Pulp uses drf-spectacular

A "live" generated version of the API is available at

http://localhost:5001/pulp/api/v3/docs/api.json
http://localhost:5001/pulp/api/v3/docs/api.yaml

And a "redoc" view at:
http://localhost:5001/pulp/api/v3/docs/

Note some issues:

- Lots of endpoints are in the form "{ansible_collection_import_href}"
- in theory, all endpoints should start with a "/" but even
when evaluated, the above is "ansible/ansible/v3/collections/artifacts"

- schema objects are inconsistent named
- pulpcore has no prefix
- pulp_ansible has ansible. prefix
- galaxy_ng sometimes? has galaxy. prefix and sometimes Galaxy
`AAH-57 <https://issues.redhat.com/browse/AAH-57>`_
- Add OpenShift job template to run database migrations
`AAH-145 <https://issues.redhat.com/browse/AAH-145>`_
- Allow on to customize version for sdist building
`AAH-185 <https://issues.redhat.com/browse/AAH-185>`_
- Add debug level logging about access_policy permission evaluation.
`AAH-205 <https://issues.redhat.com/browse/AAH-205>`_
- Add unpaginated collections, collectionversions and metadata endopints for better sync performance.
`AAH-224 <https://issues.redhat.com/browse/AAH-224>`_
- Add rate_limit to remotes api.
`AAH-272 <https://issues.redhat.com/browse/AAH-272>`_
- Add container list and detail endpoints for execution environments.
`AAH-274 <https://issues.redhat.com/browse/AAH-274>`_
- Add the ability to view the changes that have been made to a container repo.
`AAH-276 <https://issues.redhat.com/browse/AAH-276>`_
- Add api to return images in a container repo.
`AAH-277 <https://issues.redhat.com/browse/AAH-277>`_
- Set pulp container access policies.
`AAH-278 <https://issues.redhat.com/browse/AAH-278>`_
- Load initial data for repo, remote and distribution using data migrations
`AAH-281 <https://issues.redhat.com/browse/AAH-281>`_
- Add GALAXY_FEATURE_FLAGS to enable/disable execution environments
`AAH-298 <https://issues.redhat.com/browse/AAH-298>`_
- Add the ability to create readmes for container distributions.
`AAH-317 <https://issues.redhat.com/browse/AAH-317>`_
- Add api for loading a container manifest configuration blob.
`AAH-338 <https://issues.redhat.com/browse/AAH-338>`_
- Add requires_ansible to the collection api endpoints
`AAH-409 <https://issues.redhat.com/browse/AAH-409>`_
- Add models for container registry sync config
`AAH-432 <https://issues.redhat.com/browse/AAH-432>`_
- Allow creating super users.
`AAH-500 <https://issues.redhat.com/browse/AAH-500>`_


Bugfixes
--------

- Fix how travis checks for existence of Jira issues
`AAH-44 <https://issues.redhat.com/browse/AAH-44>`_
- Fixed synclist curation creating 2 * N tasks, where N is number of synclists.
Now synclist curation is executed in batches. Number of batches is configured in project settings.
By default it is set to 200 synclists per task.
`AAH-50 <https://issues.redhat.com/browse/AAH-50>`_
- Fix NamespaceLink creation and Validation on duplicated name.
`AAH-132 <https://issues.redhat.com/browse/AAH-132>`_
- API returns 409 in case of existing group with same name.
`AAH-152 <https://issues.redhat.com/browse/AAH-152>`_
- The namespaces api now performs a partial match on namespace name and namespace company name when using the 'keywords' query parameter.
`AAH-166 <https://issues.redhat.com/browse/AAH-166>`_
- Fix KeyError lookup in namespace and collection viewset
`AAH-195 <https://issues.redhat.com/browse/AAH-195>`_
- Fix error in error msg when importing invalid filenames
`AAH-203 <https://issues.redhat.com/browse/AAH-203>`_
- Fix the galaxy-importer check for max size of docs files
`AAH-220 <https://issues.redhat.com/browse/AAH-220>`_
- Only show synclist toggles to org admin.


ie, non org admin's should get 403 response
when viewing synclist endpoints.
`AAH-222 <https://issues.redhat.com/browse/AAH-222>`_
- Users should not be able to delete themselves.

Even if they have 'delete-user' perms.
`AAH-265 <https://issues.redhat.com/browse/AAH-265>`_
- Prevent users with delete-user perms from deleting admin users
`AAH-266 <https://issues.redhat.com/browse/AAH-266>`_
- Make token and password obfuscated on the API docs for /sync/config
`AAH-282 <https://issues.redhat.com/browse/AAH-282>`_
- split proxy_url in 3 fields: username, password, address
`AAH-291 <https://issues.redhat.com/browse/AAH-291>`_
- Fix groups endpoint viewable only by admin
`AAH-453 <https://issues.redhat.com/browse/AAH-453>`_
- Expose pulp API in generated openapi spec.
`AAH-482 <https://issues.redhat.com/browse/AAH-482>`_
- Replace current PULP_REDIS* env variables with PULP_REDIS_URL env variable to accommodate PULP_REDIS_SSL.
`AAH-486 <https://issues.redhat.com/browse/AAH-486>`_


Misc
----

- `AAH-16 <https://issues.redhat.com/browse/AAH-16>`_, `AAH-31 <https://issues.redhat.com/browse/AAH-31>`_, `AAH-120 <https://issues.redhat.com/browse/AAH-120>`_, `AAH-139 <https://issues.redhat.com/browse/AAH-139>`_, `AAH-176 <https://issues.redhat.com/browse/AAH-176>`_, `AAH-177 <https://issues.redhat.com/browse/AAH-177>`_, `AAH-257 <https://issues.redhat.com/browse/AAH-257>`_, `AAH-295 <https://issues.redhat.com/browse/AAH-295>`_, `AAH-299 <https://issues.redhat.com/browse/AAH-299>`_, `AAH-344 <https://issues.redhat.com/browse/AAH-344>`_, `AAH-387 <https://issues.redhat.com/browse/AAH-387>`_, `AAH-393 <https://issues.redhat.com/browse/AAH-393>`_, `AAH-425 <https://issues.redhat.com/browse/AAH-425>`_, `AAH-433 <https://issues.redhat.com/browse/AAH-433>`_, `AAH-478 <https://issues.redhat.com/browse/AAH-478>`_, `AAH-483 <https://issues.redhat.com/browse/AAH-483>`_


----


4.2.0 (2020-11-12)
==================

Expand Down
1 change: 0 additions & 1 deletion CHANGES/120.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/132.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/139.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/145.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/152.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/16.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/166.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/176.misc

This file was deleted.

Empty file removed CHANGES/177.misc
Empty file.
1 change: 0 additions & 1 deletion CHANGES/185.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/195.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/203.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/205.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/220.bugfix

This file was deleted.

5 changes: 0 additions & 5 deletions CHANGES/222.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/224.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/257.misc

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGES/265.bufix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/266.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/272.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/274.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/276.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/277.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/278.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/281.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/282.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/291.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/295.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/298.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/299.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/31.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/317.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/338.feature

This file was deleted.

8 changes: 0 additions & 8 deletions CHANGES/344.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/387.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/393.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/409.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/425.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/432.feature

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/433.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/44.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/453.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/478.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/482.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/483.misc

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/486.bugfix

This file was deleted.

3 changes: 0 additions & 3 deletions CHANGES/50.bugfix

This file was deleted.

1 change: 0 additions & 1 deletion CHANGES/500.feature

This file was deleted.

45 changes: 0 additions & 45 deletions CHANGES/57.feature

This file was deleted.

2 changes: 1 addition & 1 deletion galaxy_ng/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "4.3.0.dev"
__version__ = "4.3.0a2"

default_app_config = "galaxy_ng.app.PulpGalaxyPluginAppConfig"
2 changes: 1 addition & 1 deletion galaxy_ng/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class PulpGalaxyPluginAppConfig(PulpPluginAppConfig):

name = "galaxy_ng.app"
label = "galaxy"
version = "4.3.0.dev"
version = "4.3.0a2"

def ready(self):
super().ready()
Expand Down
12 changes: 6 additions & 6 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[bumpversion]
current_version = 4.3.0.dev
current_version = 4.3.0a2
commit = False
tag = False
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\.(?P<release>[a-z]+))?((?P<build>\d+))?
serialize =
{major}.{minor}.{patch}.{release}{build}
{major}.{minor}.{patch}.{release}
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)((?P<release>[a-z]+))?((?P<build>\d+))?
serialize =
{major}.{minor}.{patch}{release}{build}
{major}.{minor}.{patch}{release}
{major}.{minor}.{patch}

[bumpversion:part:release]
optional_value = stable
first_value = stable
values =
values =
stable
dev
a
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def run(self):
print("Installing with unpinned DEV_SOURCE_PATH requirements", requirements)

package_name = os.environ.get("GALAXY_NG_ALTERNATE_NAME", "galaxy-ng")
version = "4.3.0.dev"
version = "4.3.0a2"

setup(
name=package_name,
Expand Down

0 comments on commit 03ef3aa

Please sign in to comment.