Skip to content

refactor: redesign filers #179

Open
Open

Description

@uniqueg

Current object filer design, as inherited from TESK-core), is a bit messy. To make it easier to add support for different file protocols in the future, it would be nice to clean up the filer-related code and make it a bit more pluggable.

For example, we could have the following directory layout:

.
└── tesk
    └── services
        ├── abstract
        │   ├── filer.py
        │   └── __init__.py
        └── filers
            ├── ftp.py
            ├── http.py
            ├── __init__.py
            └── s3.py

with an abstract Filer class/interfact defined in tesk.services.abstract.filer that has some methods that individual file protocol plugins in tesk.services.filers then can inherit from and implement.

Activity

  1. uniqueg commented on May 21, 2024

    @uniqueg
    MemberAuthor

    @JaeAeich: It may be good for you to keep in mind/consider this design principle during your GSoC project. However, I think this particular issue is mostly beyond the scope of the project.

    @lvarin, @jemaltahir, @trispera: Is this something that you could perhaps look into? If so, please assign yourself :)

  2. jemaltahir commented on May 24, 2024

    @jemaltahir

    I can have a look into this. What @uniqueg suggested file structure is great in terms of separation of concern and modularity.

  3. self-assigned this
    on May 24, 2024
  4. JaeAeich commented on Jun 27, 2024

    @JaeAeich

    Whenever services and its tests are being refactor, please take in consideration that all those files have been ignored from linter (ruff), so change that in pyproject.toml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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