overseerr icon indicating copy to clipboard operation
overseerr copied to clipboard

[Code Maintenance] Update typeORM package ?

Open damsdev1 opened this issue 1 year ago • 0 comments

Description

TypeORM must be updated to its latest version. These minor changes are not breaking, but they are useful for code maintainers using Windows. The current version of TypeORM has a problem with the glob pattern concerning migrations, so it is not possible to execute migrations correctly.

Version

Latest

Steps to Reproduce

  1. Run Windows
  2. yarn dev

Screenshots

No response

Logs

Current used version of typeORM: 
event - compiled client and server successfully in 31s (4460 modules)
info: No classes were found using the provided glob pattern:  "C:/Users/dams/Documents/Code/overseerr/server/subscriber/*.ts"
info: No classes were found using the provided glob pattern:  "C:/Users/dams/Documents/Code/overseerr/server/entity/*.ts"
info: No classes were found using the provided glob pattern:  "C:/Users/dams/Documents/Code/overseerr/server/migration/*.ts"
query: PRAGMA foreign_keys = OFF
query: BEGIN TRANSACTION
query: SELECT * FROM "sqlite_master" WHERE "type" = 'table' AND "name" = 'typeorm_metadata'
query: COMMIT
query: PRAGMA foreign_keys = ON
2024-09-23T09:15:54.405Z [info][Notifications]: Registered notification agents 
2024-09-23T09:15:54.440Z [info][Jobs]: Scheduled jobs loaded 
2024-09-23T09:15:54.442Z [error]: EntityMetadataNotFoundError: No metadata for "DiscoverSlider" was found.
    at DataSource.getMetadata (C:\Users\dams\Documents\Code\overseerr\node_modules\src\data-source\DataSource.ts:438:30)
    at Repository.get metadata [as metadata] (C:\Users\dams\Documents\Code\overseerr\node_modules\src\repository\Repository.ts:53:40)
    at Repository.findOne (C:\Users\dams\Documents\Code\overseerr\node_modules\src\repository\Repository.ts:577:42)
    at Function.bootstrapSliders (C:\Users\dams\Documents\Code\overseerr\server\entity\DiscoverSlider.ts:19:53)
    at C:\Users\dams\Documents\Code\overseerr\server\index.ts:101:26
[nodemon] app crashed - waiting for file changes before starting...

Updated version of typeORM: 
event - compiled client and server successfully in 32.4s (4460 modules)
info: All classes found using provided glob pattern "server/subscriber/**/*.ts" : "server\subscriber\MediaSubscriber.ts,server\subscriber\IssueSubscriber.ts,server\subscriber\IssueCommentSubscriber.ts"
info: All classes found using provided glob pattern "server/entity/**/*.ts" : "server\entity\UserSettings.ts,server\entity\UserPushSubscription.ts,server\entity\User.ts,server\entity\Session.ts,server\entity\SeasonRequest.ts,server\entity\Season.ts,server\entity\MediaRequest.ts,server\entity\Media.ts,server\entity\IssueComment.ts,server\entity\Issue.ts,server\entity\DiscoverSlider.ts"       
info: All classes found using provided glob pattern "server/migration/**/*.ts" : "server\migration\1697393491630-AddUserPushoverSound.ts,server\migration\1672041273674-AddDiscoverSlider.ts,server\migration\1660714479373-AddMediaRequestIsAutoRequestedField.ts,server\migration\1660632269368-AddWatchlistSyncUserSetting.ts,server\migration\1635079863457-AddPushbulletPushoverUserSettings.ts,server\migration\1634904083966-AddIssues.ts,server\migration\1619339817343-AddUserSettingsNotificationTypes.ts,server\migration\1619239659754-AddUserSettingsLocale.ts,server\migration\1618912653565-CreateUserPushSubscriptions.ts,server\migration\1617730837489-AddUserSettingsNotificationAgentsField.ts,server\migration\1617624225464-CreateTagsFieldonMediaRequest.ts,server\migration\1616576677254-AddUserQuotaFields.ts,server\migration\1615333940450-AddPGPToUserSettings.ts,server\migration\1614334195680-AddTelegramSettingsToUserSettings.ts,server\migration\1613955393450-UpdateUserSettingsRegions.ts,server\migration\1613615266968-CreateUserSettings.ts,server\migration\1612571545781-AddLanguageProfileId.ts,server\migration\1612482778137-AddResetPasswordGuidAndExpiryDate.ts,server\migration\1611801511397-AddRatingKeysToMedia.ts,server\migration\1611757511674-SonarrRadarrSyncServiceFields.ts,server\migration\1611508672722-AddDisplayNameToUser.ts,server\migration\1610522845513-AddMediaAddedFieldToMedia.ts,server\migration\1610370640747-Add4kStatusFields.ts,server\migration\1610070934506-LocalUsers.ts,server\migration\1609236552057-RemoveTmdbIdUniqueConstraint.ts,server\migration\1608477467936-ForceDropImdbUniqueConstraint.ts,server\migration\1608477467935-AddLastSeasonChangeMedia.ts,server\migration\1608217312474-AddUserRequestDeleteCascades.ts,server\migration\1607928251245-DropImdbIdConstraint.ts,server\migration\1606730060700-CascadeMigration.ts,server\migration\1605085519544-SeasonStatus.ts,server\migration\1603944374840-InitialMigration.ts"

and working app.

Platform

desktop

Device

PC

Operating System

Windows 11

Browser

Thorium

Additional Context

No response

Code of Conduct

  • [X] I agree to follow Overseerr's Code of Conduct

damsdev1 avatar Sep 23 '24 09:09 damsdev1