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

Add all supported API Fields in Movie Add to List Dialog #110

Open
wants to merge 14 commits into
base: develop
Choose a base branch
from

Conversation

evoblicec
Copy link
Contributor

Motivation for changes:

When adding movie from WebUI you can only specify the title.
API call currently support:

  • Movie title
  • Movie year
  • Movie Identifiers (IMDB_ID, TMDB_ID, etc.)

Adding year help accuracy for matching the correct movie
Adding movie ID from IMDB or TMDB allow an exact match

Detailed changes:

  • Moved all the new properties to a new structure addEntryOptionalProps as they are optional
  • Updated EntryFields to support new needed fields
  • Iterate over the new addEntryOptionalProps in the Dialog
  • Check if the properties need to be in an array for the API Call

Addressed issues:

  • Move Movie Year field as an optional field as you recent with recent change you can not add a movie without a year because all entries are initialized to ''

To Do:

  • Update Tests
  • Review how Movie Identifiers are listed

evoblicec and others added 14 commits April 8, 2020 12:57
Adding `year` field that will be forwarded to the API call
Change attribute to optional for EntryFields

Co-Authored-By: Kristen Mills <kristen@kristen-mills.com>
…m TMDB

For Movie entry display "Original Title" beside the Title when it exist and is different
Useful for non English movies with an existing title in local language
 Add year input field in Movie Add Dialog
Creating a new structurte for optionnal Properties
Adding IMDB_ID & TMDB_ID as they are already support by the API
@codecov
Copy link

codecov bot commented May 9, 2020

Codecov Report

Merging #110 into develop will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #110      +/-   ##
===========================================
+ Coverage    90.72%   90.74%   +0.01%     
===========================================
  Files          128      128              
  Lines         2738     2743       +5     
  Branches       439      442       +3     
===========================================
+ Hits          2484     2489       +5     
  Misses         250      250              
  Partials         4        4              
Impacted Files Coverage Δ
src/plugins/lists/base/hooks/api.tsx 91.66% <ø> (ø)
src/plugins/lists/base/AddFab/AddEntryDialog.tsx 100.00% <100.00%> (ø)
src/plugins/lists/movies/hooks.tsx 93.33% <100.00%> (+0.22%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6872238...7fe5f44. Read the comment docs.

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

Successfully merging this pull request may close these issues.

None yet

1 participant