Skip to content

File system adapters#204

Merged
DanielElisenberg merged 6 commits intomainfrom
file_system_adapters
Oct 21, 2025
Merged

File system adapters#204
DanielElisenberg merged 6 commits intomainfrom
file_system_adapters

Conversation

@DanielElisenberg
Copy link
Collaborator

File System Adapters

Splitting the local storage module into three separate modules for the different file locations. Datastore files, working files and input files. These can be access through a FileSystemAdapter that is specific to a datastore. Called this module fs/ for filesystem to match how we usually do db/ for database, and made a local storage implementation of the File System protocol.
I think the splitting of the file locations allowed for way better naming which is a nice bonus.

Planning to make protocols for each of the directories to improve testing as well, and to use the adapters in a more sensible way, but this branch is getting quite heavy already so I opted to change as little as possible to introduce the adapters.

Next steps for these adapters:

  • Start using the adapters more naturally (generate an adapter for the given job and pass it down to the worker/manager)
  • Improve testing

But these tasks are represented by an issue under the same parent issue as this.

@DanielElisenberg DanielElisenberg requested a review from a team as a code owner October 20, 2025 13:36
@DanielElisenberg DanielElisenberg linked an issue Oct 20, 2025 that may be closed by this pull request
pawbu
pawbu previously approved these changes Oct 21, 2025
Copy link
Contributor

@pawbu pawbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great 👍

Co-authored-by: pawbu <pawbu@users.noreply.github.com>
@sonarqubecloud
Copy link

@DanielElisenberg DanielElisenberg merged commit e2b941f into main Oct 21, 2025
5 checks passed
@DanielElisenberg DanielElisenberg deleted the file_system_adapters branch October 21, 2025 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make Datastore Specific Adapters for File System

2 participants