-
Notifications
You must be signed in to change notification settings - Fork 15
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
Standardise module #78
Comments
Just a bit of extra context. DBLinkThe DBLink implementation was something I put in there because @chillu was concerned adding tables for each link type would clog the database. I for one never was a big fan of this. I think the fact that most people naturally went for the Link DataObject shows that most dev prefer this approach because it's closer to what they are used to. If we ditch DBLink there's a lot of extra simplication we can put in place. The following classes can be ditch altogether: Relationship to Any FieldWith the AnyField module, I took the LinkField logic and made it more generic so it could be used to manage any DataObject. I think there's a strong case to make that AnyField is better in every possible way than the current linkfield.
I've also added pretty comprehensive PHPUnit and Behat test to the AnyField using Links as a test model. I'm thinking, either:
MigrationGiven the little adoption of DBLink, I don't think there's much value in providing a migration task. There could be a better case to provide a migration task from other module to this one. Other concerns
|
I dunno about Anyfield given the context here is linkfield support. I don't doubt that the core idea of anyfield could be useful (as I understand it the core thing is that you can manage DataObject's in a modal rather than on a regular form, correct me if I'm wrong). It's just the context here is we're looking at bumping up the support given to the linkfield module which already has a pretty reasonable amount of real world usage. Seems that bringing in anyfield is increasing the scope to "better support managing dataobjects in a modal.". Wouldn't that sort of functionality should maybe be added directly in silverstripe/admin rather than a module called silverstripe/linkfield? |
Some of the things on this issue where implemented here #84 |
I'll put this card up for refinement, but it seems way too big to be done in one go. So we'll probably split it up. |
Reopening because I found some more things that aren't quite standardised that I somehow missed last time. |
Rough list of things we could do to this module to get it in line with other Silverstripe modules
Note will release an new major so can make API breaks:
Note there's a second look details arou
Task list
Architecture
Code quality
LinkField
andMultiLinkField
can be subclasses ofclient/src/LinkModal/FileLinkModal.js
)Maintenance
PRs
extra_requirements_i18n
config toLeftAndMain
silverstripe-admin#1678The text was updated successfully, but these errors were encountered: