Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "AIPs by file format" and "AIPs by PUID" reports #76

Merged
merged 1 commit into from
Nov 30, 2020

Commits on Nov 30, 2020

  1. Add AIPs by file format and version reports

    This commit adds reports that take a file format name or PUID as input
    (to specify a file format or file format version, respectively) and
    return information about which AIPs contain files in that format or
    format version, as well as their count and size per AIP.
    
    Additionally, this commit reworks the _get_storage_service logic in the
    Data and Reporter blueprints to ensure that there are not discrepencies
    between the Storage Service name and data returned by Data endpoints.
    In Reporter, this commit adds fallback logic similar to what was
    previously found in Data. If an invalid Storage Service ID is passed to
    the reports view via request parameters, the new helper function will
    return one of (in order of preference):
    - The requested Storage Service
    - The first default Storage Service
    - The first Storage Service
    - None
    
    This ensures that a valid Storage Service instance is passed along to
    the template if one is available. Since it's clearly indicated in the
    template UI which Storage Service is currently selected, this component
    does not share the issues identified with the previous approach within
    the Data blueprint.
    
    Finally, this commit standardizes request parameters in the Reporter
    blueprint by adding a shared request_params dictionary and revising
    some of the parameters used in the report template's JavaScript to
    remove discrepencies.
    tw4l committed Nov 30, 2020
    Configuration menu
    Copy the full SHA
    91a8237 View commit details
    Browse the repository at this point in the history