GithubHelp home page GithubHelp logo

Comments (3)

martinpitt avatar martinpitt commented on July 24, 2024

The Error fetching metadata comes from getMetadataComponent():

    const p = new Promise((resolve, reject) => {
      Promise.all([
        this.getData(constants.get_projects_info + component.name),
        this.getData(constants.get_modules_info + component.name),
      ]).then((data) => {
        if ((data[0].projects.length === 0) || (data[1].modules.length === 0)) {
          console.log(`Error fetching metadata for ${component.name}`);
          return;
        }

In this case, projects/info works:

❱❱❱ curl http://localhost:4000/api/v0/projects/info/389-ds-base
{"projects":[{"name":"389-ds-base","summary":"389 Directory Server (base)","description":"389 Directory Server is an LDAPv3 compliant server.  The base package includes\nthe LDAP server and command line utilities for server administration.","homepage":"https://www.port389.org/","upstream_vcs":"UPSTREAM_VCS","metadata":{},"builds":[{"epoch":0,"release":"16.el7","arch":"x86_64","build_time":"2017-08-04T15:07:18","changelog":"- Bump version to 1.3.6.1-16\n- Resolves: Bug 1444938 - nsslapd-allowed-sasl-mechanisms doesn't reset to default values without a restart\n- Resolves: Bug 1447015 - Adjust db2bak.pl help and man page to reflect changes introduced to the script\n- Resolves: Bug 1450896 - Manual resetting of nsslapd-dbcachesize using ldapmodify\n- Resolves: Bug 1454921 - Fixup memberof task throws error \"memberof_fix_memberof_callback: Weird\n- Resolves: Bug 1456774 - ipa-replica server fails to upgrade","build_config_ref":"BUILD_CONFIG_REF","build_env_ref":"BUILD_ENV_REF","metadata":{"packageName":["389-ds-base",null]},"source":{"license":"GPLv3+","version":"1.3.6.1","source_ref":"SOURCE_REF","metadata":{}}}]}]}

but modules/info doesn't for most packages:

❱❱❱ curl http://localhost:4000/api/v0/modules/info/389-ds-base

❱❱❱ curl http://localhost:4000/api/v0/modules/info/a2ps

❱❱❱ curl http://localhost:4000/api/v0/modules/info/koji
{"modules":[{"name":"koji","summary":"Build system tools","description":"Koji is a system for building and tracking RPMS.  The base package\ncontains shared libraries and the command-line interface.","homepage":"https://pagure.io/koji/","upstream_vcs":"UPSTREAM_VCS","dependencies":[]}]}

This might be an issue with the imported metadata.db, but how can it be dependent on whether this is running standalone or through cockpit?

When trying to add koji, that actually does work.

from cockpit-composer.

martinpitt avatar martinpitt commented on July 24, 2024

It seems the integration tests don't even cover this at all? The closest one I can find is test/end-to-end/test/test_recipes.js "should show the correct dependence packages and total numbers of dependencies"; it does that for xz and whois, but with our standard metadata.db I cannot add these manually as the package list gets cut off at page 14 (at letter 'S').

from cockpit-composer.

martinpitt avatar martinpitt commented on July 24, 2024

This now seems to work after landing @jkozol 's saving rework.

from cockpit-composer.

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.