Skip to content

Introduce the Directory entity with a link operation #4924

@imsdu

Description

@imsdu

Motivation
In some cases, an individual physical file does not make sense by itself but only because it is part of a set of files organized in folders and subfolders which depends on the consumer.
However, we still want to register this directory to Delta and the knowledge graph.
This first ticket is about creating a file set in Nexus when the physical folder is already available in S3.
The use case for that is registering legacy files in the legacy bucket.

Acceptance criteria

  1. Directories are only available for S3 storages
  2. The user can provide an id or have it generated (like the files operations)
  3. The user provides an object key
  4. The user can optionally provide metadata (name, description, keyword)
  5. The provided object key must point to an existing object and must be a folder
  6. The directory is indexed in Blazegraph and Elasticsearch
  7. The directory must have an origin field as it will be possible to register it in other ways later
  8. Errors are returned if the user does not have the permission, if a resource already exists with that id, ...

Not in scope

  1. No analysis is done on the content of the folder as it may contain a lot of objects
  2. Update / tagging / deprecation operations

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions