Giter Site home page Giter Site logo

fabric8-recommender's Issues

Convert to LESS and add Stylelint

Convert all .scss files to .less and add Stylelint to check code quality. File structure, configurations and rulesets will be updated to match fabric8-ui.

"BVT" against every PR should be enabled

"BVT" against every PR should be enabled

Presently , recommender doesn't have Build verification tests running against PR's.

  • Unit tests
  • smoke tests
    should be enabled before merging the code into the master !

Implement recommender feature as per mock.

Change the current recommender feature's look to make it in sync with the mock.

  1. Handle Actions for the recommendations - Done
  2. Handle Single Work Item addition scenario - Done
  3. Handle Multiple work item addition scenario - Done
  4. Handle styling

Wrong number in analyzed_dependencies_count?

An example how the stack analyses v2 output look like - there's and array with one analyzed dependency, but the attribute analyzed_dependencies_count says it is zero:

                "analyzed_dependencies": [
                    {
                        "version": "6.7",
                        "package": "click"
                    }
                ],
                "analyzed_dependencies_count": 0,

Update Tests to Run on MacOS

Issue:
When trying to run npm run test on MacOS, they console hangs and never gets passed the 'Starting Webdriver and Selenium' step. In order to fix this, the user needs to manually change the run_functional_tests.sh file to use "nc" instead of "ncat".

Request:
Update run_functional_tests.sh to use "nc" rather than "ncat". This will allow the tests to run on both Linux and MacOS.

fabric8-stack-analysis-ui cannot locate c3

While converting fabric8-ui to use Less, @mindreeper2420 and I encountered a new issue with the webpack build. That is, the build fails to compile while complaining that fabric8-stack-analysis-ui cannot locate c3.

ERROR in ./~/fabric8-stack-analysis-ui/src/app/stack/overview/chart-component.js
Module not found: Error: Can't resolve 'c3' in '/Users/dlabrecq/Work/alm/repos/fabric8-ui/node_modules/fabric8-stack-analysis-ui/src/app/stack/overview'

I don't see c3 as a dependency in package.json, but chart-component.js appears to require it.

import * as c3 from 'c3'; <<< Line 7 of chart-component.js

That said, the work around is to modify webpack to use Patternfly's c3 dependency, like so. However, this is something we should resolve in the fabric8-stack-analysis-ui package instead.

resolve: {
...
      modules: [helpers.root('src'), helpers.root('node_modules'),

        // Todo: fabric8-stack-analysis-ui/src/app/stack/overview/chart-component.js cannot locate c3
        helpers.root("node_modules/patternfly/node_modules/c3"),
        helpers.root("node_modules/patternfly/node_modules/d3")
      ]

Note the error is reproducible with the Less conversion branch.

https://github.com/mindreeper2420/fabric8-ui/tree/less-conversion

Semantic Release

Set up and configure Semantic Release so that each commit with the correct syntax releases a new version on npmjs.

Stack Report Dropdown: Display only the meaningful portion of the manifest file path

In stack report, a dropdown has been introduced that enables users to change reports for different manifest files in a multi-module application. Currently, that dropdown displays the full build path of manifest files that includes unnecessary reference of a temporary build location.

See https://www.screencast.com/t/DTyNN6zia

Please display only the meaningful portion from the application's context in the dropdown. Also, please make sure that this change is verified by the UX team.

CC: @jyasveer

Bug: Build report doesn't show the declared licenses

From @luebken on June 7, 2017 14:5

In the stack report the dependencies should report the licenses declared by the project.

Associated test-cases:

  • Test-1704E469-02

    • io.vertx/vertx-core/3.4.1 should report Apache 2.0, EPL 1.0
  • Test-1704E469-03

    • io.vertx/vertx-web/3.4.1 should report Apache 2.0, EPL 1.0
  • Test-1704E469-04

    • org.springframework/spring-core/4.3.3.RELEASE should report Apache 2.0

Associated experience:

  • Experience 1704E469 [P0] โ€“ License information

Copied from original issue: openshiftio/openshift.io#205

Update Login

The login client needs to be configured to work when imported into fabric8-ui. Possibly in standalone mode too.

Typo in stack analysis v2 result JSON

outlier_prbability should be outlier_probability:

           "recommendations": {
                "companion": [],
                "usage_outliers": [
                    {
                        "package_name": "wheel",
                        "outlier_prbability": 0.71875
                    },
                    {
                        "package_name": "setuptools",
                        "outlier_prbability": 0.640625
                    }
                ],
                "alternate": []

Typo in work item screen after creating work items from recommender

Steps to reproduce:

  1. Login to openshift
  2. Create a new space
  3. Use the starter application and create a starter project (say Vert.x basic)
  4. Go to pipelines tab
  5. Trigger a pipeline build for the one that you have created.
  6. Stack analysis report link will show up (Else log an issue in this repo for the same)
  7. Click on stack analysis link (A modal will show up)
  8. Click on create work item if any
  9. Go to the view work item link
  10. Check the typo in the description (It has to be potential version upgrade instead of 'potentially')

screen shot 2017-06-09 at 11 36 52 am

Bug: No /stack-analysis results for known stack

From @luebken on June 29, 2017 11:33

I started a stack analysis for https://github.com/openshiftio-vertx-boosters/vertx-http-booster

The results seem broken:


curl -sH "Authorization: Bearer $OSIO_TOKEN" $API/stack-analyses/74703fe130004ce2aef674c4dd0dcb48
{
    "finished_at": "2017-06-29T10:59:10.516466",
    "recommendation": {
        "recommendations": {
            "component_level": null,
            "similar_stacks": []
        }
    },
    "request_id": "74703fe130004ce2aef674c4dd0dcb48",
    "result": [
        {
            "_audit": {
                "ended_at": "2017-06-29T10:59:10.516466",
                "started_at": "2017-06-29T10:59:10.494493",
                "version": "v1"
            },
            "_release": "None:None:None"
        }
    ],
    "schema": {
        "name": "stack_analyses",
        "url": "http://recommender.api.openshift.io/api/v1/schemas/api/stack_analyses/2-1-4/",
        "version": "2-1-4"
    },
    "started_at": "2017-06-29T10:59:10.494493"
}

Copied from original issue: openshiftio/openshift.io#302

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.