Giter Site home page Giter Site logo

faild to add note about quix HOT 5 OPEN

qianshengzj avatar qianshengzj commented on May 27, 2024
faild to add note

from quix.

Comments (5)

sananguliyev avatar sananguliyev commented on May 27, 2024 1

@0inp thanks for the answer. I did not check the code yet, but I guess your assumption is valid about loading twice. I will try to check and in case I have time to check and find something will create PR or at least share it here.

from quix.

antonpodolsky avatar antonpodolsky commented on May 27, 2024

@qianshengzj , can you please share the value of window.quixConfig?

from quix.

sananguliyev avatar sananguliyev commented on May 27, 2024

same issue. I have checked window.quixConfig and I do not know why there are 2 different presto modules. If it's the reason how to fix this? I just clone the repo and run docker compose up. Probably there is something wrong with default setup.

{
    "modules": [
        {
            "id": "presto",
            "name": "presto",
            "components": {
                "db": {},
                "note": {}
            },
            "engine": "presto",
            "syntax": "presto"
        },
        {
            "id": "presto",
            "name": "presto",
            "components": {
                "db": {},
                "note": {}
            },
            "engine": "presto",
            "syntax": "presto"
        }
    ],
    "auth": {
        "googleClientId": ""
    },
    "clientTopology": {
        "executeBaseUrl": "localhost:8081",
        "staticsBaseUrl": "/",
        "apiBasePath": ""
    },
    "mode": {
        "debug": false,
        "demo": false
    }
}

from quix.

0inp avatar 0inp commented on May 27, 2024

I repeat the same behaviour here

from quix.

0inp avatar 0inp commented on May 27, 2024

The root problem might be the same for this issue #348
Indeed, I have the same error in the console when i click on the Note dropdown or the DB Explorer drop down:

Error: [ngRepeat:dupes] Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: option in buffer, Duplicate key: string:presto, Duplicate value: presto
https://errors.angularjs.org/1.8.2/ngRepeat/dupes?p0=option%20in%20buffer&p1=string%3Apresto&p2=presto

I also tried to us two differents modules : presto and postgresql. This is what I have in the console:

window.quixConfig
Object { modules: (4) […], auth: {…}, clientTopology: {…}, mode: {…} }
  auth: Object { googleClientId: "" }
  clientTopology: Object { executeBaseUrl: "localhost:8081", staticsBaseUrl: "/", apiBasePath: "" }
  mode: Object { debug: false, demo: false }
  modules: Array(4) [ {…}, {…}, {…}, … ]
    0: Object { id: "presto", name: "presto", engine: "presto", … }
    1: Object { id: "postgresql", name: "postgresql", engine: "jdbc", … }
    2: Object { id: "presto", name: "presto", engine: "presto", … }
    3: Object { id: "postgresql", name: "postgresql", engine: "jdbc", … }
    <prototype>: Array []
  <prototype>: Object { … }

It seems that modules are loaded twice in the frontend

from quix.

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.