Skip to content

Index rework overview #210

@consideRatio

Description

@consideRatio
Done / Preliminary done tasks
  1. DONE
    Add client support for publisher field

  2. PRELIMINARY DONE
    Define index structure

    The index structure has been defined like this, and it is different from the environment structure.

     # index_root
     # ├──index.json:
     # │    {
     # │      "projects": [
     # │        {
     # │          i = "pkg:sysand/publisher1/name1",
     # │          v = ["0.0.1", "0.0.2"]
     # │        }
     # │      ]
     # │    }
     # └──publisher1
     #     └──name1
     #         ├──0.0.1
     #         ├──0.0.2
     #         └──meta.json:
     #             {
     #                 "iri": "pkg:sysand/publisher1/name1",
     #                 "versions": ["0.0.1", "0.0.2"]
     #             }
    
  3. PRELIMINARY DONE
    Define index client->server upload/publish API
    A preliminary strategy is implemented in the sysand-index, sending a POST request with multipart form-data, including a PURL and the .kpar data blob (with bundled README).

  4. DONE
    Add README.md bundling to build command

  1. IN PROGRESS, Erik assigned
    Add client publish command

  2. UNBLOCKED, pending assignment
    Change client's index reading behavior (breaking)
    With the local env structure diverging from the index structure, we need to change how the client reads from an index with a clear breaking change.

  3. UNBLOCKED, pending assignment
    Add index management command
    With the local env structure diverging from the index structure, we need to change how users are to manage a local index. Previously they for example did sysand env install urn:kpar:my_project --path MyProject.kpar, so what should they do now? Commands like sysand index init and sysand index add etc could be relevant to address this.

  4. UNBLOCKED, pending assignment
    Add standard library to the new index

    • An organization should be created at the new index.
    • Standard libraries with publisher field set should be uploaded
  5. UNBLOCKED, pending assignment
    Support publisher/name shorthand for pkg:sysand/publisher/name in sysand add?
    Could improve the UX of sysand, but its a fancy thing beyond the core need. sysand and the index should align, currently the index suggests using the shorthand.

Metadata

Metadata

Assignees

No one assigned

    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