-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add file sync task #225
Add file sync task #225
Conversation
3ecb5d6
to
5dce718
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did a high level code review. Didn't try running the code locally.
My main concern is that I think we should rely on the native FlySystem implementation we have in the Asset Store rather than rely on native PHP function. I would rather that part be fixed before spending more time testing it locally.
Also, a point to note is that some of the work I'm doing for the SS44 permalink job will probably help some of the things you are doing. I'm created generic classes that will be splitting up the URLs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did a deeper code review this time. There's still a lot of native file system code used, maybe confirm that there's no easy equivalent to flysystem for those.
The unit test looks very light. It's not testing with legacy_flenames
and keep_archive_assets
flags. I'll have a go at running it for real this afternoon.
This task is intended to fix up the filesystem/db in version 4. It will remove invalid db entries and create db entries for assets that are currently missing db entries.
a6bd68a
to
9fde7c9
Compare
I've added a couple of more tests for this now. Looks like the namespaces for permalinks needs to be fixed up though:
|
I'm somewhat concerned about reintroducing this feature. We dropped it in the SS4 filesystem implementation because it was difficult to make robust and so caused follow on issues.
So I'd ask the question: what problem are we trying to solve by re-adding this feature, and is this the best solution to the problem? |
If the goal is to bulk-add new assets to a locally-running project, something like this might be safer, simpler, and more useful:
Which would add the files to the filesystem underneath a root folder ./Uploads/StuffFromTheCustomer |
Commented on the card: #175 (comment) |
This pull request hasn't had any activity for a while. Are you going to be doing further work on it, or would you prefer to close it now? |
I think we decided to drop this approach in the end. I don't think there's anything that can be salvage from this PR. |
This task is intended to fix up the filesystem/db in version 4.
It will remove invalid db entries and create db entries for assets that are currently missing db entries.