? Success
Pull Request for # 6262

User tests: Successful: Unsuccessful:

avatar alikon
alikon
2 Mar 2015

Steps to reproduce the issue

Backend go to the User -> User Note -> add a note

Expected result

the data are saved

Actual result

Got an ERROR SQL NULL VALUE in column modified_user_id

System information

PostgreSQL 9.3.5
Joomla 3.4.0

Additional comments

Even on new note we need to add a value for NOT NULL FIELDS
fix #6262

avatar alikon alikon - open - 2 Mar 2015
avatar waader
waader - comment - 2 Mar 2015

@test works for postgresql, mysql and mssql! Thanks @alikon!

avatar brianteeman brianteeman - change - 2 Mar 2015
Build .
avatar brianteeman brianteeman - change - 2 Mar 2015
Category Postgresql SQL
avatar wilsonge
wilsonge - comment - 2 Mar 2015

This is one of those times where we should make the field not null actually I think

avatar alikon
alikon - comment - 3 Mar 2015

@wilsonge we need to review our data model constraints from the start
can you have a look at #6104

avatar waader waader - test_item - 13 Mar 2015 - Tested successfully
avatar waader
waader - comment - 14 Mar 2015

Déjà vu at #6355. What´s the decision here?

avatar orware orware - test_item - 9 Apr 2015 - Tested successfully
avatar orware
orware - comment - 9 Apr 2015

@alikon I've taken a closer look at this one and I would suggest the following set of changes instead (you would have to update the PR with these):
http://pastebin.com/6BCRMq75

The reason for the changes are:
1. In the current PR the review_time will always be set to the current date (even if the user selects a different date). It looks like currently with Notes we should allow for it to be empty (set to the Null Date for the Database)...here's the tooltip for the field: "Review Date is a manually entered date you can use as fits in your workflow. Examples would be to put in a date when you want to review a user or the last date you reviewed the user."
2. Even after making adjustments for the date in the JTable class, the User Notes List View doesn't correctly support the Postgres Null Date value (for the MySQL Null Date of 0000-00-00 00:00:00 it will just display a dash "-", for the Postgres Null Date it will display the actual 1970-01-01 00:00:00 date). I've added an additional change to the User Notes List view that changes that behavior and compares the stored Review Time against the current database driver's Null Date value instead so the output is consistent (at least across MySQL and Postgres).

I don't have any issues with the modified_user_id value being set the way it is so that part should be fine.

I've successfully tested things on my end with those modifications in place...hopefully if we can get the PR updated we can get some more people to officially test it as well.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/6265.
avatar zero-24 zero-24 - change - 9 Apr 2015
Labels Added: ?
avatar zero-24 zero-24 - change - 18 May 2015
Status New Pending
avatar brianteeman brianteeman - change - 23 May 2015
Rel_Number 0 6262
Relation Type Pull Request for
avatar brianteeman
brianteeman - comment - 23 May 2015

Confirmed issue.
Confirmed PR resolves the issue


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

avatar brianteeman brianteeman - test_item - 23 May 2015 - Tested successfully
avatar brianteeman brianteeman - change - 23 May 2015
Status Pending Ready to Commit
avatar brianteeman
brianteeman - comment - 23 May 2015

Multiple tests setting RTC


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

avatar brianteeman brianteeman - change - 23 May 2015
Labels Added: ?
Build . staging
avatar wilsonge
wilsonge - comment - 29 May 2015

This breaks the review date functionality by always setting it to the last date the note was edited whereas you should be able to set it to any date or have the date as null. The last modified user change is correct but you need to fix the review time stuff before this can be merged

avatar wilsonge wilsonge - change - 29 May 2015
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 29 May 2015
Labels Added: ?
avatar wilsonge wilsonge - test_item - 29 May 2015 - Tested unsuccessfully
avatar wilsonge wilsonge - change - 29 May 2015
Status Ready to Commit Pending
avatar wilsonge wilsonge - change - 29 May 2015
Labels Removed: ?
avatar zero-24 zero-24 - alter_testresult - 17 Jun 2015 - brianteeman: Not tested
avatar zero-24 zero-24 - alter_testresult - 17 Jun 2015 - orware: Not tested
avatar zero-24 zero-24 - alter_testresult - 17 Jun 2015 - waader: Not tested
avatar brianteeman
brianteeman - comment - 17 Jun 2015

@alikon are you able to com up with a different solution based on @wilsonge comments


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

avatar brianteeman brianteeman - test_item - 17 Jun 2015 - Not tested
avatar alikon
alikon - comment - 18 Jun 2015

fixed the review_time functionality able to set it to any date (null included)
@brianteeman not so sure it is compliant with @wilsonge
cause i'm not changing null constraints

avatar brianteeman
brianteeman - comment - 18 Jun 2015

Thanks I will test later today

avatar brianteeman
brianteeman - comment - 18 Jun 2015

Retested after the changes and I can successfully create a note and set the review date as expected


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

avatar brianteeman brianteeman - test_item - 18 Jun 2015 - Tested successfully
avatar wilsonge
wilsonge - comment - 18 Jun 2015

Nah I'm happy with this. I mean ideally the modified user and date wouldn't be set on note creation - but as we are already doing the modified date i'm happy to standardize on that

avatar smz
smz - comment - 19 Jun 2015

Does this has issues with PHP 5.6?

avatar wilsonge
wilsonge - comment - 22 Jun 2015

Why are you experiencing any?

avatar smz
smz - comment - 22 Jun 2015

... not me, but I can swear I saw Travis complaining with PHP 5.6... strange... everything seems OK now... :confused:

avatar smz
smz - comment - 22 Jun 2015

ehmm... this seems to be the only PR still having a 3.4.2 milestone...

avatar zero-24
zero-24 - comment - 26 Jun 2015

@waader are you able to retest the last changes here? so we can RTC it for 3.4.2? Thanks :smile:

avatar zero-24 zero-24 - change - 26 Jun 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-06-26 09:50:22
Closed_By zero-24
avatar zero-24 zero-24 - close - 26 Jun 2015
avatar zero-24 zero-24 - change - 26 Jun 2015
Status Closed New
Closed_Date 2015-06-26 09:50:22
Closed_By zero-24
avatar zero-24 zero-24 - reopen - 26 Jun 2015
avatar zero-24
zero-24 - comment - 26 Jun 2015

Wrong button :smile:

avatar zero-24 zero-24 - change - 26 Jun 2015
Status New Pending
avatar zero-24 zero-24 - alter_testresult - 26 Jun 2015 - wilsonge: Not tested
avatar waader
waader - comment - 26 Jun 2015

@retest works!

avatar waader waader - test_item - 26 Jun 2015 - Tested successfully
avatar zero-24 zero-24 - change - 26 Jun 2015
Status Pending Ready to Commit
avatar zero-24
zero-24 - comment - 26 Jun 2015

RTC Thanks for testing and coding :smile:


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

avatar zero-24 zero-24 - change - 26 Jun 2015
Labels Added: ?
avatar wilsonge
wilsonge - comment - 27 Jun 2015

Merged

avatar zero-24 zero-24 - close - 27 Jun 2015
avatar wilsonge wilsonge - change - 27 Jun 2015
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2015-06-27 00:08:24
Closed_By wilsonge
avatar wilsonge wilsonge - close - 27 Jun 2015
avatar zero-24 zero-24 - change - 14 Oct 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment