Skip to content

Improve documentation for ParallelQuerySet #266

Open

Description

@drewaogle

right now some of the abstract classes like BlobLatest have examples which are for the concrete classes. This should be improved. Right now the switch to docasaurus is in progress, this should be done after so a good feeling for a proper user experience can be verified.

Activity

  1. self-assigned this
    on Jul 31, 2023
  2. ad-claw000 commented on Aug 12, 2026

    @ad-claw000
    Contributor

    The issue highlights two documentation improvements: first, providing a clear example for ParallelQuerySet as per the title, and second, correcting the Example usage blocks in abstract/base classes (such as BlobNewestDataCSV, EntityUpdateDataCSV, and EntityDeleteDataCSV), which currently incorrectly demonstrate usage of concrete subclasses (like ImageForceNewestDataCSV or ImageDeleteDataCSV).

    Here are three possible approaches to resolve this:

    Approach 1: Replace concrete classes with the abstract classes in examples + add ParallelQuerySet example

    • Modify BlobNewestDataCSV.py (line 82), EntityUpdateDataCSV.py (line 61), and EntityDataCSV.py (line 102) to instantiate their respective abstract classes directly using generic or mock parameters.
    • Add a comprehensive Example usage block to ParallelQuerySet.py (line 351).
    • Pros: Directly addresses the issue description. Keeps documentation strictly focused on the class being documented.
    • Cons: Abstract classes are often meant to be subclassed, so direct instantiation might feel slightly less practical than a real-world concrete example.

    Approach 2: Keep concrete examples but add explicit clarification + add ParallelQuerySet example

    • Retain the existing concrete subclasses (e.g., ImageForceNewestDataCSV) in the code blocks, but add a docstring note explicitly explaining that this is a concrete implementation of the current abstract class.
    • Add the example to ParallelQuerySet.py.
    • Pros: Provides users with a practical, real-world scenario they are more likely to encounter.
    • Cons: Doesn't technically "fix" the examples to use the class the user is reading about, which goes against the explicit request in the issue.

    Approach 3: Demonstrate custom subclassing in the examples + add ParallelQuerySet example

    • Rewrite the examples to show a small 2-line snippet creating a custom subclass (e.g., class MyBlobUpdater(BlobNewestDataCSV):), followed by instantiating it.
    • Add the example to ParallelQuerySet.py.
    • Pros: Shows the architecturally "correct" way to use these base classes.
    • Cons: Makes the example blocks more verbose and potentially distracting.

    Recommendation:
    I recommend Approach 1. We should replace the concrete class names with the actual base class names being documented (e.g. changing ImageForceNewestDataCSV to BlobNewestDataCSV in BlobNewestDataCSV.py). We will also add a clear example block to ParallelQuerySet.py showing how to initialize and use it with a CSVParser or query generator. This directly satisfies both the title and the body of the issue with minimal complexity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions