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

Test coderabbit #8580

Closed
wants to merge 314 commits into from
Closed

Test coderabbit #8580

wants to merge 314 commits into from

Conversation

miigotu
Copy link
Contributor

@miigotu miigotu commented Oct 16, 2023

Summary by CodeRabbit

  • New Feature: Added a new method test_name to the SickChill class for testing names and parsing results.
  • Bug Fix: Various bug fixes including dismissal of the Discord banner and resolving errors related to bdecode and torrentleech.
  • Documentation: Updated URLs of the Changelog and Network Timezones pages in the README.md file.
  • Refactor: Updated configuration files for SickChill, renaming variables and options for consistency.
  • Style: Improved the visual appearance and behavior of the file browser dialog and autocomplete components.
  • Chore: Updated GitHub Actions workflow files, including versions of actions and modifying workflows.
  • Chore: Updated dependencies and added the ability to build deb packages.
  • Chore: Updated CSS styles and JavaScript codebase for better functionality and user experience.
  • Chore: Updated web page templates for better organization and user interaction.

BKSteve and others added 30 commits July 21, 2023 21:19
This sanitizes and decodes arguments to unicode that are passed in web requests to the server
Also, added logging for developers for all web routes when they have parameters defined in the method signature when they shouldn't be. Each method should explicitly use get_*_argument(s) methods to ensure passed data is safe and sanitized, devoid of control characters, injection safe, and formatted in the correct type. All route methods should only have `self` as a parameter, suck as `def searchIndexersForShowName(self): lang = self.get_argument("lang", strip=True)`
…ows.py

get_*_argument(s) methods return body/query arguments percent-decoded, decoded to unicode, and sanitized with control characters and other unsafe characters removed.
Signed-off-by: miigotu <[email protected]>
This sanitizes and decodes arguments to unicode that are passed in web requests to the server
Also, added logging for developers for all web routes when they have parameters defined in the method signature when they shouldn't be. Each method should explicitly use get_*_argument(s) methods to ensure passed data is safe and sanitized, devoid of control characters, injection safe, and formatted in the correct type. All route methods should only have `self` as a parameter, suck as `def searchIndexersForShowName(self): lang = self.get_argument("lang", strip=True)`
…ows.py

get_*_argument(s) methods return body/query arguments percent-decoded, decoded to unicode, and sanitized with control characters and other unsafe characters removed.
Signed-off-by: miigotu <[email protected]>
fix syntax checking for mako templates by changing quote type
fix adding shows/existing
keep global qualifier when using replaceAll
make srPID consistent with scPID
use target="_blank" rather than window.open
use anon_url in a few more places
avoid onclick in anchors, put javascript in core.js
fix error with get_arguments where default is not a proper parameter
fix formatting

Signed-off-by: miigotu <[email protected]>
Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

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

CodeQL found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 16, 2023

Walkthrough

This pull request includes a variety of changes across the codebase. It updates the configuration files, modifies the GitHub Actions workflows, and introduces changes to the SickChill application's Python and JavaScript code, as well as its HTML templates. The changes aim to improve the application's functionality, enhance its visual appearance, and streamline its CI/CD pipeline.

Changes

File(s) Summary
.editorconfig, .pre-commit-config.yaml, .gitignore Updates to configuration files, including indentation rules and ignored files.
.github/workflows/... Modifications to GitHub Actions workflows, including version updates and new workflows.
CHANGES.md, Gruntfile.js Various updates and fixes, spanning multiple releases.
README.md Updates to the URLs of the Changelog and Network Timezones pages.
SickChill.py Changes to the SickChill class, including a new method and modifications to the start method.
contrib/runscripts/... Updates to the configuration files for SickChill, renaming variables and options for consistency.
debian/... Introduction of a new release with various bug fixes and new features.
sickchill/gui/slick/css/... Changes to the CSS styles of various components to improve their visual appearance.
sickchill/gui/slick/js/... Various changes to the JavaScript codebase, including updates to event handlers, AJAX requests, and new functions.
sickchill/gui/slick/views/... Changes to the HTML templates, including updates to the layout and form elements.

"With each new pull, we hop and twirl, 🐇💃
In the codebase, changes unfurl. 🌪️
From CSS tweaks to Python peaks, 🐍
Each update speaks of our work's mystique. 🎩✨"


Tips

Chat with CodeRabbit Bot (@coderabbitai)

  • Mention @coderabbitai in any review comment for bot assistance.
  • Note: Review comments are made on code diffs or files, not on the PR overview.

Pause Incremental Reviews

  • Insert @coderabbitai: ignore in the PR description to halt the bot's ongoing reviews. Remove the line to resume.
  • Additionally, enter @coderabbitai pause to halt the bot's ongoing reviews as any issue or review comment. To
    resume reviews, enter @coderabbitai resume as any issue or review comment.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 11

Commits Files that changed from the base of the PR and between fa39f38 and 96d4f19.
Files ignored due to filter (13)
  • bower.json
  • contrib/images/vector.svg
  • package.json
  • pyproject.toml
  • sickchill/gui/slick/images/mattermost.png
  • sickchill/gui/slick/images/network/abema tv.png
  • sickchill/gui/slick/images/network/bilibili.png
  • sickchill/gui/slick/images/network/itvx.png
  • sickchill/gui/slick/images/network/tbs (jp).png
  • sickchill/gui/slick/images/network/tubi.png
  • sickchill/gui/slick/js/core.min.js
  • sickchill/gui/slick/js/vendor.min.js
  • yarn.lock
Files selected for processing (57)
  • .editorconfig (1 hunks)
  • .github/workflows/check_release.yml (1 hunks)
  • .github/workflows/codeql.yml (1 hunks)
  • .github/workflows/pythonpackage.yml (7 hunks)
  • .github/workflows/release.yml (2 hunks)
  • .github/workflows/upgrade_dependencies.yml (2 hunks)
  • .gitignore (1 hunks)
  • .pre-commit-config.yaml (1 hunks)
  • CHANGES.md (1 hunks)
  • Gruntfile.js (13 hunks)
  • README.md (1 hunks)
  • SickChill.py (9 hunks)
  • contrib/runscripts/init.debian (2 hunks)
  • contrib/runscripts/init.fedora (1 hunks)
  • contrib/runscripts/init.systemd (1 hunks)
  • contrib/runscripts/init.ubuntu (1 hunks)
  • contrib/runscripts/init.upstart (2 hunks)
  • debian/changelog (1 hunks)
  • debian/sickchill.service (1 hunks)
  • sickchill/gui/slick/css/browser.css (3 hunks)
  • sickchill/gui/slick/css/dark.css (26 hunks)
  • sickchill/gui/slick/css/print.css (1 hunks)
  • sickchill/gui/slick/css/style.css (102 hunks)
  • sickchill/gui/slick/js/ajaxEpSearch.js (2 hunks)
  • sickchill/gui/slick/js/ajaxNotifications.js (1 hunks)
  • sickchill/gui/slick/js/configProviders.js (3 hunks)
  • sickchill/gui/slick/js/core.js (48 hunks)
  • sickchill/gui/slick/js/imageSelector.js (9 hunks)
  • sickchill/gui/slick/js/rootDirs.js (3 hunks)
  • sickchill/gui/slick/views/404.mako (1 hunks)
  • sickchill/gui/slick/views/500.mako (1 hunks)
  • sickchill/gui/slick/views/IRC.mako (1 hunks)
  • sickchill/gui/slick/views/addShows.mako (6 hunks)
  • sickchill/gui/slick/views/addShows_addExistingShow.mako (2 hunks)
  • sickchill/gui/slick/views/addShows_favoriteShows.mako (5 hunks)
  • sickchill/gui/slick/views/addShows_newShow.mako (7 hunks)
  • sickchill/gui/slick/views/addShows_popularShows.mako (4 hunks)
  • sickchill/gui/slick/views/addShows_trendingShows.mako (2 hunks)
  • sickchill/gui/slick/views/apiBuilder.mako (3 hunks)
  • sickchill/gui/slick/views/config.mako (4 hunks)
  • sickchill/gui/slick/views/config_anime.mako (7 hunks)
  • sickchill/gui/slick/views/config_backuprestore.mako (4 hunks)
  • sickchill/gui/slick/views/config_general.mako (40 hunks)
  • sickchill/gui/slick/views/config_postProcessing.mako (37 hunks)
  • sickchill/gui/slick/views/config_providers.mako (51 hunks)
  • sickchill/gui/slick/views/config_search.mako (61 hunks)
  • sickchill/gui/slick/views/config_shares.mako (2 hunks)
  • sickchill/gui/slick/views/config_subtitles.mako (13 hunks)
  • sickchill/gui/slick/views/displayShow.mako (9 hunks)
  • sickchill/gui/slick/views/editShow.mako (25 hunks)
  • sickchill/gui/slick/views/errorlogs.mako (1 hunks)
  • sickchill/gui/slick/views/genericMessage.mako (1 hunks)
  • sickchill/gui/slick/views/history.mako (4 hunks)
  • sickchill/gui/slick/views/home.mako (3 hunks)
  • sickchill/gui/slick/views/home_massAddTable.mako (3 hunks)
  • sickchill/gui/slick/views/home_postprocess.mako (3 hunks)
  • sickchill/gui/slick/views/inc_addShowOptions.mako (1 hunks)
Files not processed due to max files limit (183)
  • sickchill/gui/slick/views/inc_blackwhitelist.mako
  • sickchill/gui/slick/views/inc_home_menu.mako
  • sickchill/gui/slick/views/inc_home_show_list.mako
  • sickchill/gui/slick/views/inc_home_show_list_poster.mako
  • sickchill/gui/slick/views/inc_qualityChooser.mako
  • sickchill/gui/slick/views/layouts/config.mako
  • sickchill/gui/slick/views/layouts/main.mako
  • sickchill/gui/slick/views/login.mako
  • sickchill/gui/slick/views/manage.mako
  • sickchill/gui/slick/views/manage_backlogOverview.mako
  • sickchill/gui/slick/views/manage_episodeStatuses.mako
  • sickchill/gui/slick/views/manage_failedDownloads.mako
  • sickchill/gui/slick/views/manage_manageSearches.mako
  • sickchill/gui/slick/views/manage_massEdit.mako
  • sickchill/gui/slick/views/manage_subtitleMissed.mako
  • sickchill/gui/slick/views/manual_search_show_releases.mako
  • sickchill/gui/slick/views/markdown.mako
  • sickchill/gui/slick/views/movies/add.mako
  • sickchill/gui/slick/views/movies/details.mako
  • sickchill/gui/slick/views/movies/index.mako
  • sickchill/gui/slick/views/movies/remove.mako
  • sickchill/gui/slick/views/movies/search.mako
  • sickchill/gui/slick/views/restart.mako
  • sickchill/gui/slick/views/schedule.mako
  • sickchill/gui/slick/views/status.mako
  • sickchill/gui/slick/views/testRename.mako
  • sickchill/gui/slick/views/trendingShows.mako
  • sickchill/gui/slick/views/viewlogs.mako
  • sickchill/helper/argument_parser.py
  • sickchill/helper/common.py
  • sickchill/init_helpers.py
  • sickchill/logger.py
  • sickchill/oldbeard/classes.py
  • sickchill/oldbeard/clients/deluged.py
  • sickchill/oldbeard/clients/download_station.py
  • sickchill/oldbeard/clients/generic.py
  • sickchill/oldbeard/clients/qbittorrent.py
  • sickchill/oldbeard/clients/rtorrent.py
  • sickchill/oldbeard/clients/transmission.py
  • sickchill/oldbeard/common.py
  • sickchill/oldbeard/config.py
  • sickchill/oldbeard/dailysearcher.py
  • sickchill/oldbeard/databases/main.py
  • sickchill/oldbeard/filters.py
  • sickchill/oldbeard/helpers.py
  • sickchill/oldbeard/name_parser/parser.py
  • sickchill/oldbeard/naming.py
  • sickchill/oldbeard/network_timezones.py
  • sickchill/oldbeard/notifiers/init.py
  • sickchill/oldbeard/notifiers/boxcar2.py
  • sickchill/oldbeard/notifiers/emailnotify.py
  • sickchill/oldbeard/notifiers/mattermost.py
  • sickchill/oldbeard/notifiers/mattermostbot.py
  • sickchill/oldbeard/notifiers/nmj.py
  • sickchill/oldbeard/notifiers/nmjv2.py
  • sickchill/oldbeard/notifiers/plex.py
  • sickchill/oldbeard/notifiers/pytivo.py
  • sickchill/oldbeard/notifiers/trakt.py
  • sickchill/oldbeard/notifiers/twilio_notify.py
  • sickchill/oldbeard/nzbget.py
  • sickchill/oldbeard/postProcessor.py
  • sickchill/oldbeard/processTV.py
  • sickchill/oldbeard/properFinder.py
  • sickchill/oldbeard/providers/init.py
  • sickchill/oldbeard/providers/abnormal.py
  • sickchill/oldbeard/providers/alpharatio.py
  • sickchill/oldbeard/providers/archetorrent.py
  • sickchill/oldbeard/providers/bitcannon.py
  • sickchill/oldbeard/providers/bjshare.py
  • sickchill/oldbeard/providers/btn.py
  • sickchill/oldbeard/providers/cpasbien.py
  • sickchill/oldbeard/providers/danishbits.py
  • sickchill/oldbeard/providers/demonoid.py
  • sickchill/oldbeard/providers/elitetorrent.py
  • sickchill/oldbeard/providers/eztv.py
  • sickchill/oldbeard/providers/filelist.py
  • sickchill/oldbeard/providers/gimmepeers.py
  • sickchill/oldbeard/providers/hd4free.py
  • sickchill/oldbeard/providers/hdbits.py
  • sickchill/oldbeard/providers/hdspace.py
  • sickchill/oldbeard/providers/hdtorrents.py
  • sickchill/oldbeard/providers/hdtorrents_it.py
  • sickchill/oldbeard/providers/horriblesubs.py
  • sickchill/oldbeard/providers/hounddawgs.py
  • sickchill/oldbeard/providers/ilcorsaronero.py
  • sickchill/oldbeard/providers/immortalseed.py
  • sickchill/oldbeard/providers/iptorrents.py
  • sickchill/oldbeard/providers/kat.py
  • sickchill/oldbeard/providers/limetorrents.py
  • sickchill/oldbeard/providers/magnetdl.py
  • sickchill/oldbeard/providers/morethantv.py
  • sickchill/oldbeard/providers/ncore.py
  • sickchill/oldbeard/providers/nebulance.py
  • sickchill/oldbeard/providers/newpct.py
  • sickchill/oldbeard/providers/newznab.py
  • sickchill/oldbeard/providers/norbits.py
  • sickchill/oldbeard/providers/nyaa.py
  • sickchill/oldbeard/providers/omgwtfnzbs.py
  • sickchill/oldbeard/providers/pretome.py
  • sickchill/oldbeard/providers/rarbg.py
  • sickchill/oldbeard/providers/rsstorrent.py
  • sickchill/oldbeard/providers/scc.py
  • sickchill/oldbeard/providers/scenetime.py
  • sickchill/oldbeard/providers/shazbat.py
  • sickchill/oldbeard/providers/skytorrents.py
  • sickchill/oldbeard/providers/speedcd.py
  • sickchill/oldbeard/providers/thepiratebay.py
  • sickchill/oldbeard/providers/tntvillage.py
  • sickchill/oldbeard/providers/tokyotoshokan.py
  • sickchill/oldbeard/providers/torrent9.py
  • sickchill/oldbeard/providers/torrent911.py
  • sickchill/oldbeard/providers/torrent_paradise.py
  • sickchill/oldbeard/providers/torrentbytes.py
  • sickchill/oldbeard/providers/torrentday.py
  • sickchill/oldbeard/providers/torrentleech.py
  • sickchill/oldbeard/providers/torrentproject.py
  • sickchill/oldbeard/providers/torrentz.py
  • sickchill/oldbeard/providers/tvchaosuk.py
  • sickchill/oldbeard/providers/xthor.py
  • sickchill/oldbeard/providers/yggtorrent.py
  • sickchill/oldbeard/sab.py
  • sickchill/oldbeard/scdatetime.py
  • sickchill/oldbeard/scene_numbering.py
  • sickchill/oldbeard/search.py
  • sickchill/oldbeard/searchBacklog.py
  • sickchill/oldbeard/search_queue.py
  • sickchill/oldbeard/show_queue.py
  • sickchill/oldbeard/stevedore.py
  • sickchill/oldbeard/subtitles.py
  • sickchill/oldbeard/traktChecker.py
  • sickchill/oldbeard/traktTrending.py
  • sickchill/oldbeard/trakt_api/trakt.py
  • sickchill/oldbeard/tvcache.py
  • sickchill/providers/GenericProvider.py
  • sickchill/providers/metadata/generic.py
  • sickchill/providers/metadata/kodi.py
  • sickchill/providers/metadata/mede8er.py
  • sickchill/providers/metadata/mediabrowser.py
  • sickchill/providers/metadata/ps3.py
  • sickchill/providers/metadata/tivo.py
  • sickchill/providers/metadata/wdtv.py
  • sickchill/providers/nzb/NZBProvider.py
  • sickchill/providers/torrent/TorrentProvider.py
  • sickchill/settings.py
  • sickchill/show/ComingEpisodes.py
  • sickchill/show/History.py
  • sickchill/show/Show.py
  • sickchill/show/indexers/handler.py
  • sickchill/show/indexers/tvdb.py
  • sickchill/show_updater.py
  • sickchill/start.py
  • sickchill/tv.py
  • sickchill/update_manager/pip.py
  • sickchill/update_manager/runner.py
  • sickchill/views/api/webapi.py
  • sickchill/views/browser.py
  • sickchill/views/changelog.py
  • sickchill/views/common.py
  • sickchill/views/config/anime.py
  • sickchill/views/config/backup.py
  • sickchill/views/config/general.py
  • sickchill/views/config/notifications.py
  • sickchill/views/config/post_processing.py
  • sickchill/views/config/providers.py
  • sickchill/views/config/search.py
  • sickchill/views/config/subtitles.py
  • sickchill/views/history.py
  • sickchill/views/home.py
  • sickchill/views/imageSelector.py
  • sickchill/views/index.py
  • sickchill/views/manage/add_shows.py
  • sickchill/views/manage/index.py
  • sickchill/views/manage/post_processing.py
  • sickchill/views/manage/searches.py
  • sickchill/views/server_settings.py
  • tests/sickchill_tests/helper/test_common.py
  • tests/sickchill_tests/show/test_show.py
  • tests/test_api_v1.py
  • tests/test_db.py
  • tests/test_notifier.py
  • tests/test_search.py
  • tests/test_snatch.py
  • webpack.config.js
