Success

User tests: Successful: Unsuccessful:

avatar elinw
elinw
7 Sep 2013
avatar elinw elinw - open - 7 Sep 2013
avatar sovainfo
sovainfo - comment - 8 Sep 2013

Consider this bad code for the following reasons

  • testing existence twice, once with a cleaned path, once without
  • mixing JFile::exists with file_exists
  • cleaning should be limited to $base and also done for file_exists

this should be using file_exists only, no need to include JFile
it should use an if else construction to avoid test the 'same' thing twice
Assuming at the start there are more in views than in view the first test should be views later version can swap
or to promote the new model start with view

avatar elinw
elinw - comment - 8 Sep 2013

Well I thought about the which first option and I know why you say that,
but the issue is that then for refactored extensions we will always end up
going through the proxies, though I guess as you say if we remember in the
future we can always switch it back. Not something I feel that strongly
about. Maybe when half of the core is refactored we could switch? What do
you think?
Basically I'm trying to do minimal changes just to solve this problem not
to refactor but you're probably right that it makes sense to do so.

Elin

On Sat, Sep 7, 2013 at 9:24 PM, sovainfo notifications@github.com wrote:

Consider this bad code for the following reasons

  • testing existence twice, once with a cleaned path, once without
  • mixing JFile::exists with file_exists
  • cleaning should be limited to $base and also done for file_exists

this should be using file_exists only, no need to include JFile
it should use an if else construction to avoid test the 'same' thing twice
Assuming at the start there are more in views than in view the first test
should be views later version can swap
or to promote the new model start with view


Reply to this email directly or view it on GitHub#1929 (comment)
.

avatar Buddhima
Buddhima - comment - 10 Sep 2013

Hi all,

@test:

I tested this PR. I added a new Category List to Main menu. And it appeared on front-end main menu.

So I can say that this works with old-MVC.

Thank You !

avatar sovainfo
sovainfo - comment - 10 Sep 2013

As soon as content and tags use the new MVC change the order. Consider them the most important.

avatar Buddhima
Buddhima - comment - 12 Sep 2013

Hi all,

@test:

I tested this PR with new-MCV too.

Testing is done with com_services, (which follow new MVC) added Configuration & TemplateConfig menu entries to front-end Main menu. Worked perfectly.

Therefore I can say that this works with new-MVC too.

Thank You !

avatar elinw elinw - close - 24 Sep 2013
avatar garyamort garyamort - reference | - 2 Dec 13

Add a Comment

Login with GitHub to post a comment