-
Notifications
You must be signed in to change notification settings - Fork 13
[OGUI-1620] Update repositories and services to use database #2803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OGUI-1620] Update repositories and services to use database #2803
Conversation
…e-config-and-migrations
QualityControl/test/lib/database/repositories/CharOptionRepository.test.js
Fixed
Show fixed
Hide fixed
import { ok, throws, doesNotThrow, AssertionError } from 'node:assert'; | ||
import { suite, test, beforeEach } from 'node:test'; | ||
import { ok, throws, strictEqual } from 'node:assert'; | ||
import { suite, test, beforeEach, afterEach } from 'node:test'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
To fix the problem, we need to remove the unused afterEach
import from the node:test
module. This will clean up the code and eliminate any confusion caused by the presence of an unused import. The change should be made in the QualityControl/test/lib/controllers/LayoutController.test.js
file.
-
Copy modified line R16
@@ -15,3 +15,3 @@ | ||
import { ok, throws, strictEqual } from 'node:assert'; | ||
import { suite, test, beforeEach, afterEach } from 'node:test'; | ||
import { suite, test, beforeEach } from 'node:test'; | ||
import sinon from 'sinon'; |
import { LayoutRepository } from '../../../lib/repositories/LayoutRepository.js'; | ||
import { LAYOUT_ADAPTED_MOCK, LAYOUT_INPUT_MOCK } from '../../demoData/layout/layout.mock.js'; | ||
import { LayoutAdapter } from '../../../lib/controllers/adapters/layout-adapter.js'; | ||
import { LayoutDto } from '../../../lib/dtos/LayoutDto.js'; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 2 months ago
To fix the problem, we need to remove the unused import statement for LayoutDto
from the file QualityControl/test/lib/controllers/LayoutController.test.js
. This will clean up the code and eliminate the unnecessary import, improving readability and potentially performance.
-
Copy modified line R22
@@ -21,3 +21,3 @@ | ||
import { LayoutAdapter } from '../../../lib/controllers/adapters/layout-adapter.js'; | ||
import { LayoutDto } from '../../../lib/dtos/LayoutDto.js'; | ||
|
||
|
I have JIRA issue created
This PR updates the services and repositories to retrieve layout information from the database:
** This PR includes commits from a branch still under review (will be resolved once it merges to dev). First commit for this PR is: Add typedefs, update migrations and models, enable cascade deletions
** This PR does not include tests yet.