User tests: Successful: Unsuccessful:
This PR is proposed as a uncoupled alternative to the hard-coded-coupling PR #1840 as a better fix for http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tracker_item_id=31603 .
It works as is, so could be ready for merging in a 3.3.x, but of course it would be better to also add the 2 columns "observers" of #__extensions
and #__content_types
to all database types for complete usability of it within e.g. in a 3.x.0 (x=4 or 5 e.g.).
It has big advantages to hard couplings, that are detailed in all good books about software patterns.
(work done at "Get It Done" session at JAB14 and in the train on the way back home and shown to @mbabker and @Bakual same day)
Update: Also commented tracker and on corresponding commit that should be reverted for 3.3.1: 2248368#commitcomment-6609826
To be clear. This can't go into 3.3.x since it's a new feature.
For 3.4 the deadline for new features was two weeks ago, so currently it could go into 3.5 earliest.
From what I see this PR lacks the SQL files and probably only works because it has sort of a fallback worked into it at https://github.com/joomla/joomla-cms/pull/3753/files#diff-79e4a413a753146b39c7b946d94a7dfcR146. Basically doing the exact same hardcoded thing in cms.php we try to solve to begin with.
So any testing at the moment is useless.
I'm also not sure how much I like that the observers can be put into two different tables (#__extensions and #__content_types). Overall it looks a bit complicate for what it's trying to solve. I fear that in the end it's even harder to setup tags and content history than it already is.
I thought david said on skype yesterday the 3.4 deadline was tomorrow? (11th?)
But I have to agree I don't see what the need is the the #__extension
table to use the observers stuff. Why can't we just use it in #__content_types
?
And I kinda agree with Thomas that whilst this is 'architecturally' more correct it does appear to make it even harder for users. Let's be honest for a given extension there's gonna be tags stuff hardcoded into views etc. so it no longer is a proper observer even if the storing of tags into the relevant tables might be.
But I'll give some faith for now. Please can you fix up travis and include the SQL files so we can do some proper testing :P And I'd be interested to hear the explanation as to why we need to store the observer in two different tables
I thought david said on skype yesterday the 3.4 deadline was tomorrow? (11th?)
Tomorrow is final date to merge new features. May 28th was the final date to propose new features. 16th should be first beta. See http://developer.joomla.org/news/583-announcing-joomla-cms-3-4.html.
But I have to agree I don't see what the need is the the #__extension table to use the observers stuff. Why can't we just use it in #__content_types?
Actually, I think the #__extension
makes more sense than #__content_types
. The observers aren't tied to a content type. It happens to be fior tags and history, but the content type is really only a parameter passed to it. The observers could be used for other things as well which aren't tied to a content type.
On the other hand, I think they don't even necessary need to be tied to an extension. And there are multiple observers for extensions and content types.
I tend to think if we want to have this database based, the simplest thing would be to have an own table for it and work from there.
Labels |
Added:
?
Removed: ? |
Labels |
Added:
?
|
Status | New | ⇒ | Pending |
Labels |
Removed:
?
|
@beat it looks like you abandoned this after submitting it as there was no reply to the request to fix travis and add the sql. I am setting it to information required and it will be automatically closed if there is no reponse
Status | Pending | ⇒ | Information Required |
Closed - it can always be reopened when updated
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2015-03-14 10:23:12 |
Closed_By | ⇒ | brianteeman |
Closed_Date | 2015-03-14 10:23:12 | ⇒ | 2015-03-14 10:23:13 |
This seems to kill travis :P can you investigate please