-
Notifications
You must be signed in to change notification settings - Fork 40
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
Core fieldable file entity bundles #2632
Comments
Looks like it's better to solve this one first #213 (Move file entity info, managed file, and file usage functionality into File module). |
Please let's push this to 1.8.0 milestone. I'm going to dive deep into this and any help from experienced developers would be very welcome. I'm going to look on code from D7 File Entity module and adapt it to Backdrop. |
Hi @Al-Rozhkov, just wanted to check in and ask how is this issue going so far? I'm thinking through this and related issues a bit and I'm seeing this as two separate issues:
Making them field-able should be relatively straight forward (as OP suggests). So I'm interested in what you think about the core provided file entity bundles. D7 File entity module provides these 4 bundles:
Seems reasonable to me. Think we should we aim for the same? Have any other thoughts so far during your review of the D7 File entity module? |
Hi @daggerhart! I'm working on it. And I'm going to provide raw PR in next couple days. I agree that fieldable file entities could be a separate issue. Feel free to open it. Also I like D7 File entity approach. I think these 4 bundles is good defaults for Backdrop. But we can add description field for each bundle as @jenlampton suggests in #2070 (Move the file |
Awesome, please let me know if I can help! I'm going to be working on related issues a bit this weekend. |
Please be merciful. It was huge task for newbie. And it definetly needs more work. File types configuration mostly was borrowed from node types, everything else was taken from file_entity module. Please test sandbox and look at the PR. I would be happy to get feedback from experts and continue my work on this. |
Oh! First mistake. Alt and Title fields in image bundle wasn't created in the sandbox, but was on my local upgraded site. I will fix this. UPD: Fields in place now. Sandbox is ready for manual testing. |
@Al-Rozhkov awesome! I'll have to wait until next week to take a look, got a lot going on over the next few days. But thanks for tackling this, I'm looking forward to checking it out |
We are two weeks from code freeze for Backdrop 1.8. If anyone else could help with manual testing, I'd love to see this issue included in the next release :) |
I've had a look at the sandbox site, added a "License" field to the Audio file type on |
I think that's on file/FID |
I see, thanks @jenlampton! Have found it now, not on Update: (only) after having edited it, it was also displayed on |
@Al-Rozhkov Unfortunately I'm not experienced with the Drupal File Entity module. Can you mention particular aspects of the PR which need manual testing? |
With 1 day until code freeze, I don't think this one is going to make it into 1.8. Bumping milestone to 1.9. |
After getting this so close but not quite finishing it, we're going to give this one another 24 hours to get wrapped up for the 1.14.0 code freeze. |
Testing latest PR:
|
Don't fully understand how Files are supposed to work (see last point above) and don't want to read through entire issue, so will have to leave my testing there until someone can help me understand all this... |
Done some UI testing, only two issues to note
|
@docwilmot @BWPanda Hm, I fixed that late last night with the default file_display.json files on install. Maybe the sandbox needs a refresh...
@docwilmot yes, probably. :)
@BWPanda I do this all the time, I think that's bad advice. We should remove that text... where did you find it?
This is probably N/A since you can have as many file types per mime type as you want.
This is the problem we are hoping to fix before release, this whole tab should be moved into a a "setting" for the file row on the manage fields tab, but that turns out to be hard.
@bwpanda It's exactly the same as it was before. The only difference is that now you can come to the manage files page, edit them, and add additional field data. We may look into adding something like inline entity form so that we can get those additional fields to show up in other places too. But, that's a follow-up. :) |
I tested this out further and it's working really well now. The most recent changes fixed the issue with the default file displays not being set. So now images display as There's definitely a lot of room for improvement, the comments above all apply the File Entity module for Drupal 7 as well. But we need a starting point and this does a lot. And it has an upgrade path from D7. This is a great improvement to allow files to be uploaded directly and fieldable. Though we'll need a lot of follow-ups to get it integrated into all possible places. Here are a few more items that could be follow-ups:
I think this is ready to be committed as-is. |
By @Al-Rozhkov, @daggerhart, @docwilmot, @jenlampton, @olafgrabienski, @klonos, @quicksketch, @herbdool, and @BWPanda.
Merged backdrop/backdrop#2838 into 1.x for 1.14.0. Wooohoooo! Thank @Al-Rozhkov, @daggerhart, @docwilmot, @jenlampton, @olafgrabienski, @klonos, @herbdool, and @BWPanda! That was a huge effort and Backdrop is going to be substantially more awesome with this in. Now we have a basis for tons of the other work in the media management project board: https://github.com/backdrop/backdrop-issues/projects/6 |
Woohoo! I've added your comments to the list of things to do later in the top post, so they don't get lost. |
Were working on adding all of the file_entity module to Backdrop core, including fieldable files.
Before PR merge:
Before release (if possible):
Optional UX improvements:
At a later time
/file/%/manage
and/file/%/usage
, to allow easy navigation back to/admin/content/files
#3971 #Original Issue
We do have this task in File management meta issue #1448, but I didn't find separate issue for it.
Looks like we can make file entities fieldable with just one line of code:
$entity_info['file']['fieldable'] = TRUE;
So I merged "file types" and "fieldable file types" in one issue. Feel free to separate them if I'm wrong.
#Advocates: @docwilmot @jenlampton
PR: backdrop/backdrop#1924by @docwilmotPR: backdrop/backdrop#2238by @jenlamptonPR: backdrop/backdrop#2832by @docwilmotPR: backdrop/backdrop#2838 by @jenlampton
The text was updated successfully, but these errors were encountered: