<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>A new request with request id 6935 has been created by koha-devel-request@lists.koha-community.org. Short info on the request is : <br><br>Title : Koha-devel Digest, Vol 205, Issue 4<br>Category : <br>Description : <div>Send Koha-devel mailing list submissions to<br>    koha-devel@lists.koha-community.org<br><br>To subscribe or unsubscribe via the World Wide Web, visit<br>    https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>or, via email, send a message with subject or body 'help' to<br>    koha-devel-request@lists.koha-community.org<br><br>You can reach the person managing the list at<br>    koha-devel-owner@lists.koha-community.org<br><br>When replying, please edit your Subject line so it is more specific<br>than "Re: Contents of Koha-devel digest..."<br><br><br>Today's Topics:<br><br>   1. OS upgrade for my linode (running bugs, splinter, the<br>      dashboard etc) (Chris Cormack)<br>   2. Re: OS upgrade for my linode (running bugs, splinter, the<br>      dashboard etc) (Chris Cormack)<br>   3. x-koha-query header doesn't support UTF-8 data (David Cook)<br>   4. Re: Good enough? (Marcel de Rooy)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 5 Dec 2022 09:23:37 +1300<br>From: Chris Cormack <chris@bigballofwax.co.nz><br>To: Koha-devel <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] OS upgrade for my linode (running bugs,<br>    splinter, the dashboard etc)<br>Message-ID:<br>    <CA+95qVR5NRLh=tEQcxySTKstq9yEuDZc4gHFRxWr4CvxhKtquQ@mail.gmail.com><br>Content-Type: text/plain; charset="UTF-8"<br><br>Hi All<br><br>I am about to do any OS upgrade for the server that runs a bunch of<br>our services. I figure now is the best time post the major release. It<br>will be going from 18.04 to 20.04 (maybe to 22.04 later also)<br><br>Chris<br><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 5 Dec 2022 10:30:07 +1300<br>From: Chris Cormack <chris@bigballofwax.co.nz><br>To: Koha-devel <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] OS upgrade for my linode (running bugs,<br>    splinter, the dashboard etc)<br>Message-ID:<br>    <CA+95qVS+sOhAbu72DYHoWKjLFLPvmFc6LU1YmaJk_nos2dg9aQ@mail.gmail.com><br>Content-Type: text/plain; charset="UTF-8"<br><br>Ok, maybe not. It needs to change from i386 to amd64. So I will have<br>to block out some actual time to do that.<br><br>Will try again another day<br><br>Chris<br><br>On Mon, 5 Dec 2022 at 09:23, Chris Cormack <chris@bigballofwax.co.nz> wrote:<br>><br>> Hi All<br>><br>> I am about to do any OS upgrade for the server that runs a bunch of<br>> our services. I figure now is the best time post the major release. It<br>> will be going from 18.04 to 20.04 (maybe to 22.04 later also)<br>><br>> Chris<br><br><br>------------------------------<br><br>Message: 3<br>Date: Mon, 5 Dec 2022 14:32:24 +1100<br>From: "David Cook" <dcook@prosentient.com.au><br>To: "'koha-devel'" <koha-devel@lists.koha-community.org><br>Subject: [Koha-devel] x-koha-query header doesn't support UTF-8 data<br>Message-ID: <073b01d9085a$3f885b40$be9911c0$@prosentient.com.au><br>Content-Type: text/plain; charset="utf-8"<br><br>Hi all,<br><br> <br><br>It turns out the “x-koha-query” header can’t support any value that isn’t ISO-8859-1 encoded. That really limits the number of languages that can use that header, so I think it has to be removed from Koha. See https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32401 for more details.<br><br> <br><br>I bumped into the problem via the DataTables in the “Pending Orders” table when I was trying to search through the pending orders using an Arabic string. It just silently failed, so I started digging. When I opened the F12 tools, clicked “Sources”, and clicked “Pause on caught exceptions”, and then ran my search… I got a nice “Paused in debugger” message along with the caught exception: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': String contains non ISO-8859-1 code point.<br><br> <br><br>Feel free to try it yourself using Arabic (خمسة), Chinese (五), or whatever language you like that requires UTF-8. <br><br> <br><br>I find the kohaTable code in koha-tmpl/intranet-tmpl/prog/js/datatables.js to be unwieldy so hesitant to touch it myself. I think Agustin, Tomas, and Jonathan have the best understanding of it, so they might be best positioned to fix this one.<br><br> <br><br>Not sure if everything will need to be refactored to POSTs or if the queries can be put into the “q” parameter, but anyway… just raising awareness about it here for now. Curious to hear what people think.<br><br> <br><br>Cheers,<br><br> <br><br>David Cook<br><br>Senior Software Engineer<br><br>Prosentient Systems<br><br>Suite 7.03<br><br>6a Glen St<br><br>Milsons Point NSW 2061<br><br>Australia<br><br> <br><br>Office: 02 9212 0899<br><br>Online: 02 8005 0595<br><br> <br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20221205/4ad03962/attachment-0001.htm><br><br>------------------------------<br><br>Message: 4<br>Date: Mon, 5 Dec 2022 10:34:39 +0000<br>From: Marcel de Rooy <M.de.Rooy@rijksmuseum.nl><br>To: Jonathan Druart <jonathan.druart@bugs.koha-community.org>,<br>    koha-devel <koha-devel@lists.koha-community.org><br>Subject: Re: [Koha-devel] Good enough?<br>Message-ID:<br>    <DB6PR0501MB2597C1386DB2217AE20766B6CE189@DB6PR0501MB2597.eurprd05.prod.outlook.com><br>    <br>Content-Type: text/plain; charset="utf-8"<br><br>Could you provide more info on those git hooks? A wiki URL?
<br>
<br>Marcel
<br>
<br>-----Original Message-----
<br>From: Koha-devel <koha-devel-bounces@lists.koha-community.org> On Behalf Of Jonathan Druart
<br>Sent: Friday, December 2, 2022 3:43 PM
<br>To: koha-devel <koha-devel@lists.koha-community.org>
<br>Subject: [Koha-devel] Good enough?
<br>
<br>Hi devs,
<br>
<br>I was wondering... How good is your "good enough"?
<br>It's a question I often ask myself, when writing patches or QAing
<br>yours: is it good enough to be into Koha? It does not have to be perfect or it may never reach master, but it must meet certain standards.
<br>
<br>When I was RM I tried to put that limit quite high. Not necessarily by asking the author for improving the follow-up patches, but also by adding the missing bits myself.
<br>
<br>There are various types of "good enough", depending on what we look
<br>at: good enough to be reviewed, good enough to be tested, to be put in production, get feedback, try an idea, etc.
<br>
<br>Most of the time, what is driving the limit is answering  the questions "Is it maintainable?" / "Is it future proof?". Making sure the code you are writing won't be broken inadvertently is very important and must be part of the reflection.
<br>
<br>Katrin asked the QA team members what were our plans for 23.05. In my opinion we should enforce this "be future proof" concept. Writing code is easy, especially in Koha (yes it is!). Writing maintainable and robust code, following our guidelines is a bit harder. That's why we have a QA process that tries to catch inconsistencies or edge cases you may have missed.
<br>But I think we can be even more rigorous, and aim for better standards. We can elevate our ambitions and do better. When we see the number of new enhancements we are releasing every 6 months, it shows well that writing code is definitely not a problem. However sometimes developers are tempted to abandon their work once they are pushed to master. Pushed does not mean "done". Providing bug fixes, following-up with patches when needed, fixing CI jenkins, etc. is part of job
<br>(/fun)
<br>
<br>As a Koha developer for a long time now, I know how frustrating it can be to be asked for follow-ups/rewrite/tests to have our patches stamped with the precious PQA mark. But from the other point of view (RM, RMaints, QA team), I also know it's very frustrating when you are in charge of the release and you do not get the appropriate follow-up work once it's pushed to master.
<br>
<br>There are some easy steps to write/review better patches. All have been discussed already several times, but that can be enforced even
<br>more:
<br>1. Perltidy (!) This is really a very trivial step. Please perltidy your code. There are hundreds of commits that have been pushed in the last months that are not tidy (alignment, indentation, lines too long,
<br>etc.) This can easily be configured in your IDE! [1]
<br>
<br>2. Provide clean code. As said it's not necessarily easy, but the QA team and RM are supposed to know if the code is clean regarding Koha guidelines. If the code is not clean, don't PQA, don't push. Either clean yourself, or ask the original author of the patch to do it (explaining to them how it can be improved ofc).
<br>
<br>3. Squash! I have been away for a couple of months and had to read the git history to know what I missed. And it was really hard to follow what was going on. First of all, we are not consistent: the commit message must tell what the patch is doing, not what the bug was (if you are writing a bug fix). Then, there are way too many follow-ups:
<br>tidiness, indentation fix, typo, spelling, etc. All those tiny follow-ups could be squashed into the original patch. We don't need unnecessary tons of entries in our git log for that. For instance, I usually add a "JD Amended patch: perltidy" for instance when I tidy the original patch, to keep track of the modification. Squash can be done by the original author, the QAer, the RM. So yes, you are losing one commit in the stats but the git log is easy to read!
<br>We could have an "Amended-by" marker if we really want to add credit on the dashboard (and/or release notes).
<br>
<br>4. Run tests. Don't wait for Jenkins to fail. This is valid for the author and QA. Anticipate the failures by running more tests. If you are modifying C4::Circulation, then run prove on t/db_dependent/Circulation*, not only Circulation.t. It will help you catch edge cases.
<br>When something is pushed, track down jenkins failures that could be caused by your patches.
<br>
<br>6. Be strict if you are QAing. Each QA member has their own "good enough", and the RM as well (either relying on the QAer or providing a full review). But QA must fail if the code is old Koha style code, or not "good enough".
<br>
<br>7. Provide support for failing tests, fix things you broke. The QA team will be more comfortable with your patches if you show them you are providing support for your stuff.
<br>It's not because it's pushed that you don't have any more efforts to make. Provide follow-up patches you promised, provide bug fixes, etc.
<br>We don't have a good way to keep track of such demands, which does not make tracking easier for devs, QA and RM. Any suggestions?
<br>
<br>8. QA team MUST NEVER* pass QA a change that is not covered by tests, never. You should not provide change to modules without tests!
<br>* almost never...
<br>
<br>9. Stick to existing patterns. We should not have different ways to do the same thing. We should not have different places where a code is doing the same thing. Ask for help or advice on the list or IRC before you start coding. We will be happy to guide you. Even if you are a regular Koha developer it's not always easy to be aware of the latest master changes.
<br>We will tell you what's the current good practice, or point you to examples you could reuse for what you want to implement.
<br>
<br>10. CI should drive the pushes. No more push if CI is not green. The more we wait the harder it is to track down the origin of the problem.
<br>Last cycle some jobs have been red for months, and we released
<br>22.11.00 with D10, D11, D12 marked unstable...
<br>
<br>What will I do next cycle?
<br>All of that, and more. I will track down jenkins failures and responsibilize developers telling them when they break tests (and won't fix them anymore as I have been doing for years).
<br>I will raise on the bug reports what could have been improved. Yes, read that I will be even more annoying (to put it politely) than before.
<br>
<br>I've noticed that the pre-commit git hook on the wiki has been broken for more than 3 years. And also caught some core developers that do not have it in place. I am relying on it to keep Vue files tidy so it's important to have it set up properly. I am planning to force its usage for ktd users [2]. Adding more checks to it will help us to catch inconsistencies from the beginning.
<br>
<br>To summarize, writing code is cheap, maintaining code is way more expensive! It is easier to get the attention of developers before the patches are pushed to master than after, so we could be more ambitious and ask more.
<br>
<br>For discussion :)
<br>
<br>Cheers,
<br>Jonathan
<br>
<br>[1] If you are using vim, open ~/vimrc, add
<br>  vmap <F8> :!perltidy -q<CR>
<br>Reload vim, select code in visual mode
<br>[2] https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgitlab.com%2Fkoha-community%2Fkoha-misc4dev%2F-%2Fissues%2F59&amp;data=05%7C01%7Cm.de.rooy%40rijksmuseum.nl%7Cbbb48c7719e24d59d93e08dad4737fd0%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C638055889782743169%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=SJ9ji43M2xQ2hMwPO5cugb0%2FPgA7ruPq955zxsS8OAg%3D&amp;reserved=0
<br>_______________________________________________
<br>Koha-devel mailing list
<br>Koha-devel@lists.koha-community.org
<br>https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Flists.koha-community.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fkoha-devel&amp;data=05%7C01%7Cm.de.rooy%40rijksmuseum.nl%7Cbbb48c7719e24d59d93e08dad4737fd0%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C638055889782743169%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=iKPUZ%2FWFXZd4pJ5bE0bn4AQQ%2FT3Qls7cp3zIrfAJZrU%3D&amp;reserved=0
<br>website : https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.koha-community.org%2F&amp;data=05%7C01%7Cm.de.rooy%40rijksmuseum.nl%7Cbbb48c7719e24d59d93e08dad4737fd0%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C638055889782743169%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=oMko%2ByjqtsCELrgK8HMYQaOs0tb6z11QFkITTN18eXw%3D&amp;reserved=0
<br>git : https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.koha-community.org%2F&amp;data=05%7C01%7Cm.de.rooy%40rijksmuseum.nl%7Cbbb48c7719e24d59d93e08dad4737fd0%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C638055889782743169%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=3DIkt154oi3HFJOmTnal6Kf4JvDZtLJZKF6HLxOjfcs%3D&amp;reserved=0
<br>bugs : https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fbugs.koha-community.org%2F&amp;data=05%7C01%7Cm.de.rooy%40rijksmuseum.nl%7Cbbb48c7719e24d59d93e08dad4737fd0%7C635b05eb66c748e1a94fb4b05a1b058b%7C0%7C0%7C638055889782743169%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&amp;sdata=2mBEKSFfDbgfQ0kb1I1%2BFn4DkLddzAy5C99mhlH5Opg%3D&amp;reserved=0
<br><br>------------------------------<br><br>Subject: Digest Footer<br><br>_______________________________________________<br>Koha-devel mailing list<br>Koha-devel@lists.koha-community.org<br>https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel<br>website : https://www.koha-community.org/<br>git : https://git.koha-community.org/<br>bugs : https://bugs.koha-community.org/<br><br><br>------------------------------<br><br>End of Koha-devel Digest, Vol 205, Issue 4<br>******************************************<br></div><br><br>NOTE: You are receiving this mail because, the Requester/Technician wanted you to get notified on this request creation.<br></body></html>