From 1dfa9431a95e7e2a1843746c2473d8a06f03e184 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Fri, 14 Oct 2022 16:31:50 -0700 Subject: [PATCH 01/10] fix: update API docs to allow 'all' seasons value (#3073) --- overseerr-api.yml | 43 +++++++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/overseerr-api.yml b/overseerr-api.yml index 164187de3..0be47e668 100644 --- a/overseerr-api.yml +++ b/overseerr-api.yml @@ -4585,9 +4585,13 @@ paths: type: number example: 123 seasons: - type: array - items: - type: number + oneOf: + - type: array + items: + type: number + minimum: 1 + - type: string + enum: [all] is4k: type: boolean example: false @@ -4666,7 +4670,7 @@ paths: $ref: '#/components/schemas/MediaRequest' put: summary: Update MediaRequest - description: Updates a specific media request and returns the request in a JSON object.. Requires the `MANAGE_REQUESTS` permission. + description: Updates a specific media request and returns the request in a JSON object. Requires the `MANAGE_REQUESTS` permission. tags: - request parameters: @@ -4677,6 +4681,37 @@ paths: example: '1' schema: type: string + requestBody: + required: true + content: + application/json: + schema: + type: object + properties: + mediaType: + type: string + enum: [movie, tv] + seasons: + type: array + items: + type: number + minimum: 1 + is4k: + type: boolean + example: false + serverId: + type: number + profileId: + type: number + rootFolder: + type: string + languageProfileId: + type: number + userId: + type: number + nullable: true + required: + - mediaType responses: '200': description: Succesfully updated request From bfe56c347073001795b1c3e917eb7a5afcc4462c Mon Sep 17 00:00:00 2001 From: Brandon Cohen Date: Sat, 15 Oct 2022 01:39:33 -0400 Subject: [PATCH 02/10] fix: added deep links to issues and status badges (#3065) --- src/components/IssueDetails/index.tsx | 16 ++++++--- src/components/MovieDetails/index.tsx | 34 +++++------------- src/components/RequestCard/index.tsx | 27 ++++++++------ .../RequestList/RequestItem/index.tsx | 27 ++++++++------ src/components/TvDetails/index.tsx | 34 +++++------------- src/hooks/useDeepLinks.ts | 35 +++++++++++++++++++ 6 files changed, 99 insertions(+), 74 deletions(-) create mode 100644 src/hooks/useDeepLinks.ts diff --git a/src/components/IssueDetails/index.tsx b/src/components/IssueDetails/index.tsx index 7868b626c..dcf71e7b7 100644 --- a/src/components/IssueDetails/index.tsx +++ b/src/components/IssueDetails/index.tsx @@ -7,6 +7,7 @@ import PageTitle from '@app/components/Common/PageTitle'; import IssueComment from '@app/components/IssueDetails/IssueComment'; import IssueDescription from '@app/components/IssueDetails/IssueDescription'; import { issueOptions } from '@app/components/IssueModal/constants'; +import useDeepLinks from '@app/hooks/useDeepLinks'; import { Permission, useUser } from '@app/hooks/useUser'; import globalMessages from '@app/i18n/globalMessages'; import Error from '@app/pages/_error'; @@ -88,6 +89,13 @@ const IssueDetails = () => { : null ); + const { plexUrl, plexUrl4k } = useDeepLinks({ + plexUrl: data?.mediaInfo?.plexUrl, + plexUrl4k: data?.mediaInfo?.plexUrl4k, + iOSPlexUrl: data?.mediaInfo?.iOSPlexUrl, + iOSPlexUrl4k: data?.mediaInfo?.iOSPlexUrl4k, + }); + const CommentSchema = Yup.object().shape({ message: Yup.string().required(), }); @@ -354,7 +362,7 @@ const IssueDetails = () => { {issueData?.media.plexUrl && (