-
-
Notifications
You must be signed in to change notification settings - Fork 59
[feature]: Refactor common-db and common logic
#2772
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
Conversation
…t content - to allow ESM and avoid additional fixer run
- common-db is now the package for the database packages - common is now the general package
…nto common-package-refactor
| const inst: ioBroker.InstanceObject | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.adapter.admin.0' | ||
| ); | ||
| const inst: ioBroker.InstanceObject | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| const adptr: ioBroker.AdapterObject | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.adapter.admin' | ||
| ); | ||
| const adptr: ioBroker.AdapterObject | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| const group: ioBroker.GroupObject | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.group.admin.faz' | ||
| ); | ||
| const group: ioBroker.GroupObject | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| const config: (ioBroker.OtherObject & { type: 'config' }) | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.certificates' | ||
| ); | ||
| const config: (ioBroker.OtherObject & { type: 'config' }) | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| const sysConfig: ioBroker.SystemConfigObject | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.config' | ||
| ); | ||
| const sysConfig: ioBroker.SystemConfigObject | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
| const systemRepo: ioBroker.RepositoryObject | null | undefined = await adapter.getForeignObjectAsync( | ||
| 'system.repositories' | ||
| ); | ||
| const systemRepo: ioBroker.RepositoryObject | null | undefined = |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
Link the feature issue which is closed by this PR
This allows us to export zipFiles etc by tools while still using db types
Implementation details
swapped the logic of common packages
Tests
Documentation
If no tests added, please specify why it was not possible
Refactor it is already tested implicitly