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

fix: better ordering of RequestButton options & properly handle failed requests #2944

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

TheCatLady
Copy link
Collaborator

@TheCatLady TheCatLady commented Aug 18, 2022

Description

Request button ordering is now as follows:

  1. View Request
  2. Approve Request or Approve X Requests
  3. Decline Request or Decline X Requests
  4. View 4K Request
  5. Approve 4K Request or Approve X 4K Requests
  6. Decline 4K Request or Decline X 4K Requests
  7. Request
  8. Request More
  9. Request 4K
  10. Requests More in 4K

(Note for reviewers: The RequestButton component was really just reordered; there were no logic changes to the conditions for displaying each option. It looks like a lot changed, but this isn't really the case 😅)

While I was working on the above, I realized that failed requests resulted in odd, undesired behavior because they currently have a MediaStatus of UNKNOWN. It is assumed that UNKNOWN-status media items should be requestable, but this is not the case. This PR adds a new MediaRequestStatus of FAILED (after all, a request fails and not the media item) and stops setting MediaStatus of UNKNOWN upon failure.

This new FAILED status also made it super easy to add a new request list filter, so that is included here as well.

To-Dos

  • Successful build yarn build

Issues Fixed or Closed

@cypress
Copy link

cypress bot commented Aug 18, 2022



Test summary

15 0 0 0Flakiness 0


Run details

Project overseerr
Status Passed
Commit 7b6d87a
Started Aug 18, 2022 7:54 AM
Ended Aug 18, 2022 7:56 AM
Duration 01:41 💡
OS Linux Ubuntu - 20.04
Browser Electron 102

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

Copy link
Owner

@sct sct left a comment

Choose a reason for hiding this comment

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

LGTM

@sct sct enabled auto-merge (squash) August 18, 2022 08:12
@sct sct merged commit c143c0b into develop Aug 18, 2022
@sct sct deleted the fix/request-button branch August 18, 2022 08:30
@github-actions
Copy link

🎉 This PR is included in version 1.30.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

don't hide "request more" under "request 4k" Add 'failed' to filter on Requests page
2 participants