Compare commits

..

5 Commits

Author SHA1 Message Date
c924699163 feat: raise OptionError on missing OAuth provider class instead of generic AttributeError 2026-02-19 02:04:35 +02:00
d7cee68cb7 fix: use context manager for selector and smtp session 2026-02-19 02:01:56 +02:00
d6865dc363 fix: force data filter for tar archive extraction
(python3.14 default anyway)
2026-02-19 01:13:50 +02:00
1e3850464c feat: (more) secure cookies 2026-02-18 23:48:28 +02:00
59205b990c fix: speedup table reload by updating only changed statuses
it has been found that on big (>100) repos it starts lagging on reload.
This commit adds guard to avoid updating rows whose package statuses
were not changed
2026-02-18 22:57:39 +02:00
2 changed files with 4 additions and 4 deletions

View File

@@ -87,7 +87,7 @@
};
});
updateTable(table, payload, row => row.timestamp);
updateTable(table, payload);
table.bootstrapTable("hideLoading");
},
onFailure,

View File

@@ -195,16 +195,16 @@
return intervalId;
}
function updateTable(table, rows, rowChangedKey) {
function updateTable(table, rows) {
// instead of using load method here, we just update rows manually to avoid table reinitialization
const currentData = table.bootstrapTable("getData").reduce((accumulator, row) => {
accumulator[row.id] = {state: row["0"], key: rowChangedKey(row)};
accumulator[row.id] = {state: row["0"], status: row.status};
return accumulator;
}, {});
// insert or update rows, skipping ones whose status hasn't changed
rows.forEach(row => {
if (Object.hasOwn(currentData, row.id)) {
if (rowChangedKey(row) === currentData[row.id].key) {
if (row.status === currentData[row.id].status) {
return;
}
row["0"] = currentData[row.id].state; // copy checkbox state