<div dir="ltr"><div>Bug 32806 modifies the directory structure and how Vue files are organised.</div><div>Bug 32939 is centralising the way we request the Koha REST API by having a single place where the fetch is made.</div><div>I want people to be aware of these changes, and see them agree (or disagree and provide follow-ups) quickly. There are many changes to build on top of that, and we don't want to provide them before getting the suggestion approved.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 15 févr. 2023 à 23:18, David Cook <<a href="mailto:dcook@prosentient.com.au">dcook@prosentient.com.au</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg-3979279093094900909"><div style="overflow-wrap: break-word;" lang="EN-AU"><div class="m_-3979279093094900909WordSection1"><p class="MsoNormal">I’ve started playing more with Vue for some other projects, so I wouldn’t mind taking a look.<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Is there anything particular you want us to look at with these patches? <u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">David Cook<u></u><u></u></p><p class="MsoNormal">Senior Software Engineer<u></u><u></u></p><p class="MsoNormal">Prosentient Systems<u></u><u></u></p><p class="MsoNormal">Suite 7.03<u></u><u></u></p><p class="MsoNormal">6a Glen St<u></u><u></u></p><p class="MsoNormal">Milsons Point NSW 2061<u></u><u></u></p><p class="MsoNormal">Australia<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><p class="MsoNormal">Office: 02 9212 0899<u></u><u></u></p><p class="MsoNormal">Online: 02 8005 0595<u></u><u></u></p><p class="MsoNormal"><u></u> <u></u></p><div style="border-color:rgb(225,225,225) currentcolor currentcolor;border-style:solid none none;border-width:1pt medium medium;padding:3pt 0cm 0cm"><p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> Koha-devel <<a href="mailto:koha-devel-bounces@lists.koha-community.org" target="_blank">koha-devel-bounces@lists.koha-community.org</a>> <b>On Behalf Of </b>Jonathan Druart<br><b>Sent:</b> Thursday, 16 February 2023 12:10 AM<br><b>To:</b> koha-devel <<a href="mailto:koha-devel@lists.koha-community.org" target="_blank">koha-devel@lists.koha-community.org</a>><br><b>Subject:</b> [Koha-devel] Vue improvements/refactorings<u></u><u></u></span></p></div><p class="MsoNormal"><u></u> <u></u></p><div><div><p class="MsoNormal">Hi,<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Pedro and I have been working on improving the way we request the Koha REST API from Vue components.<u></u><u></u></p></div><div><p class="MsoNormal">We ended up with the implementation that is available on the following remote branch:<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://gitlab.com/joubu/Koha/-/commits/bug_32925" target="_blank">https://gitlab.com/joubu/Koha/-/commits/bug_32925</a><u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">It contains the patches from the following bug reports:<u></u><u></u></p><p class="MsoNormal"><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32898" target="_blank"><b>Bug 32898</b></a> - Cypress tests are failing<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32923" target="_blank"><b>Bug 32923</b></a> - x-koha-embed must a header of collectionFormat csv <u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32806" target="_blank"><b>Bug 32806</b></a> - Some Vue files need to be moved for better reusability <u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32939" target="_blank"><b>Bug 32939</b></a> - Have generic fetch functions in vue modules<u></u><u></u></p></div><div><p class="MsoNormal"><a href="https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32925" target="_blank"><b>Bug 32925</b></a> - Display loading info when a form is submitted<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">First, make the tests pass (32898)! We forgot to include the cypress test in the jenkins pipeline and we missed regressions! There have been regressions on the REST API specs, that are fixed on 32923.<u></u><u></u></p></div><div><p class="MsoNormal">We noticed that the code we provided for the ERM module was not flexible enough and too ERM oriented. Some directories have been moved and code split a bit to make it more reusable for other modules (32806).<u></u><u></u></p></div><div><p class="MsoNormal">Finally there are 32939 that introduce generic fetch functions, to have all the error handling (catch exceptions and display the error on the UI) in a single place. On top of that we added a "loading" message when a form (POST/PUT/DELETE) is submitted and, thanks to the previous moves, it's only a couple of lines of code!<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">All this must be considered a base for future Vue enhancements, and I would like people interested in the Vue work to have a look at it.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><div><p class="MsoNormal">Cheers,<u></u><u></u></p></div><div><p class="MsoNormal">Jonathan<u></u><u></u></p></div></div></div></div></div></blockquote></div></div>