Skip to content

Instantly share code, notes, and snippets.

@alikins
Created August 12, 2020 14:33
Show Gist options
  • Save alikins/ec8d033f8500ed7560903123583f0810 to your computer and use it in GitHub Desktop.
Save alikins/ec8d033f8500ed7560903123583f0810 to your computer and use it in GitHub Desktop.
galaxy_ng pyff summary
Removed packages galaxy_ng/app/access_control, galaxy_ng/app/access_control/statements
Package galaxy_ng/app/auth changed:
Module auth.py changed:
New imported settings from new django.conf
New imported BasePermission from new rest_framework.permissions
New class RHEntitlementRequired with 1 public method
Package galaxy_ng/app/api/ui/views changed:
Module auth.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported RestrictOnCloudDeployments from new galaxy_ng.app.api.permissions
Package galaxy_ng/app/api changed:
New module permissions.py
Package galaxy_ng/app/api/v3/views changed:
Module auth.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported IsAuthenticated from new rest_framework.permissions
New imported RestrictOnCloudDeployments from new galaxy_ng.app.api.permissions
Package galaxy_ng/app/tasks changed:
Module publishing.py changed:
Removed import of ContentArtifact from pulpcore.plugin.models
New imported ContentType from new django.contrib.contenttypes.models
New imported Task from pulpcore.plugin.models
New imported AnsibleDistribution, CollectionVersion from pulp_ansible.app.models
Function import_and_auto_approve changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
No longer uses imported ContentArtifact
Newly uses imported AnsibleDistribution, AnsibleRepository, add_content_to_repository, enqueue_with_reservation, remove_content_from_repository
Function import_and_move_to_staging changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
No longer uses imported ContentArtifact
Newly uses imported AnsibleDistribution
New function get_created_collection_versions
Package galaxy_ng/tests/unit/app changed:
Module test_tasks.py changed:
New imported settings from new django.conf
New imported override_settings from django.test
New imported PulpTemporaryFile from pulpcore.plugin.models
New imported AnsibleDistribution from pulp_ansible.app.models
Class TestTaskPublish changed:
New attribute pulp_temp_file
Method setUp changed implementation:
Code semantics changed
Newly uses imported PulpTemporaryFile
Method test_import_and_auto_approve changed implementation:
Removed arg mocked_import_collection
Added arg mocked_enqueue
Added arg mocked_import
Added arg mocked_get_created
Code semantics changed
Newly uses imported AnsibleDistribution, AnsibleRepository
Method test_import_and_move_to_staging changed implementation:
Added arg mocked_get_created
Code semantics changed
Newly uses imported AnsibleDistribution
Package galaxy_ng/app/models changed:
Module collectionimport.py changed:
Removed import of LifecycleModel from removed django_lifecycle
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Module namespace.py changed:
Removed import of LifecycleModel from removed django_lifecycle
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Removed import of mixins from removed galaxy_ng.app.access_control
Module synclist.py changed:
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Removed import of LifecycleModel from removed django_lifecycle
Removed import of GroupModelPermissionsMixin from removed galaxy_ng.app.access_control.mixins
Package galaxy_ng/app/api/ui/viewsets changed:
Module collection.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported permissions from galaxy_ng.app.api
Class CollectionImportViewSet changed:
Removed method get_permissions
Module my_namespace.py changed:
Removed import of get_objects_for_user from removed guardian.shortcuts
New imported permissions from new galaxy_ng.app.api
Class MyNamespaceViewSet changed:
Method get_queryset changed implementation:
Code semantics changed
No longer uses imported get_objects_for_user
Newly uses imported permissions
Module my_synclist.py changed:
New imported package logging
Removed import of get_objects_for_user from removed guardian.shortcuts
Removed import of access_policy from removed galaxy_ng.app.access_control
Removed import of SyncListViewSet from removed synclist
New imported api_base, permissions from new galaxy_ng.app.api
New imported serializers from new galaxy_ng.app.api.ui
Class MySyncListViewSet changed:
Method get_queryset changed implementation:
Code semantics changed
No longer uses imported get_objects_for_user
Newly uses imported permissions
New method get_permissions
Module namespace.py changed:
New imported serializers from new galaxy_ng.app.api.ui
Class NamespaceViewSet changed:
New method get_serializer_class
Module synclist.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported permissions from galaxy_ng.app.api
Class SyncListViewSet changed:
New method get_permissions
Module tags.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
Module user.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported drf_permissions from rest_framework
New imported permissions from galaxy_ng.app.api
Class CurrentUserViewSet changed:
New method get_permissions
Class UserViewSet changed:
New method get_permissions
Package galaxy_ng/app/migrations changed:
Removed module 0004_rbac.py
Package galaxy_ng/app/api/v3/viewsets changed:
Module collection.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported GALAXY_PERMISSION_CLASSES from galaxy_ng.app.api.base
New imported permissions from new galaxy_ng.app.api
Class CollectionUploadViewSet changed:
Removed method _get_data
Method _dispatch_import_collection_task changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
Method create changed implementation:
Code semantics changed
Newly uses imported CollectionUploadSerializer
Module namespace.py changed:
Removed import of NamespaceAccessPolicy from removed galaxy_ng.app.access_control.access_policy
New imported permissions from galaxy_ng.app.api
Class NamespaceViewSet changed:
Removed method get_serializer_class
New method get_permissions
Module task.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported GALAXY_PERMISSION_CLASSES from galaxy_ng.app.api.base
Package galaxy_ng/tests/unit/api changed:
Module base.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
Removed import of assign_perm from removed guardian.shortcuts
New imported auth from new galaxy_ng.app.auth
Class BaseTestCase changed:
Removed method _create_partner_engineer_group
Method _create_namespace changed implementation:
Code semantics changed
Method setUp changed implementation:
Code semantics changed
No longer uses imported access_policy
Newly uses imported auth
Module test_api_ui_my_synclists.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiMySyncListViewSet changed:
Method _create_synclist changed implementation:
Added arg users
Code semantics changed
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_my_synclist_create changed implementation:
Code semantics changed
Method test_my_synclist_delete changed implementation:
Code semantics changed
Method test_my_synclist_list changed implementation:
Code semantics changed
Method test_my_synclist_update changed implementation:
Code semantics changed
Module test_api_ui_synclists.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiSynclistViewSet changed:
Method _create_synclist changed implementation:
Added arg users
Code semantics changed
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_synclist_create_as_pe_group changed implementation:
Code semantics changed
Method test_synclist_create_as_user changed implementation:
Code semantics changed
Method test_synclist_update_as_non_pe_group_user changed implementation:
Code semantics changed
Method test_synclist_update_as_pe_group_user changed implementation:
Code semantics changed
Module test_api_ui_user_viewsets.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiNamespaceViewSet changed:
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_user_get changed implementation:
Code semantics changed
Module test_api_v3_namespace_viewsets.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestV3NamespaceViewSet changed:
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_delete_namespace_no_error_if_no_repo_exist changed implementation:
Code semantics changed
Method test_namespace_api_creates_deletes_inbound_repo changed implementation:
Code semantics changed
Package galaxy_ng/app/api/ui/serializers changed:
Module __init__.py changed:
New imported NamespaceSerializer, NamespaceSummarySerializer, NamespaceUpdateSerializer from new namespace
Module synclist.py changed:
Removed import of GroupPermissionField from removed galaxy_ng.app.access_control.fields
New imported auth_models from new galaxy_ng.app.models
Class SyncListSerializer changed:
Method create changed implementation:
Code semantics changed
Method update changed implementation:
Code semantics changed
New method _sanitize_groups
New method to_internal_value
Module user.py changed:
Removed import of ValidationError from removed rest_framework.exceptions
New imported permissions from new galaxy_ng.app.api
Class CurrentUserSerializer changed:
Removed method get_model_permissions
Method get_is_partner_engineer changed implementation:
Code semantics changed
Newly uses imported permissions
Class UserSerializer changed:
Method to_internal_value changed implementation:
Code semantics changed
No longer uses imported ValidationError, auth_models
Newly uses imported serializers
New module namespace.py
Package galaxy_ng/app/api/v3/serializers changed:
Module namespace.py changed:
Removed import of GroupPermissionField from removed galaxy_ng.app.access_control.fields
New imported auth_models from new galaxy_ng.app.models
New imported GroupSummarySerializer from new galaxy_ng.app.api.v3.serializers.group
Class NamespaceSerializer changed:
Method create changed implementation:
Code semantics changed
Newly uses imported auth_models
Method update changed implementation:
Code semantics changed
Newly uses imported auth_models
New method to_internal_value
Removed modules galaxy_ng/app/access_control/__init__.py, galaxy_ng/app/access_control/access_policy.py, galaxy_ng/app/access_control/fields.py, galaxy_ng/app/access_control/mixins.py, galaxy_ng/app/access_control/statements/__init__.py, galaxy_ng/app/access_control/statements/insights.py, galaxy_ng/app/access_control/statements/standalone.py, galaxy_ng/app/migrations/0004_rbac.py
Module galaxy_ng/app/api/ui/serializers/__init__.py changed:
New imported NamespaceSerializer, NamespaceSummarySerializer, NamespaceUpdateSerializer from new namespace
Module galaxy_ng/app/api/ui/serializers/synclist.py changed:
Removed import of GroupPermissionField from removed galaxy_ng.app.access_control.fields
New imported auth_models from new galaxy_ng.app.models
Class SyncListSerializer changed:
Method create changed implementation:
Code semantics changed
Method update changed implementation:
Code semantics changed
New method _sanitize_groups
New method to_internal_value
Module galaxy_ng/app/api/ui/serializers/user.py changed:
Removed import of ValidationError from removed rest_framework.exceptions
New imported permissions from new galaxy_ng.app.api
Class CurrentUserSerializer changed:
Removed method get_model_permissions
Method get_is_partner_engineer changed implementation:
Code semantics changed
Newly uses imported permissions
Class UserSerializer changed:
Method to_internal_value changed implementation:
Code semantics changed
No longer uses imported ValidationError, auth_models
Newly uses imported serializers
Module galaxy_ng/app/api/ui/views/auth.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported RestrictOnCloudDeployments from new galaxy_ng.app.api.permissions
Module galaxy_ng/app/api/ui/viewsets/collection.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported permissions from galaxy_ng.app.api
Class CollectionImportViewSet changed:
Removed method get_permissions
Module galaxy_ng/app/api/ui/viewsets/my_namespace.py changed:
Removed import of get_objects_for_user from removed guardian.shortcuts
New imported permissions from new galaxy_ng.app.api
Class MyNamespaceViewSet changed:
Method get_queryset changed implementation:
Code semantics changed
No longer uses imported get_objects_for_user
Newly uses imported permissions
Module galaxy_ng/app/api/ui/viewsets/my_synclist.py changed:
New imported package logging
Removed import of get_objects_for_user from removed guardian.shortcuts
Removed import of access_policy from removed galaxy_ng.app.access_control
Removed import of SyncListViewSet from removed synclist
New imported api_base, permissions from new galaxy_ng.app.api
New imported serializers from new galaxy_ng.app.api.ui
Class MySyncListViewSet changed:
Method get_queryset changed implementation:
Code semantics changed
No longer uses imported get_objects_for_user
Newly uses imported permissions
New method get_permissions
Module galaxy_ng/app/api/ui/viewsets/namespace.py changed:
New imported serializers from new galaxy_ng.app.api.ui
Class NamespaceViewSet changed:
New method get_serializer_class
Module galaxy_ng/app/api/ui/viewsets/synclist.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported permissions from galaxy_ng.app.api
Class SyncListViewSet changed:
New method get_permissions
Module galaxy_ng/app/api/ui/viewsets/tags.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
Module galaxy_ng/app/api/ui/viewsets/user.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported drf_permissions from rest_framework
New imported permissions from galaxy_ng.app.api
Class CurrentUserViewSet changed:
New method get_permissions
Class UserViewSet changed:
New method get_permissions
Module galaxy_ng/app/api/v3/serializers/namespace.py changed:
Removed import of GroupPermissionField from removed galaxy_ng.app.access_control.fields
New imported auth_models from new galaxy_ng.app.models
New imported GroupSummarySerializer from new galaxy_ng.app.api.v3.serializers.group
Class NamespaceSerializer changed:
Method create changed implementation:
Code semantics changed
Newly uses imported auth_models
Method update changed implementation:
Code semantics changed
Newly uses imported auth_models
New method to_internal_value
Module galaxy_ng/app/api/v3/views/auth.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported IsAuthenticated from new rest_framework.permissions
New imported RestrictOnCloudDeployments from new galaxy_ng.app.api.permissions
Module galaxy_ng/app/api/v3/viewsets/collection.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported GALAXY_PERMISSION_CLASSES from galaxy_ng.app.api.base
New imported permissions from new galaxy_ng.app.api
Class CollectionUploadViewSet changed:
Removed method _get_data
Method _dispatch_import_collection_task changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
Method create changed implementation:
Code semantics changed
Newly uses imported CollectionUploadSerializer
Module galaxy_ng/app/api/v3/viewsets/namespace.py changed:
Removed import of NamespaceAccessPolicy from removed galaxy_ng.app.access_control.access_policy
New imported permissions from galaxy_ng.app.api
Class NamespaceViewSet changed:
Removed method get_serializer_class
New method get_permissions
Module galaxy_ng/app/api/v3/viewsets/task.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
New imported GALAXY_PERMISSION_CLASSES from galaxy_ng.app.api.base
Module galaxy_ng/app/auth/auth.py changed:
New imported settings from new django.conf
New imported BasePermission from new rest_framework.permissions
New class RHEntitlementRequired with 1 public method
Module galaxy_ng/app/models/collectionimport.py changed:
Removed import of LifecycleModel from removed django_lifecycle
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Module galaxy_ng/app/models/namespace.py changed:
Removed import of LifecycleModel from removed django_lifecycle
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Removed import of mixins from removed galaxy_ng.app.access_control
Module galaxy_ng/app/models/synclist.py changed:
Removed import of AutoDeleteObjPermsMixin from removed pulpcore.plugin.models
Removed import of LifecycleModel from removed django_lifecycle
Removed import of GroupModelPermissionsMixin from removed galaxy_ng.app.access_control.mixins
Module galaxy_ng/app/tasks/publishing.py changed:
Removed import of ContentArtifact from pulpcore.plugin.models
New imported ContentType from new django.contrib.contenttypes.models
New imported Task from pulpcore.plugin.models
New imported AnsibleDistribution, CollectionVersion from pulp_ansible.app.models
Function import_and_auto_approve changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
No longer uses imported ContentArtifact
Newly uses imported AnsibleDistribution, AnsibleRepository, add_content_to_repository, enqueue_with_reservation, remove_content_from_repository
Function import_and_move_to_staging changed implementation:
Removed arg artifact_pk
Added arg temp_file_pk
Code semantics changed
No longer uses imported ContentArtifact
Newly uses imported AnsibleDistribution
New function get_created_collection_versions
Module galaxy_ng/tests/unit/api/base.py changed:
Removed import of access_policy from removed galaxy_ng.app.access_control
Removed import of assign_perm from removed guardian.shortcuts
New imported auth from new galaxy_ng.app.auth
Class BaseTestCase changed:
Removed method _create_partner_engineer_group
Method _create_namespace changed implementation:
Code semantics changed
Method setUp changed implementation:
Code semantics changed
No longer uses imported access_policy
Newly uses imported auth
Module galaxy_ng/tests/unit/api/test_api_ui_my_synclists.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiMySyncListViewSet changed:
Method _create_synclist changed implementation:
Added arg users
Code semantics changed
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_my_synclist_create changed implementation:
Code semantics changed
Method test_my_synclist_delete changed implementation:
Code semantics changed
Method test_my_synclist_list changed implementation:
Code semantics changed
Method test_my_synclist_update changed implementation:
Code semantics changed
Module galaxy_ng/tests/unit/api/test_api_ui_synclists.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiSynclistViewSet changed:
Method _create_synclist changed implementation:
Added arg users
Code semantics changed
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_synclist_create_as_pe_group changed implementation:
Code semantics changed
Method test_synclist_create_as_user changed implementation:
Code semantics changed
Method test_synclist_update_as_non_pe_group_user changed implementation:
Code semantics changed
Method test_synclist_update_as_pe_group_user changed implementation:
Code semantics changed
Module galaxy_ng/tests/unit/api/test_api_ui_user_viewsets.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestUiNamespaceViewSet changed:
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_user_get changed implementation:
Code semantics changed
Module galaxy_ng/tests/unit/api/test_api_v3_namespace_viewsets.py changed:
New imported permissions from new galaxy_ng.app.api
Class TestV3NamespaceViewSet changed:
Method setUp changed implementation:
Code semantics changed
Newly uses imported permissions
Method test_delete_namespace_no_error_if_no_repo_exist changed implementation:
Code semantics changed
Method test_namespace_api_creates_deletes_inbound_repo changed implementation:
Code semantics changed
Module galaxy_ng/tests/unit/app/test_tasks.py changed:
New imported settings from new django.conf
New imported override_settings from django.test
New imported PulpTemporaryFile from pulpcore.plugin.models
New imported AnsibleDistribution from pulp_ansible.app.models
Class TestTaskPublish changed:
New attribute pulp_temp_file
Method setUp changed implementation:
Code semantics changed
Newly uses imported PulpTemporaryFile
Method test_import_and_auto_approve changed implementation:
Removed arg mocked_import_collection
Added arg mocked_enqueue
Added arg mocked_import
Added arg mocked_get_created
Code semantics changed
Newly uses imported AnsibleDistribution, AnsibleRepository
Method test_import_and_move_to_staging changed implementation:
Added arg mocked_get_created
Code semantics changed
Newly uses imported AnsibleDistribution
New modules galaxy_ng/app/api/permissions.py, galaxy_ng/app/api/ui/serializers/namespace.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment