<?xml version="1.0" ?>
<rss version="2.0">
  <channel>
    <title>Flyspray::</title>
    <lastBuildDate>Thu, 26 Mar 2026 16:42:56 +0000</lastBuildDate>
    <description>Flyspray::ULab: Recently closed tasks</description>
    <link>https://www.bugs.ulabequipment.com/</link>
        <item>
      <title>FS#80: object_booking month view taking 60+ seconds to render</title>
      <author>Ian Thompson</author>
      <pubDate>Thu, 26 Mar 2026 16:42:49 +0000</pubDate>
      <description><![CDATA[
<p>
The function day_summary() was calling check_no_overlap() for every hour of every day in the calendar.<br />This resulted in approximately 30 days × up to 24 hours ≈ 700+ calls per page load.<br />Each call to check_no_overlap() executed multiple database queries (booking_object, lab_equipment, labs, proximity checks, overlap checks, etc.), leading to an estimated 5,000–6,000 database queries per page render.
</p>

<p>
The function check_no_overlap() is intended for booking validation, not for display logic.
</p>

<p>
Resolution:<br />Replaced calls to check_no_overlap() in the calendar rendering with a lightweight in-memory overlap check - function has_overlap($entriesForDay, $start, $end).
</p>

<p>
Changes made:<br />Refactored/replaced showMonth() with showMonth_2() to minimise queries (old code still present for checking if needed)<br />Added has_overlap() to check booking clashes using the preloaded $entries array<br />Updated day_summary_2() to use has_overlap() instead of check_no_overlap()<br />Updated calling code to pass daily booking entries into day_summary_2()
</p>

<p>
Result:<br />Page load time reduced from approximately 75 seconds to 0.2 seconds, redundant database queries eliminated.<br />Month view now uses a single query with in-memory processing.
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=80</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=80</guid>
    </item>
        <item>
      <title>FS#79: multiday bookings crossing months were being overcharged in BIF report</title>
      <author>Ian Thompson</author>
      <pubDate>Thu, 05 Mar 2026 16:14:02 +0000</pubDate>
      <description><![CDATA[
<p>
multi-day bookings that were &gt; month, or crossed the month boundary were given an hours value for the entire booking instead of the time used in the month (or date range) requested for the BIF report.  Code updated to limit the charge/hours to the max in the month.<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=79</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=79</guid>
    </item>
        <item>
      <title>FS#76: BIF reports wrong contents</title>
      <author>Ian Thompson</author>
      <pubDate>Thu, 05 Feb 2026 11:59:57 +0000</pubDate>
      <description><![CDATA[
<p>
BIF reports containing wrong data.  The cleanFileName function was cutting the filename off at 35 characters, so longer lab names were being shortened and as Bath have similar, long-named labs, this was resulting in the same filename for multiple facilities and cached files resulting in the wrong data in BIF downloads.
</p>

<p>
Fix: updated cleanFileName to default to 120 chars - 39 limit was from legacy need to restrice filename length elsewhere.<br />Fix: updated charging.php as it was stripping the / from tempFiles/filename.csv resulting in files being stored outside of the tempFiles directory<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=76</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=76</guid>
    </item>
        <item>
      <title>FS#72: Add charity option as cost category</title>
      <author>Ian Thompson</author>
      <pubDate>Fri, 22 Aug 2025 15:16:36 +0000</pubDate>
      <description><![CDATA[
<p>
extends FEC option previous asked for so now have 3 cost categories (for Bath/ Fin module users)
</p>

<p>
 $costCategory=array(&quot;0&quot;⇒&quot;Internal&quot;, &quot;1&quot;⇒&quot;FEC&quot;, &quot;2&quot;⇒&quot;Charity&quot;);
</p>

<p>
updates to <br />- project_codes.php [done dev/live]<br />- make_bookable.php &gt; charging tab [done on dev]<br />- project_codes/charging.php [done on dev]
</p>

<p>
 needs testing before going to live [testing complete]
</p>

<p>
moved to live [done]<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=72</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=72</guid>
    </item>
        <item>
      <title>FS#70: multiday bookings allowing change of duration beyond max booking time</title>
      <author>Ian Thompson</author>
      <pubDate>Fri, 15 Aug 2025 13:16:42 +0000</pubDate>
      <description><![CDATA[
<p>
issue with multiday bookings allowing the user to book more than max booking time e.g. max booking 5 days, user can book 7 days.
</p>

<p>
<strong>* update: this is only admin/lab owners, so shouldn&#039;t be an issue for normal kit users </strong>*<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=70</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=70</guid>
    </item>
        <item>
      <title>FS#66: API keys out of date</title>
      <author>Ian Thompson</author>
      <pubDate>Wed, 02 Apr 2025 13:44:14 +0000</pubDate>
      <description><![CDATA[
<p>
<acronym title="Application Programming Interface">API</acronym> keys in location_search were wrong/out of date.  
</p>

<p>
Updated with keys from 02/2024<br />[ulabequipment@gmail.com account]<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=66</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=66</guid>
    </item>
        <item>
      <title>FS#55: Bath department list</title>
      <author>Ian Thompson</author>
      <pubDate>Fri, 20 Sep 2024 14:03:22 +0000</pubDate>
      <description><![CDATA[
<p>
faculty/department list incorrect.
</p>

<p>
change to:
</p>

<p>
[Faculty of Engineering &amp; Design]<br />Architecture &amp; Civil Engineering<br />Chemical Engineering<br />Electronic &amp; Electrical Engineering<br />Mechanical Engineering
</p>

<p>
[Faculty of Humanities &amp; Social Sciences]<br />Economics<br />Education<br />Health<br />Politics, Languages &amp; International Studies<br />Psychology<br />Social &amp; Policy Sciences
</p>

<p>
[Faculty of Science]<br />Chemistry<br />Computer Science<br />Life Sciences<br />Mathematical Sciences<br />Natural Sciences<br />Physics<br />Core research facilities 
</p>

<p>
[School of Management]<br />Accounting, Finance &amp; Law<br />Marketing, Business &amp; Society<br />Information, Decisions &amp; Operations<br />Strategy &amp; Organisation
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=55</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=55</guid>
    </item>
        <item>
      <title>FS#48: incident tool not sending emails</title>
      <author>Ian Thompson</author>
      <pubDate>Mon, 22 Jul 2024 12:26:53 +0000</pubDate>
      <description><![CDATA[
<p>
user reporting emails not being sent.  User account has emails switched on. No users listed as recipients in report.  requires further checking.
</p>

<p>
 update: the inc_notifications code had a typo ($bins instead of $binds) stopping the lab_ID being passed correctly when calling incident function from site home page.  Fix in place on DEV and live.<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=48</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=48</guid>
    </item>
        <item>
      <title>FS#44: add webcal calendar integration</title>
      <author>Ian Thompson</author>
      <pubDate>Wed, 19 Jun 2024 13:12:06 +0000</pubDate>
      <description><![CDATA[
<p>
add webcal format calendar to allow users to subscribe to equipment to view bookings on their calendar app e.g. Outlook, Mail etc.
</p>

<p>
note, restricted to non-free accounts.<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=44</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=44</guid>
    </item>
        <item>
      <title>FS#42: cannot login</title>
      <author>anonymous</author>
      <pubDate>Mon, 17 Jun 2024 13:05:12 +0000</pubDate>
      <description><![CDATA[
<p>
test<br />
</p>
]]></description>
      <link>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=42</link>
      <guid>https://www.bugs.ulabequipment.com/index.php?do=details&amp;task_id=42</guid>
    </item>
      </channel>
</rss>
