Skip to content

JSession Refactor#5088

Closed
wilsonge wants to merge 40 commits intojoomla:stagingfrom
wilsonge:sessionTests
Closed

JSession Refactor#5088
wilsonge wants to merge 40 commits intojoomla:stagingfrom
wilsonge:sessionTests

Conversation

@wilsonge
Copy link
Copy Markdown
Contributor

This allows JSession to be unit testable and provides an interface similar to that in Symfony to allow injection of sessions into the CMS.

It should be b/c for users however so far all I've been able to do is test stuff with core extensions. If you are doing anything outside of core that uses JSession please do test it or let me know of your application!

@wilsonge wilsonge mentioned this pull request Nov 11, 2014
@dgrammatiko
Copy link
Copy Markdown
Contributor

Sorry George this didn’t work for me
screen shot 2014-11-11 at 9 46 07

@wilsonge
Copy link
Copy Markdown
Contributor Author

Ahh I'm so sorry. That's what comes of doing this on the plane and not checking through all the bugs I fixed on there. Fixed now. Sorry dude!

@dgrammatiko
Copy link
Copy Markdown
Contributor

That was fast 👍

@wilsonge
Copy link
Copy Markdown
Contributor Author

That's because it was already fixed in my local branch :P

@dgrammatiko
Copy link
Copy Markdown
Contributor

Backend: tested most core stuff (menu, articles, categories, modules etc): all good!
Front end: all works fine

Big improvement in loading times in front end! 👍
About the comment for com_checkin: this seems to be an unrelated problem with debug on!

Didn’t check with 3rd party apps

So far @test is pass

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete this line (41) to make travis happy 😉

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cheers man!

@wilsonge wilsonge force-pushed the sessionTests branch 3 times, most recently from fd5a362 to 1d16bc0 Compare November 12, 2014 13:15
@wilsonge
Copy link
Copy Markdown
Contributor Author

Don't worry :) If that looks good to you then that makes me feel a lot more relieved :P

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion, even when is not required I think is good if we follow the coding standards in tests too. For example this empty line should be removed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whipped through them quickly. Think I've covered most your points :)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the f**k do we have a reference to "editor" here? 😉

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the comment is wrong, not the code :D

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And Fixed :)

@anibalsanchez
Copy link
Copy Markdown
Contributor

@test OK

In an OAuth2 authorization workflow, internal information is saved in JSession. User leaves the site and after the external authorization step, the information is retrieved from JSession to complete the auth token retrieval.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5088.

@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jun 6, 2015

RTC based on testing by @anibalsanchez and @compojoom Thanks!


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5088.

@zero-24 zero-24 added the RTC This Pull Request is Ready To Commit label Jun 6, 2015
@zero-24
Copy link
Copy Markdown
Contributor

zero-24 commented Jun 6, 2015

@wilsonge can you update the @since and copyright dates bevor committing?

@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jun 11, 2015

So, as an additional validation on this PR, using the new JSessionHandlerNative class, I am able to get sessions working on PHP 7 (see #7143 for more). With the JSessionHandlerJoomla class, we get nowhere. So 👍 on this.

wilsonge added a commit that referenced this pull request Jul 11, 2015
@mbabker
Copy link
Copy Markdown
Contributor

mbabker commented Jul 11, 2015

Merged to 3.5-dev via e36e879

@wilsonge wilsonge deleted the sessionTests branch July 11, 2015 14:26
wilsonge added a commit that referenced this pull request Aug 6, 2015
@zero-24 zero-24 removed the RTC This Pull Request is Ready To Commit label Oct 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

10 participants