fix: Skip individual board caches when listing all boards

Signed-off-by: Julius Knorr <jus@bitgrid.net>
This commit is contained in:
Julius Knorr
2025-01-02 18:10:36 +01:00
parent 75be929077
commit 047fcb6584
5 changed files with 10 additions and 13 deletions

View File

@@ -112,6 +112,10 @@ jobs:
working-directory: apps/${{ env.APP_NAME }}/tests/integration
run: ./run.sh
- name: Print log
if: always()
run: cat data/nextcloud.log
- name: Query count
if: ${{ matrix.databases == 'mysql' }}
uses: actions/github-script@v7

View File

@@ -108,10 +108,11 @@ describe('Card', function () {
cy.get('.card:contains("Example Domain")')
.should('be.visible')
.click()
cy.get('#app-sidebar-vue')
.find('h2').contains('Example Domain').should('be.visible')
})
cy.get('.app-sidebar-header', { timeout: 10000 })
.should('be.visible')
.find('h2').contains('Example Domain').should('be.visible')
})
describe('Modal', () => {

View File

@@ -95,14 +95,6 @@ class BoardService {
* @return Board[]
*/
public function findAll(int $since = -1, bool $fullDetails = false, bool $includeArchived = true): array {
if ($this->boardsCacheFull && $fullDetails) {
return $this->boardsCacheFull;
}
if ($this->boardsCachePartial && !$fullDetails) {
return $this->boardsCachePartial;
}
$complete = $this->getUserBoards($since, $includeArchived);
return $this->enrichBoards($complete, $fullDetails);
}

View File

@@ -1 +1 @@
70520
71221

View File

@@ -172,7 +172,7 @@ class RequestContext implements Context {
*/
public function theResponseShouldBeAListOfObjects() {
$jsonResponse = $this->getResponseBodyFromJson();
Assert::assertEquals(array_keys($jsonResponse), range(0, count($jsonResponse) - 1));
Assert::assertEquals(range(0, count($jsonResponse) - 1), array_keys($jsonResponse));
}
/**