Flesh out the documentation for ReviewRequestManager query functions.
Review Request #12340 — Created June 8, 2022 and submitted
The query functions in
ReviewRequestManager
are very old, and most
either lacked documentation or didn't meet current documentation
conventions.As some work is being done in these functions, and given the importance
of these functions and their behavior, it's time to ensure they meet
documentation standards.This updates the docstrings for all the query functions, making
behaviors and usage explicit.No logic has changed.
Built the docs and checked through them. Didn't see anything
obvious or any build errors/warnings related to this file.
Summary | ID |
---|---|
6cceba85a82c9c7c993c047240239e398f0a55f1 |
Description | From | Last Updated |
---|---|---|
Could shorten this to just "The User instance or username." |
maubin | |
Change to "The User instance or username." |
maubin | |
Can change this to "The query object." and move the information about the query into the description |
maubin | |
Should we mention that if a local site is given, it is assumed that the user (if given) has access … |
maubin | |
Add a Raises: section for the django.contrib.auth.models.User.DoesNotExist error that could happen in in self.get_to_or_from_user_query |
maubin |
-
-
-
-
Can change this to "The query object." and move the information about the query into the description
-
Should we mention that if a local site is given, it is assumed that the user (if given) has access to that local site (i.e. we don't check whether a user has access to that local site). If so we could include that here under the arg description (and every where else where a
local_site
arg is used) or maybe under the description for the method where you talk about filtering based on access -
Add a
Raises:
section for thedjango.contrib.auth.models.User.DoesNotExist
error that could happen in inself.get_to_or_from_user_query
- Change Summary:
-
- Clarified each user-related argument.
- Simplified some redundant information in
Returns
. - Added a missing
Raises
. - Updated
local_site
arguments to mention that the caller should first validate user access.
- Commits:
-
Summary ID dfdfe536b669660289e3ad297ca7e2851caacce0 6cceba85a82c9c7c993c047240239e398f0a55f1 - Diff:
-
Revision 2 (+614 -56)