Files not summarized due to errors (1)
  • sickchill/gui/slick/css/style.css: Error: Message exceeds token limit
Files skipped from review due to trivial changes (37)
  • .editorconfig
  • .github/workflows/codeql.yml
  • .github/workflows/release.yml
  • .github/workflows/upgrade_dependencies.yml
  • .gitignore
  • .pre-commit-config.yaml
  • CHANGES.md
  • README.md
  • contrib/runscripts/init.debian
  • contrib/runscripts/init.ubuntu
  • debian/sickchill.service
  • sickchill/gui/slick/css/browser.css
  • sickchill/gui/slick/css/dark.css
  • sickchill/gui/slick/css/print.css
  • sickchill/gui/slick/js/configProviders.js
  • sickchill/gui/slick/js/core.js
  • sickchill/gui/slick/views/404.mako
  • sickchill/gui/slick/views/500.mako
  • sickchill/gui/slick/views/IRC.mako
  • sickchill/gui/slick/views/addShows.mako
  • sickchill/gui/slick/views/addShows_addExistingShow.mako
  • sickchill/gui/slick/views/addShows_favoriteShows.mako
  • sickchill/gui/slick/views/addShows_newShow.mako
  • sickchill/gui/slick/views/addShows_popularShows.mako
  • sickchill/gui/slick/views/addShows_trendingShows.mako
  • sickchill/gui/slick/views/apiBuilder.mako
  • sickchill/gui/slick/views/config.mako
  • sickchill/gui/slick/views/config_anime.mako
  • sickchill/gui/slick/views/config_backuprestore.mako
  • sickchill/gui/slick/views/config_postProcessing.mako
  • sickchill/gui/slick/views/config_shares.mako
  • sickchill/gui/slick/views/config_subtitles.mako
  • sickchill/gui/slick/views/editShow.mako
  • sickchill/gui/slick/views/errorlogs.mako
  • sickchill/gui/slick/views/genericMessage.mako
  • sickchill/gui/slick/views/home_massAddTable.mako
  • sickchill/gui/slick/views/home_postprocess.mako
Additional comments (Suppressed): 145
contrib/runscripts/init.systemd (1)
  • 40-43: The environment variable SR_DATA has been replaced with SC_DATA. Ensure that all references to SR_DATA in the codebase have been updated to SC_DATA, and that the new environment variable SC_DATA is correctly set in /etc/sickchill.conf.
.github/workflows/check_release.yml (4)
  • 1-61: The workflow is well-structured and follows best practices for GitHub Actions. It's clear that it's designed to test a release string in a Python environment using the SickChill library. However, there are a few points that could be improved or verified.

  • 21-21: The TEST_STRING environment variable is set to the input string or a default value. If the input string is not sanitized, this could potentially lead to command injection. However, as per the instructions, we can assume that the input string is pre-sanitized.

  • 29-33: The checkout action is used with persist-credentials: false which is a good practice for public repositories to prevent accidental exposure of GitHub tokens. However, if this workflow needs to push changes back to the repository, you might need to set persist-credentials: true.

  • 61-61: The test string is parsed with a Python command that imports the NameParser class from the SickChill library. If the NameParser class or the _parse_string method changes in future versions of the library, this command might fail. You should ensure that the SickChill library is pinned to a specific version that supports this command.

sickchill/gui/slick/js/ajaxNotifications.js (3)
  • 1-33: The displayPNotify function has been significantly refactored. The new implementation creates a new PNotify object with a more detailed configuration. The configuration now includes settings for desktop, nonblock, maxonscreen, addclass, closer_hover, delay, hide, history, shadow, stack, styling, width, and destroy. Ensure that these changes are compatible with the rest of the codebase and that the new settings are appropriate.

  • 37-42: A new constant notificationDown has been introduced. This object seems to be used as a default notification when the server is down or restarting. Ensure that the type, title, and message fields are appropriate and that the offline-notice id is not used elsewhere.

  • 44-56: The checkNotifications function has been refactored. It now handles failures by displaying the notificationDown message and clearing the notificationTimer. On success, it sets a new timeout to call checkNotifications again after 3 seconds. Ensure that this new behavior is intended and that the error handling is appropriate.

sickchill/gui/slick/js/ajaxEpSearch.js (2)
  • 2-7: The line PNotify.prototype.options.maxonscreen = 5; has been removed in the new hunk. If this was intentional, ensure that it doesn't affect the functionality of the PNotify notifications in your application. If it was removed by mistake, consider adding it back.
+ PNotify.prototype.options.maxonscreen = 5;
  • 103-106: The replace method has been replaced with replaceAll. This change will replace all occurrences of the matched string instead of just the first one. If this was the intended behavior, then the change is fine. However, if you only wanted to replace the first occurrence, you should revert back to using replace.
.github/workflows/pythonpackage.yml (7)
  • 56-62: The Docker metadata action version has been updated from v4 to v5. Ensure that the new version is compatible with the rest of your workflow and doesn't introduce any breaking changes.

  • 82-88: The Python version matrix has been updated to exclude Python 3.7. Make sure that this change is intentional and that your application doesn't need to support Python 3.7.

  • 100-106: The version of the GitHub Checkout action has been updated from v3 to v4. Verify that this new version is compatible with your workflow and doesn't introduce any breaking changes.

  • 183-197: The versions of the Docker setup QEMU action, Docker setup Buildx action, and Docker build-push action have been updated. Ensure that these new versions are compatible with your workflow and don't introduce any breaking changes.

  • 221-227: The version of the Docker setup QEMU action has been updated from v2 to v3. Verify that this new version is compatible with your workflow and doesn't introduce any breaking changes.

  • 231-258: The versions of the Docker setup Buildx action, Docker login action, and Docker build-push action have been updated. Also, the condition for the Docker login action has been changed to only execute if the GitHub actor is 'miigotu' and the environment variable ACT is not set. Ensure that these changes are intentional and compatible with your workflow.

  • 268-274: The version of the Docker build-push action has been updated from v4 to v5. Verify that this new version is compatible with your workflow and doesn't introduce any breaking changes.

contrib/runscripts/init.fedora (1)
  • 24-32: The environment variable prefixes have been changed from SR_ to SC_. Ensure that all references to these variables in the codebase have been updated to reflect this change. Also, verify that any external systems or scripts that rely on these environment variables have been updated.
- username=${SR_USER-sickchill}
- homedir=${SR_HOME-/opt/sickchill}
- datadir=${SR_DATA-/opt/sickchill}
- pidfile=${SR_PIDFILE-/var/run/sickchill/sickchill.pid}
- nice=${SR_NICE-}
+ username=${SC_USER-sickchill}
+ homedir=${SC_HOME-/opt/sickchill}
+ datadir=${SC_DATA-/opt/sickchill}
+ pidfile=${SC_PIDFILE-/var/run/sickchill/sickchill.pid}
+ nice=${SC_NICE-}
sickchill/gui/slick/views/history.mako (5)
  • 6-9: The import from sickchill.oldbeard import scdatetime, providers has been changed from from sickchill.oldbeard import sbdatetime, providers. Ensure that all references to sbdatetime in the codebase have been updated to scdatetime.

  • 25-31: The code for generating the options for the "Limit" dropdown has been refactored to use a loop instead of hardcoding each option. This is a good improvement for maintainability.

  • 38-44: The code for generating the options for the "Layout" dropdown has been refactored to use a loop instead of hardcoding each option. This is a good improvement for maintainability.

  • 78-81: The variable air_date has been updated to use scdatetime instead of sbdatetime. Ensure that scdatetime is correctly implemented and provides the same functionality as sbdatetime.

  • 145-148: The variable air_date has been updated to use scdatetime instead of sbdatetime. Ensure that scdatetime is correctly implemented and provides the same functionality as sbdatetime.

sickchill/gui/slick/views/inc_addShowOptions.mako (6)
  • 23-23: The checkbox for subtitles has been updated to use a new checked function. Ensure that this function correctly returns the string 'checked' when the condition is true, and an empty string when the condition is false.

  • 32-32: The label for 'Use SC Metadata' has been updated. Ensure that the new label accurately represents the functionality of the checkbox.

  • 70-70: The checkbox for 'Season Folders' has been updated to use a new checked function. Ensure that this function correctly returns the string 'checked' when the condition is true, and an empty string when the condition is false.

  • 82-82: The checkbox for 'Anime' has been updated to use a new checked function. Ensure that this function correctly returns the string 'checked' when the condition is true, and an empty string when the condition is false.

  • 94-94: The checkbox for 'Scene Numbering' has been updated to use a new checked function. Ensure that this function correctly returns the string 'checked' when the condition is true, and an empty string when the condition is false.

  • 110-110: The 'Save as default' button no longer has the 'disabled' attribute. If this is intentional and the button should always be enabled, ignore this comment. If not, consider adding the 'disabled' attribute back.

