Skip to content

Add file based ResourceStore - #52

Merged
jvherweg merged 13 commits into
CommunitySolidServer:masterfrom
smessie:file-based-ResourceStore
Aug 18, 2020
Merged

jvherweg merged 13 commits into
CommunitySolidServer:masterfrom
smessie:file-based-ResourceStore

Conversation

@smessie

@smessie smessie commented Aug 11, 2020

Copy link
Copy Markdown
Member

This implements a FileResourceStore, which resolves #46.

Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/util/errors/ConflictHttpError.ts Resolved

@jvherweg jvherweg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Some of the comments might overlap with those from Ruben due to simultaneous writing. Several comments also apply to more places in the code then just where they were mentioned (such as the promises for example). I also didn't fully check the tests yet.

Comment thread package.json Resolved
Comment thread src/util/LinkTypes.ts Resolved
Comment thread src/util/errors/InternalServerError.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
@RubenVerborgh RubenVerborgh mentioned this pull request Aug 12, 2020
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/util/InteractionController.ts Resolved
Comment thread src/util/InteractionController.ts Resolved
@smessie
smessie marked this pull request as ready for review August 14, 2020 11:12
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
@RubenVerborgh RubenVerborgh self-assigned this Aug 14, 2020

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good work on this!

My main comment is that I would partition the long functions into smaller functions. That way, the structure of the code really becomes visible, and readers can separate the high-level control flow from the low-level implementations of the substeps.

Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Good stuff; only nits, no blockers.

Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/storage/FileResourceStore.ts Resolved
Comment thread src/util/InteractionController.ts Resolved
Comment thread src/util/InteractionController.ts Resolved
Comment thread src/util/InteractionController.ts Resolved
Comment thread src/util/MetadataController.ts Resolved
@smessie
smessie requested a review from RubenVerborgh August 17, 2020 13:16

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

All good, thanks!

@jvherweg jvherweg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Minor last nitpick, after that it should be ready for merging

Comment thread src/storage/FileResourceStore.ts Resolved
@smessie
smessie requested a review from jvherweg August 18, 2020 11:51
Comment thread src/storage/FileResourceStore.ts Resolved
@smessie
smessie requested a review from jvherweg August 18, 2020 12:02

@jvherweg jvherweg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Everything looks fine now ^^

@jvherweg

Copy link
Copy Markdown
Member

...except that apparently there are some conflicts with the master branch. @smessie can you look into rebasing this branch onto the new master first?

@jvherweg
jvherweg merged commit 381dae4 into CommunitySolidServer:master Aug 18, 2020
@smessie
smessie deleted the file-based-ResourceStore branch August 19, 2020 06:00
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.

Implement a file-based ResourceStore

3 participants