Skip to content
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

Migrate most of KeyProcessor to SDK types #2002

Merged
merged 1 commit into from
Aug 21, 2022

Conversation

nielsvanvelzen
Copy link
Member

There's still some stuff with old apiclient types because they are used in other files and are a PITA to migrate right now.

Changes

  • Migrate most of KeyProcessor to SDK types

Issues

@nielsvanvelzen nielsvanvelzen added sdk-migration To fix this we need to migrate some code to the new SDK refactor Improvements to code realiability, readability and quality labels Aug 20, 2022
@nielsvanvelzen nielsvanvelzen added this to the v0.15.0 milestone Aug 20, 2022
@Andy2244
Copy link
Contributor

Um can you also mark the old api client types as deprecated?

I'm going mad trying to figure out what import is actually valid and which was just auto added.
The issue is, that often its just upper vs lowercase and hard to spot.

@nielsvanvelzen
Copy link
Member Author

The legacy apiclient is unmaintained for over a year now and it's not possible to create new versions for it anymore. So no, I can't add those markers.

mCurrentRowItemNdx = rowItem.getIndex();
mCurrentItemId = item.getId();
mCurrentItemId = item.getId().toString();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove item from L294 but keep it here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rowItem.getBaseItem() is the old BaseItemDto (from the apiclient) which we're migrating from. So I use the SDK one when I can, in this case I can't use it for mCurrentItem but can for the id.

@nielsvanvelzen nielsvanvelzen merged commit 38fe985 into jellyfin:master Aug 21, 2022
@nielsvanvelzen nielsvanvelzen deleted the sdk-keyprocessor branch August 21, 2022 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Improvements to code realiability, readability and quality sdk-migration To fix this we need to migrate some code to the new SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants