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

api.main: handle new Node path format in node submission #503

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Mar 19, 2024

  1. api.main: handle new Node path format in node submission

    When using a /-separated path string for Node paths instead of a list of
    strings, we can encode whether a Node is a leaf node or an intermediate
    node in a tree by ending the path string with a trailing slash
    character ('/') for intermediate nodes.
    
    Implement the appropriate checks and logic in the node submission
    endpoints. For single nodes, adapt the path string of the parent
    node. For node trees, normalize the paths for the whole tree, adding
    trailing slashes when needed for all intermediate nodes.
    
    Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
    hardboprobot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    ba96518 View commit details
    Browse the repository at this point in the history
  2. tests/unit_tests: sync unit tests after model changes (Node path)

    The Node path is now encoded using a regular /-separated path string
    instead of a list of strings.
    
    Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
    hardboprobot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    225c199 View commit details
    Browse the repository at this point in the history
  3. tests/e2e_tests: sync e2e tests to model changes (Node path)

    The Node path is now encoded using a regular /-separated path string
    instead of a list of strings.
    
    Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
    hardboprobot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    a3b1c65 View commit details
    Browse the repository at this point in the history
  4. migrations: add migration script for new Node path format

    Required after:
        api.main: handle new Node path format in node submission
    
    Signed-off-by: Ricardo Cañuelo <ricardo.canuelo@collabora.com>
    hardboprobot committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    998819e View commit details
    Browse the repository at this point in the history