Update HostingServiceAccountManager.accessible to support LocalSite.ALL.

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

Information

Review Board
release-5.0.x

Reviewers

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 ID
Update HostingServiceAccountManager.accessible to support LocalSite.ALL.
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.
8bf2d81897d08fa02f35db73a769719b04f3f53f
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:
Completed
Change Summary:
Pushed to release-5.0.x (a2b2a43)