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
Mark the extension as deprecated #15
Conversation
See #14 for details
The question is, if SBL or AF is the correct replacement. It makes sense to link to the latter because it includes the interfaces – additionally, the original idea was to deprecate SBL in favour of AF as well because AF is just SBL plus the interface hooks. I'll leave this one to @brendo. |
I think a note in the readme, pointing to "Association UI: Selector" as an alternative for the autocomplete functionality would be helpful. And maybe setting the maximum compatibility to 2.3.2. |
Ah - Nils was faster than me :)
That's an important point and the next thing I wanted to "complain" about ;) But that doesn't belong here... (though it's directly related to why Reference Field should be deprecated)... gonna have to write about that elsewhere (as soon as I find the time). |
The pending issue is here: symphonists/association_field#5 |
A decision on this topic would be more than welcome. I can not really help with this, since I don't know how much additional code has been introduced by AF, or if adding it to the "core extensions" (and deprecating SBL) is actually desired by @brendo. Anyway, in this case it must be guaranteed that replacing the field is painless under all circumstances. |
Trudat. |
AF is really just a fork of SBL with two additional field settings that are only available if you install one of the interfaces. If you don't, the settings are hidden and AF looks and behaves exactly like SBL. It's the same code – AF like SBL doesn't include any UI by itself (okay, the default select box, of course). These are all changes made on top of SBL: https://github.com/symphonists/association_field/compare/b2c9ed72a7b044c146171be2e40041752181e022...symphonists:master?w=1 This is how you update:
Currently, AF is behind SBL regarding bug fixes, because symphonists/association_field#5 is still open and fixes to SBL have not been merged back to AF yet. PS: Updated the link to the code comparision |
Well, at least Brendan agreed on that in a chat before we started working on AF. Association is the name used by Symphony internally and the new extension name was chosen to make clear that the field can be used to create any kind of relationship – the interfaces are a just a visual and interactive bonus which is why they reside in separate extensions. As Brendan takes care of nearly everything around Symphony, I leave the decision to him. But having both extensions around only complicated things: we should merge both and deprecate one of them. I'd prefer keeping AF because of the naming, but in the end it actually doesn't matter because the codebase is the same. |
@nilshoerrmann So referencelink should really be deprecated then... And we should deprecate SBL soon too... |
What about the possibility of storing the sort-order of associated entries? Isn't AF capable of that "by core (=additional field in the DB)" whereas SBL isn't? Or is storing the sort-oder just "injected" by the association UI?
...which is one of the reasons why I still think treating the "Selectbox UI" the way I proposed here would help understanding and be the cleaner solution in the long run. |
Yeah order is why entry relationship field does not extends AF... |
Both fields, SBL and AF, are capable of storing sorted associations out of the box: the order in which associations are posted to the server is decisive. The extensions just lack a default interface for sorting – this is what the association UI is for. |
I think this is a problem: what happens if I have 50, 100 selected values ? SBL currently deletes 50 rows and re-insert 50 rows... not that performant. |
Well, that's a different topic. It's just the way it currently works in SBL. |
Yeah I know 😄 Just wanted to share my thoughts on it |
That's good to know :) So if I get this right I could manually sort an association field with one UI (that has sorting functionality), then switch to another UI and my manual sort-order isn't affected from that change? |
Correct. |
Perfect :) Now back to work... |
@nilshoerrmann Your how to update selectbox_link fails for reference_link. I sugest a better upgrade guide for reference link to Association Field could be:
XXX is the field_ID of the old reference_link ...but we should provide a script to upgrade that - some pseudo code for that: |
btw... there is a lot redundancy between sym_sections_association and sym_fields_association. |
I guess you are looking at the wrong table ;) Have a look at the |
Maybe - i am a newbie in your code :) - but i am quite sure, cause I updated it today and it works :) i'll check tomorrow if i must be sorry... again. gn8 |
So what's the end result on this ? We deprecate it ? WIth 2.6.0 coming out soon, it think it's the time. |
Mark the extension as deprecated
See #14 for details
@brendo Do I need to create a new version that explains why and to point to Select Box Link ?
cc @nilshoerrmann @twiro @kmeinke