[koha-commits] main Koha release repository branch master updated. v18.11.00-363-g766eaa0
Git repo owner
gitmaster at git.koha-community.org
Fri Feb 1 21:49:38 CET 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".
The branch, master has been updated
via 766eaa0df45f04523737a8f04b045122b3e11b18 (commit)
via 0ee4e9e14fe461e72806491c819f4c033f95f13b (commit)
via 8625eefc76a9390e28e9136f19b9767814bc27a5 (commit)
via abb51797d8d5ebb274856e912e207a921ace478b (commit)
via bc30f84e583959a8c9f4b77db5b8a24ef24e04dd (commit)
via 9330deee558f553c357edf8eb1aa96bd40563087 (commit)
from 914f448fe1c1d5c01e3188a827a0d18ec3001b45 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 766eaa0df45f04523737a8f04b045122b3e11b18
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date: Fri Oct 19 08:22:20 2018 -0300
Bug 21610: Improve default values for dates
This patch fixes failures on t/db_dependent/Koha/Patrons/Import.t
and keep t/Auth_with_shibboleth.t and t/db_dependent/Koha/Object.t green
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
commit 0ee4e9e14fe461e72806491c819f4c033f95f13b
Author: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Fri Oct 19 12:14:20 2018 +0200
Bug 21610: (follow-up) Default value for dates
We have some dates with DEFAULT CURRENT_TIMESTAMP and some dates with
default and UPDATE clause.
Test plan:
Run Object.t again.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
commit 8625eefc76a9390e28e9136f19b9767814bc27a5
Author: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Date: Fri Oct 19 11:05:50 2018 +0200
Bug 21610: (QA follow-up) Better use columns_info from DBIx
We should better use the published method than a private hash key.
And shorter to go via _result than adding a new schema call.
Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
commit abb51797d8d5ebb274856e912e207a921ace478b
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date: Thu Oct 18 18:55:44 2018 -0300
Bug 21610: Fix integers and dates values at Koha::Object->store level
With strict SQL modes, we are facing several issues when objects are stored.
The following errors can be raised by DBIx::Class when an object does not have
a valid (as defined at DB level) value:
- Incorrect integer value: '' for column COLUMN
- Incorrect decimal value: '' for column COLUMN
- Column 'COLUMN' cannot be null
- Field 'COLUMN' doesn't have a default value
- Incorrect date value: '' for column 'COLUMN'
We already handled some of them for Koha::Patron. As we do not want to provide such
changes for all Koha::* modules we are going to fix this at Koha::Object->store level
in order to provide a global fix.
This is related to bug 21599 (for item types) and bug 21596 (for patrons)
Test plan:
- Apply first patch, run the tests
=> Patch fail because of the previous error in Koha::ItemType->store, to make them pass
you can replace
$self->notforloan(0) unless $self->notforloan;
with
$self->notforloan(undef) unless $self->notforloan;
- Apply second patch, run the tests
=> They fail because of dates and/or integers values
- Apply third patch, run the tests
=> They now pass
Deep code review wanted!
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
commit bc30f84e583959a8c9f4b77db5b8a24ef24e04dd
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date: Thu Oct 18 18:46:30 2018 -0300
Bug 21610: Remove specific changes we made previously
We handled integers and dates for Koha::Patron and Koha::ItemType, we
want now Koha::Object to deal with.
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
commit 9330deee558f553c357edf8eb1aa96bd40563087
Author: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
Date: Thu Oct 18 18:38:18 2018 -0300
Bug 21610: Add tests
Adding few tests to Koha/Object.t in order to highlight what we are
trying to fix.
Note that Koha::ItemType->store was wrong for notforloan, the default
value should be null
`notforloan` smallint(6) DEFAULT NULL,
but the previous fix (bug 21599) made it default to '0'
Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>
Signed-off-by: Nick Clemens <nick at bywatersolutions.com>
-----------------------------------------------------------------------
Summary of changes:
Koha/ItemType.pm | 12 ------------
Koha/Object.pm | 41 +++++++++++++++++++++++++++++++++++++++++
Koha/Patron.pm | 31 -------------------------------
t/db_dependent/Koha/Object.t | 41 ++++++++++++++++++++++++++++++++++++++++-
4 files changed, 81 insertions(+), 44 deletions(-)
hooks/post-receive
--
main Koha release repository
More information about the koha-commits
mailing list