GithubHelp home page GithubHelp logo

Comments (7)

sonylomo avatar sonylomo commented on September 13, 2024

Can I work on this one @jennydaman?

from chris_store_ui.

sonylomo avatar sonylomo commented on September 13, 2024

conflict
@jennydaman, I'm trying to resolve conflicts but my code isn't passing these 2 tests. I didn't change any code related to them. I've checking what's wrong and updated my branch to be inline with the master before fixing plugin sort.

I've also checked if the "mark as favorite" functionality on plugins store website is working but it's not - was it working before?

from chris_store_ui.

jennydaman avatar jennydaman commented on September 13, 2024

Try these commands:

git remote add upstream [email protected]:FNNDSC/ChRIS_store_ui.git
git fetch upstream
git diff upstream/master

I found the bug:

diff --git a/src/components/Plugins/Plugins.js b/src/components/Plugins/Plugins.js
index a157f49..e5e2b45 100755
--- a/src/components/Plugins/Plugins.js
+++ b/src/components/Plugins/Plugins.js
@@ -113,20 +114,23 @@ export class Plugins extends Component {
     }
   }

-  fetchPlugins = () => {
-    const params = new URLSearchParams(window.location.search)
-    const name = params.get('q') //get value searched from the URL
+  fetchPlugins() {
+    const params = new URLSearchParams(window.location.search);
+    const name = params.get("q"); //get value searched from the URL
+
     const searchParams = {
       limit: 20,
       offset: 0,
       name_title_category:name,
-    };
+    }
+

Notice the declaration of fetchPlugins was changed. This is an oddity with syntax. If a function is defined as fetchPlugins() {, this will be undefined unless you manually "bind" it.

from chris_store_ui.

sonylomo avatar sonylomo commented on September 13, 2024

Notice the declaration of fetchPlugins was changed. This is an oddity with syntax. If a function is defined as fetchPlugins() {, this will be undefined unless you manually "bind" it.

Thanks for that @jennydaman. What about the starsByPlugin test?

from chris_store_ui.

jennydaman avatar jennydaman commented on September 13, 2024

@sonylomo all tests are passing on sonylomo@b154b30

from chris_store_ui.

sonylomo avatar sonylomo commented on September 13, 2024

Yeah, I spotted the problem with the tests. Everything is ok now.

from chris_store_ui.

sonylomo avatar sonylomo commented on September 13, 2024

I've closed the other PR because I deleted that forked repo 😁.

from chris_store_ui.

Related Issues (20)

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.