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

Create restapi endpoint for counting full_types #4277

Merged
merged 2 commits into from
Nov 13, 2020

Commits on Nov 13, 2020

  1. REST API: Modify assumptions for process_type

    The `process_type` attribute has changed over the years; currently it
    must have some descriptor for processes and be None for data types.
    Apparently this has not only been the case, and thus old databases may
    have both data and process nodes with either empty strings ('') and/or
    None entries in their `process_type` attributes.
    
    Additionally, there were some problems with how the unregistered entry
    points were considered that made it impossible to query for them.
    
    In order to consider all of this when filtering and doing statistics,
    it has been decided to:
    
    1) Group all instances of a given node_type that have either '' or None
    as their process_type in the same `full_type` (`node_type|` ) and hence
    always query for both when the `process_type` is missing.
    
    2) Remove the `aiida.descriptor:` and the `no-entry-point` from the
    `process_type` part of unregistered processes. This was interfeering
    when the `full_type` was given to return the filtering options to query
    for these processes.
    
    Tests were adapted to test this new compatibility aspects.
    ramirezfranciscof committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    b21b33f View commit details
    Browse the repository at this point in the history
  2. REST API: Add full_types_count as new entry point

    This feature returns a namespace tree of the available node types in the
    database (data node_types + process process_types) with the addition of
    a count at each leaf / branch. It also has the option of doing so for a
    single user, if the pk is provided as an option.
    ramirezfranciscof committed Nov 13, 2020
    Configuration menu
    Copy the full SHA
    b29e955 View commit details
    Browse the repository at this point in the history