You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2022/01/20 20:25:51 UTC

[GitHub] [nifi-fds] scottyaslan opened a new pull request #60: [NIFI-9554] update node/npm versions and frontend deps

scottyaslan opened a new pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60


   To test:
   
   `npm run clean:install` and verify tests pass. Then `cd target && npm start` and verify the available UX components are available and that the styles match nifi-fds v0.2.0.
   
   Thank you for submitting a contribution to Apache NiFi Flow Design System.
   
   In order to streamline the review of the contribution we ask you
   to ensure the following steps have been taken:
   
   ### For all changes:
   - [ ] Is there a JIRA ticket associated with this PR? Is it referenced
        in the commit message?
   
   - [ ] Does your PR title start with either NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.
   
   - [ ] Has your PR been rebased against the latest commit within the target branch (typically master)?
   
   - [ ] Is your initial contribution a single, squashed commit?
   
   ### For code changes:
   - [ ] Have you written or updated unit tests to verify your changes?
   - [ ] Have you ensured that a full build and that the full suite of unit tests is executed via npm run clean:install at the root nifi-fds folder?
   - [ ] Have you written or updated the Apache NiFi Flow Design System demo application to demonstrate any new functionality, provide examples of usage, and to verify your changes via npm start at the nifi-fds/target folder?
   - [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
   - [ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-fds?
   - [ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-fds?
   
   ### For documentation related changes:
   - [ ] Have you ensured that format looks appropriate for the output in which it is rendered?
   
   ### Note:
   Please ensure that once the PR is submitted, you check travis-ci for build issues and submit an update to your PR as soon as possible.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [nifi-fds] mcgilman merged pull request #60: [NIFI-9554] update node/npm versions and frontend deps

Posted by GitBox <gi...@apache.org>.
mcgilman merged pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [nifi-fds] scottyaslan commented on a change in pull request #60: [NIFI-9554] update node/npm versions and frontend deps

Posted by GitBox <gi...@apache.org>.
scottyaslan commented on a change in pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60#discussion_r789185984



##########
File path: platform/core/snackbars/fds-snackbars.module.js
##########
@@ -38,6 +32,10 @@ import {
 } from './services/snackbar.service';
 
 import { FdsCoasterComponent } from './coaster/coaster.component';
+import {MatSnackBarModule} from "@angular/material/snack-bar";

Review comment:
       ty... not sure why the linter didn't complain...




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [nifi-fds] rfellows commented on a change in pull request #60: [NIFI-9554] update node/npm versions and frontend deps

Posted by GitBox <gi...@apache.org>.
rfellows commented on a change in pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60#discussion_r789904029



##########
File path: .eslintrc.js
##########
@@ -15,77 +15,110 @@
  * limitations under the License.
  */
 
+const OFF = 0; // turn the rule off
+const WARNING = 1; // turn the rule on as a warning (doesn’t affect exit code)
+const ERROR = 2; // turn the rule on as an error (exit code is 1 when triggered)
+
 module.exports = {
-    "root": true,
-    "extends": "eslint-config-airbnb",
-    "env": {
-        "browser": true,
-        "es6": true,
-        "jasmine": true,
-        "jquery": true
+    'extends': 'eslint-config-airbnb',
+    'env': {
+        'browser': true,
+        'es6': true,
+        'jasmine': true
     },
-    "parserOptions": {
-        "ecmaVersion": 2017,
-        "sourceType": "module"
+    'parserOptions': {
+        'ecmaVersion': 2017,
+        'sourceType': 'module'
     },
-    "parser": "@typescript-eslint/parser",
-    "plugins": ["@typescript-eslint"],
+    'parser': '@typescript-eslint/parser',
+    'plugins': [
+        'jasmine',
+        '@typescript-eslint'
+    ],
     overrides: [
         {
             // Legacy Javascript files
             files: ['*.js'],
             rules: {
-                "dot-notation": 0,
-                "prefer-arrow-callback": 0,
-                "no-var": 0,
-                "no-redeclare": 0,
-                "no-shadow": 0,
-                "quote-props": 0,
-                "object-shorthand": 0,
-                "vars-on-top": 0,
-                "no-param-reassign": 0,
-                "block-scoped-var": 0,
-                "prefer-destructuring": 0,
-                "prefer-template": 0,
-                "consistent-return": 0,
-                "no-restricted-properties": 0,
-                "no-use-before-define": 0,
-                "object-curly-spacing": 0,
-                "newline-per-chained-call": 0,
-                "no-bitwise": 0,
-                "no-nested-ternary": 0,
-                "no-useless-escape": 0,
-                "no-prototype-builtins": 0,
+                'dot-notation': OFF,
+                'prefer-arrow-callback': OFF,
+                'no-var': OFF,
+                'no-redeclare': OFF,
+                'no-shadow': OFF,
+                'quote-props': OFF,
+                'object-shorthand': OFF,
+                'vars-on-top': OFF,
+                'no-param-reassign': OFF,
+                'block-scoped-var': OFF,
+                'prefer-destructuring': OFF,
+                'prefer-template': OFF,
+                'consistent-return': OFF,
+                'no-restricted-properties': OFF,
+                'no-use-before-define': OFF,
+                'object-curly-spacing': OFF,
+                'newline-per-chained-call': OFF,
+                'no-bitwise': OFF,
+                'no-nested-ternary': OFF,
+                'no-useless-escape': OFF,
+                'no-prototype-builtins': OFF,
+                'arrow-body-style': OFF,
+                'no-else-return': OFF,
             }
         },
         {
             // Typescript files
             files: ['*.ts'],
             rules: {
-                '@typescript-eslint/no-unused-vars': [2, { args: "none" }]
+                'dot-notation': OFF,
+                'no-shadow': OFF,
+                'no-use-before-define': OFF,
+                '@typescript-eslint/no-unused-vars': [ERROR, { args: 'none' }]
+            }
+        },
+        {
+            // Test files
+            files: ['*.spec.ts'],
+            rules: {
+                'max-classes-per-file': OFF
             }
         }
     ],
-    "rules": {
+    'rules': {
         // Customize for all files
-        "no-unused-vars": ["error", { "args": "none" }],
-        "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
-        "indent": ["error", 4],
+        'no-unused-vars': [ERROR, { 'vars': 'all' }],
+        'lines-between-class-members': [ERROR, 'always', { 'exceptAfterSingleLine': true }],
+        'indent': [ERROR, 4, { 'SwitchCase': 1 }],
+        'jasmine/no-focused-tests': ERROR,
+        'class-methods-use-this': OFF,
+        'prefer-destructuring': [ERROR, {
+            'VariableDeclarator': {
+                'array': false,
+                'object': true
+            },
+            'AssignmentExpression': {
+                'array': false,
+                'object': false
+            }
+        }],
 
         // Disable for all files
-        "max-len": 0,
-        "func-names": 0,
-        "spaced-comment": 0,
-        "comma-dangle": 0,
-        "import/extensions": 0,
-        "import/no-unresolved": 0,
-        "import/no-extraneous-dependencies": 0,
-        "no-plusplus": 0,
-        "react/no-this-in-sfc": 0,
-        "prefer-promise-reject-errors": 0,
-        "object-curly-newline": 0,
-        "no-restricted-globals": 0,
-        "import/prefer-default-export": 0,
-        "linebreak-style": 0
-    }
+        'max-len': OFF,
+        'func-names': OFF,
+        'spaced-comment': OFF,
+        'comma-dangle': OFF,
+        'import/extensions': OFF,
+        'import/no-unresolved': OFF,
+        'import/no-extraneous-dependencies': OFF,
+        'no-plusplus': OFF,
+        'react/no-this-in-sfc': OFF,
+        'prefer-promise-reject-errors': OFF,
+        'object-curly-newline': OFF,
+        'no-restricted-globals': OFF,
+        'import/prefer-default-export': OFF,
+        'linebreak-style': OFF,
+        'quotes': [ERROR, 'single', { 'allowTemplateLiterals': true }],
+        'no-useless-constructor': OFF,
+        'no-empty-function': OFF,
+        'no-underscore-dangle': ['error', { 'allowAfterThis': true }]

Review comment:
       shouldn't this be:
   ```suggestion
           'no-underscore-dangle': [ERROR, { 'allowAfterThis': true }]
   ```

##########
File path: platform/core/common/fds.animations.js
##########
@@ -31,88 +31,185 @@ FdsAnimations.prototype = {
     /**
      * Fade animation
      */
-    fadeAnimation: trigger('routeAnimation', [
-        state('*',
-            style({
-                opacity: 1
-            })), transition(':enter', [
-            style({
-                opacity: 0
-            }),
-            animate('0.5s ease-in')
-        ]), transition(':leave', [
-            animate('0.5s ease-out', style({
-                opacity: 0
-            }))
-        ])
-    ]),
+    fadeAnimation: trigger(
+        'routeAnimation',
+        [
+            state(
+                '*',
+                style(
+                    {
+                        opacity: 1
+                    }
+                )
+            ),
+            transition(
+                ':enter',
+                [
+                    style(
+                        {
+                            opacity: 0
+                        }
+                    ),
+                    animate('0.5s ease-in')
+                ]
+            ),
+            transition(
+                ':leave',
+                [
+                    animate(
+                        '0.5s ease-out',
+                        style(
+                            {
+                                opacity: 0
+                            }
+                        )
+                    )
+                ]
+            )
+        ]
+    ),

Review comment:
       Was this changed to satisfy the formatting rules? Looked better before IMO :(
   




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [nifi-fds] sardell commented on a change in pull request #60: [NIFI-9554] update node/npm versions and frontend deps

Posted by GitBox <gi...@apache.org>.
sardell commented on a change in pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60#discussion_r789129527



##########
File path: platform/core/snackbars/fds-snackbars.module.js
##########
@@ -38,6 +32,10 @@ import {
 } from './services/snackbar.service';
 
 import { FdsCoasterComponent } from './coaster/coaster.component';
+import {MatSnackBarModule} from "@angular/material/snack-bar";

Review comment:
       This is nit picky, but I think the imports statements should be formatted like the other existing statements with a space between the curly brackets and the module name.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [nifi-fds] scottyaslan commented on a change in pull request #60: [NIFI-9554] update node/npm versions and frontend deps

Posted by GitBox <gi...@apache.org>.
scottyaslan commented on a change in pull request #60:
URL: https://github.com/apache/nifi-fds/pull/60#discussion_r789896813



##########
File path: platform/core/snackbars/fds-snackbars.module.js
##########
@@ -38,6 +32,10 @@ import {
 } from './services/snackbar.service';
 
 import { FdsCoasterComponent } from './coaster/coaster.component';
+import {MatSnackBarModule} from "@angular/material/snack-bar";

Review comment:
       ok I updated the linter and addressed the lint errors it found. plz confirm 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@nifi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org