debian/changelog (1)
  • 1-10: The new hunk provides a detailed changelog for the sickchill package, including the version number, status, urgency level, changes made, and the author's contact information. The changes include bug fixes, new features, and dependency updates. However, the status of the release is marked as UNRELEASED which might be a mistake if the changes are already live. Also, the URL in line 7 is not closed with a parenthesis.
- sickchill (2023.6.27) UNRELEASED; urgency=medium
+ sickchill (2023.6.27) stable; urgency=medium
- Add package to homebrew repository (brew tap sickchill/sickchill until https://github.com/Homebrew/homebrew-core/pull/134927 is merged
+ Add package to homebrew repository (brew tap sickchill/sickchill until https://github.com/Homebrew/homebrew-core/pull/134927 is merged)
contrib/runscripts/init.upstart (2)
  • 9-11: The variable names SR_HOME, SR_DATA, and SR_OPTS have been changed to SC_HOME, SC_DATA, and SC_OPTS respectively. Ensure that all references to these variables in the codebase have been updated to reflect these changes.

  • 37-37: The variable names SR_HOME, SR_DATA, and SR_OPTS have been changed to SC_HOME, SC_DATA, and SC_OPTS respectively. This change is consistent with the changes made in lines 9-11.

SickChill.py (9)
  • 13-17: The import statements are now more organized and the pathlib and typing modules have been added. This is a good practice as it improves readability and maintainability.

  • 24-30: The import statement for NameParser, ParseResult from sickchill.oldbeard.name_parser.parser has been added. Ensure that this new import does not conflict with existing code and is used appropriately.

  • 45-51: The import statement for SCWebServer from sickchill.views.server_settings has been updated from SRWebServer. Ensure that all references to SRWebServer in the codebase have been updated to SCWebServer.

  • 105-129: New logic has been added to handle the case when args.subparser_name == "test-name" and args.name. This seems to be a new feature for testing names. Ensure that this new feature is working as expected and does not introduce any breaking changes.

  • 132-144: The code for setting settings.DATA_DIR and settings.CONFIG_FILE has been updated to use pathlib instead of os.path. This is a good practice as pathlib provides a more intuitive way to handle filesystem paths.

  • 169-177: The call to sickchill.start.initialize now includes additional arguments. Ensure that these new arguments are handled correctly in the initialize function.

  • 186-192: The web_options dictionary now includes the debug key. Ensure that this new key is used appropriately in the SCWebServer class.

  • 199-205: The SRWebServer class has been replaced with the SCWebServer class. Ensure that all references to SRWebServer in the codebase have been updated to SCWebServer.

  • 355-364: A new static method test_name has been added. This seems to be a new feature for testing names. Ensure that this new feature is working as expected and does not introduce any breaking changes.

sickchill/gui/slick/js/rootDirs.js (3)
  • 121-125: The postRootDirs function is a new addition. It seems to be replacing the previous $.get AJAX call with a $.post call. Ensure that the server-side endpoint /config/general/saveRootDirs is capable of handling POST requests and that the change doesn't break any functionality. Also, consider adding error handling for the AJAX call to handle any potential failures.

  • 146-146: The postRootDirs function is being called here, replacing the previous refreshRootDirs and $.get calls. As mentioned earlier, ensure that the server-side endpoint can handle POST requests and that the change doesn't break any functionality.

  • 166-166: The postRootDirs function is being called here, replacing the previous refreshRootDirs and $.get calls. As mentioned earlier, ensure that the server-side endpoint can handle POST requests and that the change doesn't break any functionality.

sickchill/gui/slick/js/imageSelector.js (6)
  • 1-7: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 38-38: The showID is now being fetched once and stored in a variable, instead of being fetched every time it's needed. This is a good performance improvement.

  • 96-96: The magic number 80 has been replaced with a variable margin. This is a good practice as it improves readability and maintainability of the code.

  • 150-150: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

  • 171-178: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 192-192: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

sickchill/gui/slick/views/config_general.mako (17)
  • 9-12: The import from sickchill.oldbeard.scdatetime import scdatetime, date_presets, time_presets has been changed from from sickchill.oldbeard.sbdatetime import sbdatetime, date_presets, time_presets. Ensure that the scdatetime module exists and is correctly implemented in the codebase.

  • 65-66: The checked function is used instead of the previous boolean check for settings.LAUNCH_BROWSER. Ensure that this function is correctly implemented and returns the expected output.

  • 78-82: The selected function is used instead of the previous boolean check for settings.DEFAULT_PAGE. Ensure that this function is correctly implemented and returns the expected output.

  • 101-102: The checked function is used instead of the previous boolean check for settings.NO_LGMARGIN. Ensure that this function is correctly implemented and returns the expected output.

  • 111-112: The label text has been changed from "Choose hour to update shows" to "Hour to update shows". Ensure that this change is intentional and does not affect the user experience.

  • 139-140: The settings.ENDED_SHOWS_UPDATE_INTERVAL is now directly used as the value for the input field. Ensure that this value is correctly sanitized and safe to use in this context.

  • 165-166: The checked function is used instead of the previous boolean check for settings.TRASH_REMOVE_SHOW. Ensure that this function is correctly implemented and returns the expected output.

  • 171-172: The checked function is used instead of the previous boolean check for settings.TRASH_ROTATE_LOGS. Ensure that this function is correctly implemented and returns the expected output.

  • 227-230: The selected function is used instead of the previous boolean check for settings.INDEXER_DEFAULT. Ensure that this function is correctly implemented and returns the expected output.

  • 306-307: The checked function is used instead of the previous boolean check for settings.VERSION_NOTIFY. Ensure that this function is correctly implemented and returns the expected output.

  • 316-317: The checked function is used instead of the previous boolean check for settings.AUTO_UPDATE. Ensure that this function is correctly implemented and returns the expected output.

  • 344-345: The checked function is used instead of the previous boolean check for settings.NOTIFY_ON_UPDATE. Ensure that this function is correctly implemented and returns the expected output.

  • 382-384: The selected function is used instead of the previous boolean check for settings.GUI_LANG. Ensure that this function is correctly implemented and returns the expected output.

  • 403-406: The selected function is used instead of the previous boolean check for settings.THEME_NAME. Ensure that this function is correctly implemented and returns the expected output.

  • 482-483: The checked function is used instead of the previous boolean check for settings.CUSTOM_CSS. Ensure that this function is correctly implemented and returns the expected output.

  • 513-514: The checked function is used instead of the previous boolean check for settings.DISPLAY_ALL_SEASONS. Ensure that this function is correctly implemented and returns the expected output.

  • 523-524: The checked function is used instead of the previous boolean check for settings.SORT_ARTICLE. Ensure that this function is correctly implemented and returns the expected output.

Gruntfile.js (12)
  • 18-23: The new hunk has removed the 'exec:test', 'newrelease', and 'genchanges' tasks from the 'publish' task. If these tasks are no longer necessary, this change is fine. However, if they are still required, they should be added back to the 'publish' task.
-        'exec:test', // Run tests
-        'newrelease', // Pull and merge develop to master, create and push a new release
-        'genchanges' // Update CHANGES.md
  • 33-33: The 'default' task has been added to the 'publish' task. Ensure that this task is defined and does what is expected in this context.

  • 34-34: The 'exec:update_translations' task has been commented out. If this task is no longer necessary, this change is fine. However, if it is still required, it should be uncommented.

- // 'exec:update_translations', // Update translations
+ 'exec:update_translations', // Update translations
  • 259-259: The new hunk has added a requirement for the '_get_next_version' task before running the 'bump_version' task. Ensure that this task is defined and does what is expected in this context.

  • 276-276: The new hunk has added a requirement for the '_get_next_version' task before running the 'delete_today_tags' task. Ensure that this task is defined and does what is expected in this context.

  • 307-307: The new hunk has added a requirement for the '_get_next_version' task before committing the updates to translations and grunt. Ensure that this task is defined and does what is expected in this context.

  • 315-318: The new hunk has added a check for changes to the 'CHANGES.md' file and commits them with the message 'Update Changelog'. This is a good practice as it keeps the changelog up to date.

  • 340-341: The new hunk has removed the addition of the build number and '[skip ci]' to the commit message in the 'commit_combined' task. If this information is no longer necessary, this change is fine. However, if it is still required, it should be added back to the commit message.

- if (process.env.GITHUB_RUN_ID && !isRelease) {
-     commitMsg += ' (build ' + process.env.GITHUB_RUN_ID + ') [skip ci]';
- }
  • 348-348: The new hunk has commented out the requirement for the 'commit_changed_files' task before running the 'commit_combined' task. If this task is no longer necessary, this change is fine. However, if it is still required, it should be uncommented.
- // grunt.task.requires('commit_changed_files');
+ grunt.task.requires('commit_changed_files');
  • 371-371: The new hunk has added a requirement for the '_get_last_version' task before running the 'git_list_changes' task. Ensure that this task is defined and does what is expected in this context.

  • 386-386: The new hunk has added requirements for the '_get_next_version' and 'exec:git_list_changes' tasks before running the 'git_tag_next_version' task. Ensure that these tasks are defined and do what is expected in this context.

  • 448-450: The new hunk has removed the 'commit_changelog' task. If this task is no longer necessary, this change is fine. However, if it is still required, it should be added back.

- 'commit_changelog': {
-     cmd: function() {
-         const file = grunt.config('changesmd_file');
-         if (!file) {
-             grunt.fatal('Missing file path.');
-         }
-         let path = file.slice(0, -25); // slices 'sickchill-news/CHANGES.md' (len=25)
-         if (!path) {
-             grunt.fatal('path = "' + path + '"');
-         }
-         let pushCmd = 'git push origin master';
-         if (grunt.option('no-push')) {
-             grunt.log.warn('Pushing with --dry-run ...'.magenta);
-             pushCmd += ' --dry-run';
-         }
-         return ['cd ' + path, 'git commit -asm "Update changelog"', 'git fetch origin', 'git rebase',
-             pushCmd].join(' && ');
-     },
-     stdout: true
- }
sickchill/gui/slick/views/config_providers.mako (16)
  • 1-4: No changes detected in the code. The only difference is the added whitespace in the new hunk, which doesn't affect the functionality.

  • 18-29: The variable names newznab_provider_list and torrent_rss_provider_list have been changed from newznabProviderList and torrentRssProviderList respectively. Ensure that these changes are reflected throughout the codebase to avoid any undefined variable errors.

  • 73-82: The function sorted_provider_list() has been renamed from sortedProviderList(). Ensure that this change is reflected throughout the codebase to avoid any undefined function errors.

  • 87-98: The function checked() has been introduced to replace the previous method of checking if a provider is enabled. Ensure that this function is defined and works as expected.

  • 102-105: The function sorted_provider_list() has been renamed from sortedProviderList(). Ensure that this change is reflected throughout the codebase to avoid any undefined function errors.

  • 129-135: The function sorted_provider_list() has been renamed from sortedProviderList(). Ensure that this change is reflected throughout the codebase to avoid any undefined function errors.

  • 153-156: The variable newznab_provider_list has been renamed from newznabProviderList. Ensure that this change is reflected throughout the codebase to avoid any undefined variable errors.

  • 161-167: No significant changes detected. The only difference is the added whitespace in the new hunk, which doesn't affect the functionality.

  • 173-179: No significant changes detected. The only difference is the added whitespace in the new hunk, which doesn't affect the functionality.

  • 186-192: The function checked() has been introduced to replace the previous method of checking if a provider is enabled. Ensure that this function is defined and works as expected.

  • 199-211: The function hidden() has been introduced to replace the previous method of checking if a provider supports backlog. Ensure that this function is defined and works as expected.

  • 230-244: The values for the search_mode radio buttons have been changed from sponly and eponly to season and episode respectively. Ensure that these changes are reflected throughout the codebase to avoid any unexpected behavior.

  • 253-259: The function checked() has been introduced to replace the previous method of checking if a provider is enabled. Ensure that this function is defined and works as expected.

  • 310-324: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [262-324]

The function hidden() has been introduced to replace the previous method of checking if a provider supports backlog. Ensure that this function is defined and works as expected.

  • 343-357: The values for the search_mode radio buttons have been changed from sponly and eponly to season and episode respectively. Ensure that these changes are reflected throughout the codebase to avoid any unexpected behavior.

  • 366-372: The function checked() has been introduced to replace the previous method of checking if a provider is enabled. Ensure that this function is defined and works as expected.

sickchill/gui/slick/views/home.mako (3)
  • 1-14: No significant changes detected. The code seems to be reformatted with additional spaces and line breaks. Ensure that this reformatting doesn't affect the rendering of the page.

  • 39-45: No significant changes detected. The code seems to be reformatted with additional spaces and line breaks. Ensure that this reformatting doesn't affect the rendering of the page.

  • 61-67: No significant changes detected. The code seems to be reformatted with additional spaces and line breaks. Ensure that this reformatting doesn't affect the rendering of the page.

sickchill/gui/slick/css/style.css (14)
  • 10-13: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 24-26: The color value has been changed from white to #ffffff. Both represent the same color, but using the hex value is more precise and consistent.

  • 40-48: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 68-73: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 154-174: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 188-199: The clear-after: top; property has been removed and replaced with a new property #sub-menu a:after. Verify if this change is intentional and if it has the desired effect.

  • 385-395: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 420-432: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 457-518: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 541-556: The clear-after: top; property has been removed and replaced with a new property #sub-menu a:after. Verify if this change is intentional and if it has the desired effect.

  • 575-578: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 602-612: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 623-678: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

  • 683-697: The order of the CSS properties has been changed. This doesn't affect the functionality but it's good to maintain a consistent order for readability and maintainability.

sickchill/gui/slick/views/displayShow.mako (7)
  • 6-9: The import from sickchill.oldbeard import subtitles, notifiers, scdatetime, network_timezones, helpers has been updated from from sickchill.oldbeard import subtitles, notifiers, sbdatetime, network_timezones, helpers. Ensure that scdatetime is the correct module to import and that it doesn't break any functionality that relied on sbdatetime.

  • 44-44: The selected function has been updated from selected="selected" to selected(curShow == show). Ensure that this new function correctly sets the selected option in the dropdown.

  • 150-156: The URLs in the href attributes have been updated. Ensure that these new URLs are correct and lead to the expected pages.

  • 285-285: The variable show.subtitles_sc_metadata has been updated from show.subtitles_sr_metadata. Ensure that this new variable is correct and doesn't break any functionality that relied on show.subtitles_sr_metadata.

  • 474-497: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [477-509]

The align attribute has been replaced with the text-center class. Ensure that this change doesn't affect the layout or design of the table.

  • 533-545: The air_date calculation has been updated. Ensure that this new calculation correctly calculates the air date and doesn't break any functionality that relied on the old calculation.

  • 559-565: The hidden function has been updated from hidden, '' to hidden(epResult['location'] and settings.USE_KODI and settings.KODI_HOST). Ensure that this new function correctly hides the element when necessary.

sickchill/gui/slick/views/config_search.mako (26)
  • 1-4: No changes detected in the code. The only difference is the additional whitespace at the beginning of the lines, which doesn't affect the functionality.

  • 36-42: The way of checking the checkbox has been changed from a ternary operation to a function call checked(). Ensure that this function is correctly implemented and returns the expected values.

  • 47-55: The way of checking the checkbox and hiding the content has been changed from a ternary operation to a function call checked() and hidden(). Ensure that these functions are correctly implemented and return the expected values.

  • 62-67: The way of selecting the option has been changed from a ternary operation to a function call selected(). Ensure that this function is correctly implemented and returns the expected values.

  • 77-83: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 103-109: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 123-129: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 143-149: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 162-168: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 180-186: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 199-205: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 218-224: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 237-243: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 256-262: The way of checking the checkbox has been changed from a ternary operation to a function call checked(). Ensure that this function is correctly implemented and returns the expected values.

  • 268-274: The way of checking the checkbox has been changed from a ternary operation to a function call checked(). Ensure that this function is correctly implemented and returns the expected values.

  • 280-283: The way of hiding the content has been changed from a ternary operation to a function call hidden(). Ensure that this function is correctly implemented and returns the expected values.

  • 290-296: The way of checking the checkbox has been changed from a ternary operation to a function call checked(). Ensure that this function is correctly implemented and returns the expected values.

  • 314-320: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 415-421: The way of selecting the option has been changed from a ternary operation to a function call selected(). Ensure that this function is correctly implemented and returns the expected values.

  • 430-436: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 450-456: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 512-518: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 532-538: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 552-558: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

  • 382-390: The way of checking the checkbox and hiding the content has been changed from a ternary operation to a function call checked() and hidden(). Ensure that these functions are correctly implemented and return the expected values.

  • 397-403: No changes detected in the code. The only difference is the additional whitespace at the end of the lines, which doesn't affect the functionality.

.github/workflows/check_release.yml Outdated Show resolved Hide resolved
.github/workflows/check_release.yml Outdated Show resolved Hide resolved
.github/workflows/check_release.yml Outdated Show resolved Hide resolved
.github/workflows/check_release.yml Outdated Show resolved Hide resolved
.github/workflows/check_release.yml Outdated Show resolved Hide resolved
sickchill/gui/slick/views/history.mako Outdated Show resolved Hide resolved
sickchill/gui/slick/views/history.mako Show resolved Hide resolved
sickchill/gui/slick/views/inc_addShowOptions.mako Outdated Show resolved Hide resolved
sickchill/gui/slick/js/imageSelector.js Outdated Show resolved Hide resolved
Gruntfile.js Show resolved Hide resolved
@miigotu
Copy link
Contributor Author

miigotu commented Oct 16, 2023

@coderabbitai help

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 11

Commits Files that changed from the base of the PR and between 96d4f19 and 8aedc04.
Files selected for processing (8)
  • .github/workflows/check_release.yml (1 hunks)
  • .github/workflows/pythonpackage.yml (1 hunks)
  • .github/workflows/release.yml (1 hunks)
  • .github/workflows/upgrade_dependencies.yml (1 hunks)
  • sickchill/gui/slick/js/ajaxNotifications.js (1 hunks)
  • sickchill/gui/slick/js/imageSelector.js (9 hunks)
  • sickchill/gui/slick/views/history.mako (4 hunks)
  • sickchill/gui/slick/views/inc_addShowOptions.mako (1 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/check_release.yml
  • .github/workflows/upgrade_dependencies.yml
Additional comments (Suppressed): 35
.github/workflows/release.yml (3)
  • 42-45: The Bump version step has been modified and the working directory is not set anymore. Also, the command to print the version using scmaintools script is removed. If this is intentional, ensure that the version bumping is handled correctly elsewhere in the codebase.

  • 32-32: The actions/checkout action version has been updated from v3 to v4. Ensure that this change is compatible with the rest of the workflow and doesn't introduce any breaking changes.

  • 37-37: The actions/setup-python action version remains at v4, but the check-latest: true option is removed in the new hunk. This option ensures that the latest version of Python is always used. If this is intentional, ensure that it doesn't affect the workflow.

sickchill/gui/slick/js/ajaxNotifications.js (4)
  • 1-33: The displayPNotify function has been updated to create a new PNotify notification with more options. The options are now set for each notification instead of modifying the PNotify.prototype.options object. This change provides more flexibility as it allows different options for different notifications. However, ensure that this change does not affect other parts of the code that rely on the old behavior.

  • 37-42: A new notificationDown object has been introduced. It defines the type, title, and message for a notification that is displayed when an error occurs during the AJAX request in the checkNotifications function. This is a good practice as it separates the error handling logic from the function.

  • 44-57: The checkNotifications function has been updated to handle failures of the AJAX request. If the request fails, it displays a notification using the notificationDown object and clears the timer. If the request is successful, it sets a new timer to call the function again after 3 seconds. This is a good improvement as it provides feedback to the user when an error occurs and prevents unnecessary requests when the server is down.

  • 59-59: The document ready event handler has been updated to use an arrow function. This is a minor change and does not affect the functionality.

sickchill/gui/slick/js/imageSelector.js (7)
  • 35-41: The showID variable is now defined once at the top of the script, instead of being fetched each time fetchImages() is called. This is a good performance improvement, as it reduces unnecessary DOM queries.

  • 47-53: The show parameter in the $.getJSON() call has been updated to use the showID variable instead of fetching the value from the DOM each time. This is a good performance improvement, as it reduces unnecessary DOM queries.

  • 70-81: The alt attribute of the image element has been updated to include the showID and imageType. This is a good improvement for accessibility, as it provides more context for screen readers.

  • 102-111: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [92-111]

The margin variable has been introduced to replace the hardcoded value of 80. This is a good improvement for maintainability, as it makes it easier to change the margin value in the future.

  • 146-152: The variable name $this has been changed to element. This is a good improvement for readability, as element is more descriptive than $this.

  • 170-179: The SIZES_BY_TYPE object has been renamed to imageTypeSizes. This is a good improvement for readability, as imageTypeSizes is more descriptive.

  • 188-198: The variable name $this has been changed to element. This is a good improvement for readability, as element is more descriptive than $this.

sickchill/gui/slick/views/history.mako (8)
  • 6-9: The import from sickchill.oldbeard import scdatetime, providers has been updated from from sickchill.oldbeard import sbdatetime, providers. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 25-31: The code for generating the options for the "Limit" dropdown has been refactored to use a loop, which is a more efficient and maintainable approach. This change is approved.

  • 38-44: The code for generating the options for the "Layout" dropdown has been refactored to use a loop, which is a more efficient and maintainable approach. This change is approved.

  • 78-81: The air_date and isoDate variables have been updated to use the scdatetime module instead of the sbdatetime module. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 101-106: The code for handling the provider image has been updated to handle a missing provider. This is a good addition for error handling.

  • 145-148: The air_date and isoDate variables have been updated to use the scdatetime module instead of the sbdatetime module. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 159-171: The code for handling the provider image has been updated to handle a missing provider. This is a good addition for error handling.

  • 187-195: The code for handling the subtitles image has been updated to handle a missing provider. This is a good addition for error handling.

.github/workflows/pythonpackage.yml (13)
  • 56-77: The Docker meta step has been updated to use version 5 of the docker/metadata-action. Ensure that the new version is compatible with the rest of the workflow and that the changes in the tags and labels fields are correct.

  • 81-90: The Python versions for testing have been updated to include 3.8, 3.9, 3.10, and 3.11. The operating systems for testing now include only Ubuntu. Ensure that these changes are intentional and that they do not exclude any necessary test cases.

  • 97-98: The Checkout step has been updated to use version 4 of the actions/checkout action. Ensure that the new version is compatible with the rest of the workflow.

  • 107-113: The Install Poetry step has been updated to use version 1.3.2 of the snok/install-poetry action and version 1.2.0 of Poetry. Ensure that these new versions are compatible with the rest of the workflow.

  • 115-118: The Set up Python step has been updated to use version 4 of the actions/setup-python action. Ensure that the new version is compatible with the rest of the workflow.

  • 121-124: The Set up Node step has been updated to use version 3 of the actions/setup-node action. Ensure that the new version is compatible with the rest of the workflow.

  • 163-167: The Set up Docker Buildx step has been updated to use version 3 of the docker/setup-buildx-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 169-182: The Test Docker Build step has been updated to use version 5 of the docker/build-push-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 197-207: The Set up Docker Buildx step in the Deploy job has been updated to use version 3 of the docker/setup-buildx-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 210-213: The Login to DockerHub step has been updated to use version 3 of the docker/login-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 215-220: The Login to GitHub Container Registry step has been updated to use version 3 of the docker/login-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 222-235: The Build and Push step has been updated to use version 5 of the docker/build-push-action action. Ensure that the new version is compatible with the rest of the workflow.

  • 237-249: The Snag wheels step has been updated to use version 5 of the docker/build-push-action action. Ensure that the new version is compatible with the rest of the workflow.

.github/workflows/release.yml Show resolved Hide resolved
sickchill/gui/slick/js/ajaxNotifications.js Show resolved Hide resolved
sickchill/gui/slick/js/imageSelector.js Outdated Show resolved Hide resolved
sickchill/gui/slick/views/inc_addShowOptions.mako Outdated Show resolved Hide resolved
.github/workflows/pythonpackage.yml Show resolved Hide resolved
.github/workflows/pythonpackage.yml Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 8aedc04 and 2ecfb44.
Files selected for processing (1)
  • sickchill/gui/slick/js/imageSelector.js (9 hunks)
Additional comments (Suppressed): 8
sickchill/gui/slick/js/imageSelector.js (8)
  • 1-5: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 36-36: The showID variable has been moved to a higher scope. This change is fine as long as the showID value does not need to be refreshed every time fetchImages() is called.

  • 48-48: The show parameter in the AJAX request has been updated to use the showID variable instead of fetching the value from the #showID element each time. This is a good change for performance, as long as the showID value does not change after the initial assignment.

  • 71-71: The alt attribute has been added to the image element. This is a good practice for accessibility and SEO.

  • 93-93: The margin variable has been introduced to replace the hardcoded value 80. This is a good practice for maintainability.

  • 147-147: The variable $this has been renamed to element. This is a good change for readability.

  • 171-176: The SIZES_BY_TYPE constant has been replaced with imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 189-192: The click event handler has been updated to use element instead of $(this). This is a good change for readability.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 3

Commits Files that changed from the base of the PR and between 2ecfb44 and 99f10ed.
Files selected for processing (4)
  • .github/workflows/pythonpackage.yml (1 hunks)
  • sickchill/gui/slick/js/core.js (49 hunks)
  • sickchill/gui/slick/js/imageSelector.js (9 hunks)
  • sickchill/gui/slick/views/inc_addShowOptions.mako (1 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/pythonpackage.yml
Additional comments (Suppressed): 20
sickchill/gui/slick/views/inc_addShowOptions.mako (2)
  • 30-30: The checkbox for "Use SC Metadata" is not preserving its state based on the default settings. This could lead to unexpected behavior for the user. However, as per the previous comment chain, the default state for this checkbox is always unchecked. Therefore, the current implementation is correct.

  • 70-70: The checkbox for "Season Folders" is preserving its state based on the default settings using the checked() function. As per the previous comment chain, checked() is a function that correctly handles the checkbox state based on a boolean input. Therefore, the current implementation is correct.

sickchill/gui/slick/js/imageSelector.js (8)
  • 1-5: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 33-38: The showID variable has been moved from the fetchImages function to the outer scope. This change is fine as long as the showID value does not need to be updated every time fetchImages is called.

  • 45-58: The show parameter in the AJAX request has been updated from $('#showID').attr('value') to showID. This change is fine as long as the showID value does not need to be updated every time fetchImages is called.

  • 70-79: The alt attribute has been added to the image element created in the createImage function. This is a good practice for accessibility and SEO.

  • 101-110: > Note: This review was outside of the patch, so it was mapped to the patch with the greatest overlap. Original lines [91-110]

The margin and minimumWidth variables have been moved from the dialog function to the outer scope. This change is fine as long as these values do not need to be updated every time $.fn.nImageSelector is called.

  • 145-151: The $this variable has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

  • 169-178: The SIZES_BY_TYPE constant has been replaced with imageTypeSizes in the loadFunction. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 187-196: The $this variable has been replaced with element in the click event handler. Ensure that all references to this variable in the codebase have been updated to reflect this change.

sickchill/gui/slick/js/core.js (10)
  • 14-27: The function configSuccess now has an optional parameter reload which defaults to true. If reload is true, the page will be reloaded after the function is executed. Ensure that all calls to this function throughout the codebase have been updated to match the new signature.

  • 32-37: The function metaToBool now returns meta when meta is undefined. This is a change from the previous behavior where it would return undefined directly. Ensure this change does not affect the logic where this function is used.

  • 123-126: The text in the shutdown confirmation dialog has been changed from 'Are you sure you want to shutdown SickChill?' to 'Are you sure you want to shut down SickChill?'. Ensure this change aligns with the intended user experience.

  • 235-241: The event listener for .bulkCheck has been changed from a click event to a change event. This change makes sense if you want the event to be triggered whenever the checkbox state changes, not just when it's clicked. Ensure this change aligns with the intended functionality.

  • 310-314: The click event handler for .viewIf has been changed to use this.checked instead of $(this).is(':checked'). Both are equivalent, but this.checked is more performant as it doesn't involve a jQuery function call.

  • 344-351: The loading message has been changed from 'Saving...' to ' Saving...'. Ensure this change aligns with the intended user experience.

  • 365-373: The error handling logic for the generate_new_apikey click event has been changed. Previously, if there was an error, the function would return early. Now, it continues to execute even if there's an error. Ensure this change does not introduce unintended behavior.

  • 689-692: New functionality has been added to handle a click event on #testMattermostBot. Ensure this new functionality has been thoroughly tested.

  • 1506-1539: The logic for handling the naming_anime_pattern input has been changed. Previously, the input's background color was set to #FFFFFF when the pattern was valid. Now, the input's background color is set to #FFFFFF regardless of whether the pattern is valid or not. Ensure this change does not affect the user experience.

  • 2104-2110: The checkbox in the service list is now checked by default. Ensure this change aligns with the intended functionality.

sickchill/gui/slick/views/inc_addShowOptions.mako Outdated Show resolved Hide resolved
sickchill/gui/slick/js/core.js Outdated Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 0

Commits Files that changed from the base of the PR and between 99f10ed and 647acc4.
Files selected for processing (1)
  • sickchill/gui/slick/js/imageSelector.js (8 hunks)
Additional comments (Suppressed): 7
sickchill/gui/slick/js/imageSelector.js (7)
  • 1-5: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 51-57: The condition entry.hasOwnProperty('thumb') && entry.hasOwnProperty('image') has been added. This is a good practice as it ensures that the properties 'thumb' and 'image' exist in the 'entry' object before trying to access them, thus preventing potential errors.

  • 70-75: The alt attribute has been added to the img element. This is a good practice for accessibility and SEO. However, ensure that the $('#showID').attr('value') and imageType values are always defined and sanitized to prevent potential XSS attacks.

  • 90-94: The variables margin and minimumWidth have been introduced to replace the hardcoded values 80 and 650 respectively. This is a good practice as it improves readability and maintainability of the code.

  • 144-150: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

  • 168-176: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 189-195: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

@SickChill SickChill deleted a comment from coderabbitai bot Oct 16, 2023
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 1

Commits Files that changed from the base of the PR and between 96d4f19 and 5d05c67.
Files selected for processing (9)
  • .github/workflows/check_release.yml (1 hunks)
  • .github/workflows/pythonpackage.yml (1 hunks)
  • .github/workflows/release.yml (1 hunks)
  • .github/workflows/upgrade_dependencies.yml (1 hunks)
  • sickchill/gui/slick/js/ajaxNotifications.js (1 hunks)
  • sickchill/gui/slick/js/core.js (49 hunks)
  • sickchill/gui/slick/js/imageSelector.js (8 hunks)
  • sickchill/gui/slick/views/history.mako (4 hunks)
  • sickchill/gui/slick/views/inc_addShowOptions.mako (1 hunks)
Files skipped from review due to trivial changes (2)
  • .github/workflows/pythonpackage.yml
  • sickchill/gui/slick/views/inc_addShowOptions.mako
Additional comments (Suppressed): 42
.github/workflows/check_release.yml (4)
  • 1-52: The workflow is well-structured and follows best practices for GitHub Actions. It's good to see the use of concurrency to avoid redundant runs and the use of environment variables to pass data between steps. However, please ensure that the new command-line argument --test-name is implemented and tested in the sickchill application. Also, verify that the default test string "Show.Name.S01E01.HDTV.h265-SICKCHILL" is appropriate for most cases.

  • 28-28: The actions/checkout@v3 action is being used, but at the time of my knowledge cutoff in September 2021, the latest version was v2. Please verify that v3 is now available and stable.

  • 40-40: The actions/setup-python@v4 action is being used, but at the time of my knowledge cutoff in September 2021, the latest version was v2. Please verify that v4 is now available and stable.

  • 42-42: Python 3.11 is being used. As of my knowledge cutoff in September 2021, the latest stable version was Python 3.9. Please verify that Python 3.11 is now stable and compatible with the sickchill application and its dependencies.

.github/workflows/upgrade_dependencies.yml (5)
  • 13-16: The strategy.matrix.os has been changed from a fixed version ubuntu-22.04 to ubuntu-latest. This could potentially introduce breaking changes if future versions of Ubuntu are not compatible with the workflow. Please verify that the workflow is compatible with the latest Ubuntu version.

  • 17-17: The runs-on value has been changed to use the matrix OS value. This is a good change as it allows for easier updates to the OS version in the future.

  • 21-21: The actions/checkout action version has been updated from v3 to v4. Please verify that the workflow is compatible with the new version of the action.

  • 34-37: The Python version has been updated from 3.9 to 3.11. Please verify that the workflow and the application are compatible with the new Python version.

  • 49-52: The stefanzweifel/git-auto-commit-action action version has been updated from v4 to v5. Please verify that the workflow is compatible with the new version of the action.

.github/workflows/release.yml (4)
  • 21-21: The condition github.actor == 'miigotu' restricts the workflow to run only when the actor is 'miigotu'. Ensure this is the intended behavior and that it doesn't limit necessary workflow runs.

  • 32-32: The actions/checkout action version has been updated from v3 to v4. Ensure that this version change doesn't introduce any breaking changes.

  • 34-35: The submodules: "recursive" option has been removed from the actions/checkout action. If the repository has submodules, they won't be checked out. Verify if this is the intended behavior.

  • 47-49: The Publish step remains unchanged, which is good as it ensures the package is still published to PyPI using the stored secrets.

sickchill/gui/slick/js/imageSelector.js (8)
  • 1-5: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 51-57: The hasOwnProperty method has been added to check if the entry object has thumb and image properties. This is a good practice to avoid potential errors when accessing properties of an object.

  • 70-78: The alt attribute has been added to the img element, which improves accessibility. However, the concatenation of the alt attribute value could be prone to XSS attacks if the values of $('#showID').attr('value') and imageType are not properly sanitized. Since the instructions specify that arguments to internal function calls are pre-sanitized, this should not be an issue, but it's worth noting.

  • 90-96: The variables margin and minimumWidth have been added to improve readability and maintainability of the code. This is a good practice as it makes the code easier to understand and modify in the future.

  • 100-109: The variables margin and minimumWidth are now being used in the dialog configuration. This improves readability and maintainability of the code.

  • 144-150: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

  • 168-176: The constant SIZES_BY_TYPE has been renamed to imageTypeSizes. Ensure that all references to this constant in the codebase have been updated to reflect this change.

  • 186-195: The variable $this has been renamed to element. Ensure that all references to this variable in the codebase have been updated to reflect this change.

sickchill/gui/slick/views/history.mako (8)
  • 6-9: The import from sickchill.oldbeard import scdatetime, providers has been updated from from sickchill.oldbeard import sbdatetime, providers. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 25-31: The code for generating the options for the "Limit" dropdown has been refactored to use a loop, which is a more efficient and maintainable approach. This is a good improvement.

  • 38-44: The code for generating the options for the "Layout" dropdown has been refactored to use a loop, which is a more efficient and maintainable approach. This is a good improvement.

  • 79-81: The scdatetime module is used here instead of the old sbdatetime module. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 145-148: The scdatetime module is used here instead of the old sbdatetime module. Ensure that the scdatetime module is correctly implemented and used throughout the codebase.

  • 159-171: The code for generating the provider icons has been refactored to use a loop, which is a more efficient and maintainable approach. This is a good improvement.

  • 173-183: The code for generating the provider names has been refactored to use a loop, which is a more efficient and maintainable approach. This is a good improvement.

  • 185-196: The code for generating the subtitles icons has been refactored to use a loop, which is a more efficient and maintainable approach. This is a good improvement.

sickchill/gui/slick/js/ajaxNotifications.js (4)
  • 1-35: The displayPNotify function has been updated to include more options for the PNotify notification. The options are now defined within the function call instead of modifying the PNotify.prototype.options object. This is a good practice as it avoids modifying the prototype and potentially affecting other parts of the code that use PNotify. The function now also calls PNotify.desktop.permission() before creating a notification, which is necessary for desktop notifications. The destroy option has been added, which will remove the notification from the DOM after it disappears. This can help to improve performance if there are many notifications. The styling has been changed from 'bootstrap3' to 'fontawesome', which will affect the appearance of the notifications. Ensure that this change is intentional and that the FontAwesome library is included in the project.

  • 37-42: A new constant notificationDown has been defined, which contains the details for an 'offline' notification. This is a good practice as it avoids repeating these details in multiple places.

  • 44-57: The checkNotifications function has been updated to handle failures in the AJAX request. If the request fails, it displays the 'offline' notification and stops checking for new notifications. This is a good practice as it provides feedback to the user when there is a problem. However, consider adding a way to resume checking for notifications once the server is back online.

 function checkNotifications() {
     $.getJSON(scRoot + '/ui/get_messages', data => {
         $.each(data, (name, data) => {
             displayPNotify(data.type, data.title, data.message, data.hash);
         });
    })
        .fail(() => {
            displayPNotify(notificationDown.type, notificationDown.title, notificationDown.message, 'offline-notice');
            clearTimeout(notificationTimer);
            notificationTimer = setTimeout(checkNotifications, 30000); // Check again after 30 seconds
        })
        .done(() => {
            notificationTimer = setTimeout(checkNotifications, 3000);
        });
 }
  • 59-59: The document ready event handler has been removed from this hunk. Ensure that it is included elsewhere in the code, as it is necessary to start checking for notifications when the document is ready.
sickchill/gui/slick/js/core.js (9)
  • 12-21: The function configSuccess has been modified to include an optional reload parameter. If reload is true, the page will be reloaded. Ensure that all calls to configSuccess throughout the codebase have been updated to match the new signature.
- function configSuccess() {
+ function configSuccess(reload = true) {
  • 14-21: The function configSuccess has been modified to include an optional reload parameter. If reload is true, the page will be reloaded. Ensure that all calls to configSuccess throughout the codebase have been updated to match the new signature.
- function configSuccess() {
+ function configSuccess(reload = true) {
  • 123-126: The text in the shutdown confirmation dialog has been slightly modified. Ensure that this change aligns with the intended user experience.
- text: 'Are you sure you want to shutdown SickChill?',
+ text: 'Are you sure you want to shut down SickChill?',
  • 196-202: The jQuery prop method is used instead of attr to get the ariaExpanded and href properties of the element. This is a more appropriate method to use for properties that have true or false values.
- if ($this.attr('aria-expanded') === 'true') {
-     window.location.href = $this.attr('href');
+ if (element.prop('ariaExpanded') === 'true') {
+     window.location.href = element.prop('href');
  • 235-241: The event handler for the .bulkCheck change event has been modified. The new code directly accesses the checked property of the event target, which is more efficient than the previous jQuery-based approach.
- const element = $(event.currentTarget);
- const whichBulkCheck = element.attr('id');
- $('.' + whichBulkCheck + ':visible').each(function () {
-     $(this).prop('checked', element.is(':checked'));
- });
+ const checkbox = event.currentTarget;
+ const childrenClass = '.' + checkbox.id + ':visible';
+ $(childrenClass).each(function () {
+     this.checked = checkbox.checked;
+ });
  • 1272-1276: The event handler for the #use_plex_server click event has been modified. The new code directly accesses the checked property of the event target, which is more efficient than the previous jQuery-based approach.
- if ($(this).is(':checked')) {
+ if (this.checked) {
  • 1287-1290: The typewatch function has been slightly modified. The timer variable is now initialized with let timer; instead of let timer = 0;. This change should not affect the functionality of the code, as clearTimeout can handle undefined values.
- let timer = 0;
+ let timer;
  • 1506-1539: The namingAnimePatternInput jQuery object has been replaced with direct DOM access. This is a more efficient approach, but ensure that all instances of namingAnimePatternInput in the codebase have been updated to reflect this change.
- const $namingAnimePatternInput = $('#naming_anime_pattern');
+ const namingAnimePatternInput = $('#naming_anime_pattern');
  • 1718-1735: The configArray is now built using multiple push calls instead of a single call with multiple arguments. This change improves readability and maintainability.
- configArray.push(showMetadata ? '1' : '0', episodeMetadata ? '1' : '0', fanart ? '1' : '0', poster ? '1' : '0', banner ? '1' : '0', episodeThumbnails ? '1' : '0', seasonPosters ? '1' : '0', seasonBanners ? '1' : '0', seasonAllPoster ? '1' : '0', seasonAllBanner ? '1' : '0');
+ configArray.push(
+     showMetadata ? '1' : '0',
+     episodeMetadata ? '1' : '0',
+     fanart ? '1' : '0',
+     poster ? '1' : '0',
+     banner ? '1' : '0',
+     episodeThumbnails ? '1' : '0',
+     seasonPosters ? '1' : '0',
+     seasonBanners ? '1' : '0',
+     seasonAllPoster ? '1' : '0',
+     seasonAllBanner ? '1' : '0',
+ );

.github/workflows/release.yml Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Review Status

Actionable comments generated: 1

Commits Files that changed from the base of the PR and between 5d05c67 and afbd90c.
Files selected for processing (4)
  • .github/workflows/check_release.yml (1 hunks)
  • .github/workflows/pythonpackage.yml (1 hunks)
  • .github/workflows/release.yml (1 hunks)
  • .github/workflows/upgrade_dependencies.yml (3 hunks)
Files skipped from review due to trivial changes (1)
  • .github/workflows/upgrade_dependencies.yml
Additional comments (Suppressed): 21
.github/workflows/check_release.yml (1)
  • 1-52: The workflow is well-structured and follows best practices for GitHub Actions. It checks out the code, sets up the environment, installs dependencies, and runs the test. However, please ensure that the sickchill --test-name command is correctly implemented and handles the TEST_STRING environment variable properly. Also, verify that the TEST_STRING default value is appropriate for most test cases.
.github/workflows/release.yml (4)
  • 33-35: The actions/checkout action has been updated from version 3 to version 4. Ensure that this change does not introduce any breaking changes or unexpected behavior.

  • 37-41: The actions/setup-python action has been updated from version 3 to version 4. Ensure that this change does not introduce any breaking changes or unexpected behavior.

  • 43-47: The Bump version step has been modified. The previous version was running a script from the sickchill/contrib/scmaintools directory, but the new version does not specify a working directory and does not run the script. If the script is still necessary, consider adding it back.

-          run: |
-            poetry install
-           # Set release version to todays date
-           # debchange with gbd-change with new version
+          working-directory: sickchill/contrib/scmaintools
+          run: |
+            poetry install
+            python scmaintools -n
  • 33-36: The submodules: "recursive" option is missing in the new hunk. This option is used to recursively fetch all submodules for the repository. If the project relies on submodules, this could lead to missing dependencies or broken code. However, as per the previous comment chain, it was clarified that submodules are no longer in use, so this change is acceptable.
.github/workflows/pythonpackage.yml (16)
  • 56-77: The Docker metadata action version has been updated from v4 to v5. Ensure that all the parameters and their values are compatible with the new version.

  • 82-90: The Python versions for testing have been updated and the OS matrix has been expanded to include Windows and MacOS. Ensure that the project is compatible with these environments and that all necessary dependencies are available.

  • 97-98: The version of the checkout action has been updated from v3 to v4. Ensure that this change does not affect the workflow.

  • 103-105: A new step has been added to lint shell scripts. This is a good practice to catch potential issues in shell scripts.

  • 107-114: The poetry installation and Python setup steps have been updated. Ensure that these changes are compatible with the project's requirements.

  • 115-119: The version of the setup-python action has been updated from v4 to v5. Ensure that this change does not affect the workflow.

  • 123-128: Node setup and yarn installation steps have been added. Ensure that these steps are necessary for the project and that all dependencies are available.

  • 144-147: Linting and testing steps for JavaScript have been added. This is a good practice to catch potential issues in JavaScript code.

  • 152-152: The condition for running the coverage step has been updated to exclude dependabot. This is a good practice to avoid unnecessary runs of the coverage step.

  • 164-168: The versions of the setup-qemu-action and setup-buildx-action have been updated from v2 to v3. Ensure that these changes do not affect the workflow.

  • 170-182: The version of the build-push-action has been updated from v4 to v5. Ensure that all the parameters and their values are compatible with the new version.

  • 188-190: The checks for the Docker container have been updated. Ensure that these checks are accurate and sufficient for the project's requirements.

  • 211-221: The versions of the login-action have been updated from v2 to v3. Ensure that these changes do not affect the workflow.

  • 224-236: The version of the build-push-action has been updated from v4 to v5. Ensure that all the parameters and their values are compatible with the new version.

  • 239-250: A new step has been added to build and push Docker images. This is a good practice for automating the deployment process.

  • 255-269: The paths for uploading wheels have been updated. Ensure that these paths are correct and that the necessary permissions are in place.

@@ -18,40 +18,33 @@ concurrency:
jobs:
Release:
runs-on: ubuntu-22.04
if: github.event.workflow_run.conclusion == 'success' && github.actor == 'miigotu'
if: github.event.workflow_run.conclusion == "success" && github.actor == "miigotu"
Copy link
Contributor

Choose a reason for hiding this comment

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

The indentation of the if condition is incorrect. It should be aligned with runs-on.

-    if: github.event.workflow_run.conclusion == "success" && github.actor == "miigotu"
+   if: github.event.workflow_run.conclusion == "success" && github.actor == "miigotu"

@miigotu miigotu closed this Oct 16, 2023
@miigotu miigotu reopened this Oct 16, 2023
@miigotu miigotu closed this Oct 16, 2023
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.

5 participants