[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Martin Renvoize changed: What|Removed |Added Resolution|--- |FIXED CC||martin.renvoize@ptfs-europe ||.com Status|Pushed to Master|RESOLVED --- Comment #12 from Martin Renvoize --- Enhancement, won't be backported to 18.05.x series. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Nick Clemens changed: What|Removed |Added Status|Passed QA |Pushed to Master CC||n...@bywatersolutions.com --- Comment #11 from Nick Clemens --- Awesome work all! Pushged to master for 18.11 -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #10 from Jonathan Druart --- Created attachment 77173 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77173=edit Bug 19633: (QA follow-up) Really remove these ugly numbers See BZ comment5. We now remove the numbers also from the constant names. Test plan: Read the changes. Git grep "ERRCODE_" Run t/db_dependent/Upload.t (Note: You may see one failure here; it is fixed on bug 20727. So depends on who reaches master first.) Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Jonathan Druart changed: What|Removed |Added Attachment #74722|0 |1 is obsolete|| Attachment #75856|0 |1 is obsolete|| --- Comment #9 from Jonathan Druart --- Created attachment 77172 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77172=edit Bug 19633: Use alphanumeric error codes in upload The error codes 1 to 7 are used in Uploader.pm or tools/upload.pl. It would be nice to use alphanumeric codes instead. No behavior change expected. Test plan: [1] Run t/db_dependent/Upload.t [2] Verify that a regular upload with tools/upload.pl still works. [3] Rename upload_path in your koha-conf.xml. Restart Plack, flush the cache and try to upload to a category. Correct error message? [4] Upload the same file twice to the same category. Correct error message the second time? Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher Signed-off-by: Jonathan Druart -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Jonathan Druart changed: What|Removed |Added Status|Signed Off |Passed QA -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #8 from Marcel de Rooy --- (In reply to Jonathan Druart from comment #5) > Ok but I would have written > > use constant UPLERR_ALREADY_EXISTS => 'UPLERR_ALREADY_EXISTS'; > instead of > use constant ERRCODE_1=> 'UPLERR_ALREADY_EXISTS'; > > or even get rid of the constant if only used once. > > The goal is to make the code more readable, but when you see ERRCODE_X in > the perl script you still do not know what it means :) Giving in for high pressure -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #7 from Marcel de Rooy --- Created attachment 75856 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75856=edit Bug 19633: (QA follow-up) Really remove these ugly numbers See BZ comment5. We now remove the numbers also from the constant names. Test plan: Read the changes. Git grep "ERRCODE_" Run t/db_dependent/Upload.t (Note: You may see one failure here; it is fixed on bug 20727. So depends on who reaches master first.) Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #6 from Marcel de Rooy --- (In reply to Jonathan Druart from comment #5) > Ok but I would have written > > use constant UPLERR_ALREADY_EXISTS => 'UPLERR_ALREADY_EXISTS'; > instead of > use constant ERRCODE_1=> 'UPLERR_ALREADY_EXISTS'; > > or even get rid of the constant if only used once. > > The goal is to make the code more readable, but when you see ERRCODE_X in > the perl script you still do not know what it means :) We still can do that later. This was kind of a safety step in between. Still knowing the old error number.. -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Jonathan Druart changed: What|Removed |Added CC||jonathan.dru...@bugs.koha-c ||ommunity.org --- Comment #5 from Jonathan Druart --- Ok but I would have written use constant UPLERR_ALREADY_EXISTS => 'UPLERR_ALREADY_EXISTS'; instead of use constant ERRCODE_1=> 'UPLERR_ALREADY_EXISTS'; or even get rid of the constant if only used once. The goal is to make the code more readable, but when you see ERRCODE_X in the perl script you still do not know what it means :) -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Marcel de Rooychanged: What|Removed |Added Attachment #72919|0 |1 is obsolete|| --- Comment #3 from Marcel de Rooy --- Created attachment 74722 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=74722=edit Bug 19633: Use alphanumeric error codes in upload The error codes 1 to 7 are used in Uploader.pm or tools/upload.pl. It would be nice to use alphanumeric codes instead. No behavior change expected. Test plan: [1] Run t/db_dependent/Upload.t [2] Verify that a regular upload with tools/upload.pl still works. [3] Rename upload_path in your koha-conf.xml. Restart Plack, flush the cache and try to upload to a category. Correct error message? [4] Upload the same file twice to the same category. Correct error message the second time? Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #4 from Marcel de Rooy--- Rebased in connection with [% Asset.js("js/file-upload.js") %] -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Brendan Gallagherchanged: What|Removed |Added Attachment #72084|0 |1 is obsolete|| --- Comment #2 from Brendan Gallagher --- Created attachment 72919 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72919=edit Bug 19633: Use alphanumeric error codes in upload The error codes 1 to 7 are used in Uploader.pm or tools/upload.pl. It would be nice to use alphanumeric codes instead. No behavior change expected. Test plan: [1] Run t/db_dependent/Upload.t [2] Verify that a regular upload with tools/upload.pl still works. [3] Rename upload_path in your koha-conf.xml. Restart Plack, flush the cache and try to upload to a category. Correct error message? [4] Upload the same file twice to the same category. Correct error message the second time? Signed-off-by: Marcel de Rooy Signed-off-by: Brendan Gallagher -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Brendan Gallagherchanged: What|Removed |Added Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Marcel de Rooychanged: What|Removed |Added Status|ASSIGNED|Needs Signoff -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 --- Comment #1 from Marcel de Rooy--- Created attachment 72084 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72084=edit Bug 19633: Use alphanumeric error codes in upload The error codes 1 to 7 are used in Uploader.pm or tools/upload.pl. It would be nice to use alphanumeric codes instead. No behavior change expected. Test plan: [1] Run t/db_dependent/Upload.t [2] Verify that a regular upload with tools/upload.pl still works. [3] Rename upload_path in your koha-conf.xml. Restart Plack, flush the cache and try to upload to a category. Correct error message? [4] Upload the same file twice to the same category. Correct error message the second time? Signed-off-by: Marcel de Rooy -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
[Koha-bugs] [Bug 19633] Use alphanumeric error codes in upload
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19633 Marcel de Rooychanged: What|Removed |Added Summary|Uploader.pm / upload.pl -- |Use alphanumeric error |Use alphanumeric error |codes in upload |codes | -- You are receiving this mail because: You are watching all bug changes. ___ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/