Fix eslint and styleint issues

Created on 3 March 2024, 10 months ago
Updated 2 June 2024, 7 months ago

Problem/Motivation

When you go to https://git.drupalcode.org/project/feeds/-/pipelines and then on "stages", choose eslint or styleint, you will see a list of coding issues.
At the time of writing you can find these on https://git.drupalcode.org/project/feeds/-/pipelines/109598

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡³πŸ‡±Netherlands megachriz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @megachriz
  • First commit to issue fork.
  • Merge request !163Fix ESLint and Styleint β†’ (Merged) created by franz
  • πŸ‡¨πŸ‡¦Canada franz MontrΓ©al

    Eslint is passing now.

  • Status changed to Needs review 8 months ago
  • πŸ‡¨πŸ‡¦Canada franz MontrΓ©al

    Passing both now.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 8 months ago
    716 pass
  • Status changed to Needs work 8 months ago
  • πŸ‡³πŸ‡±Netherlands megachriz

    Thanks for helping! Unfortunately, the JS in modules/log/js/feed_type_settings.js is no longer doing what it should do.

    In the vertical tab 'Log settings' on a feed type page it should tell the user whether or not logging is enabled for the feed type:

    After the changes from this issue, the summary on the vertical tab 'Log settings' always says that logging is disabled, even if it is enabled.

  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 8 months ago
    717 pass
  • Status changed to Needs review 8 months ago
  • πŸ‡¨πŸ‡¦Canada franz MontrΓ©al

    I fixed that portion of code that was "vanillaed", it seems to be working now.

  • πŸ‡―πŸ‡΅Japan ptmkenny

    I just tested this and "Logging disabled" and "Logging enabled" are reflected properly.

    However, I noticed an unusual behavior that I would like to confirm.

    With logging enabled, when both "Log message" and "Log item" are checked, if you uncheck "Log message" first, then "Log item" is disabled and you cannot uncheck it.

    However, if you uncheck "Log item" first, then you can uncheck "Log message" as well.

    This is inconsistent and does not make sense to me.

    However, this behavior seems to be the same on the 3.x branch of the module, so it may be a separate issue.

    Not marking RTBC because of the above concern.

  • Pipeline finished with Skipped
    7 months ago
    #176316
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 7 months ago
    717 pass
  • Status changed to Fixed 7 months ago
  • πŸ‡³πŸ‡±Netherlands megachriz

    @ptmkenny

    With logging enabled, when both "Log message" and "Log item" are checked, if you uncheck "Log message" first, then "Log item" is disabled and you cannot uncheck it.

    But after you save the settings, "Log item" will be unchecked. The idea is that if you disable logging for a certain operation, you cannot log items for it. So that's why the "Log item" checkbox will become disabled.
    I do see that there's an issue that when both checkboxes are not checked on page load, when you enable logging for a certain operation, the "Log item" checkbox remains disabled. But when unchecking and checking logging for an operation, you can control "Log item" again.

    I think changing the form for the log settings is something that would better be addressed in a follow-up issue, but thanks for testing @ptmkenny :)

    I merged the code.

  • πŸ‡―πŸ‡΅Japan ptmkenny

    @MegaChriz Thanks for the explanation!

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024