Update HostingServiceAccountManager.accessible to support LocalSite.ALL.

Review Request #12338 — Created June 3, 2022 and submitted

chipx86
Review Board
release-5.0.x
reviewboard

This deprecates HostingServiceAccount.objects.accessible()'s
filter_local_site option, which was sort of an inverse of the
show_all_local_sites option that some other managers had.

With the introduction of LocalSite.ALL, we no longer need these
secondary flags. This change emits a deprecation warning if this flag is
set, and then converts to LocalSite.ALL if appropriate.

All unit tests pass.

Summary
Update HostingServiceAccountManager.accessible to support LocalSite.ALL.
Description From Last Updated

F401 'django.db.models.Q' imported but unused

reviewbotreviewbot
Checks run (1 failed, 1 succeeded)
flake8 failed.
JSHint passed.

flake8

chipx86
maubin
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.0.x (a2b2a43)
Loading...