Comments (3)
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.
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.
This now seems to work after landing @jkozol 's saving rework.
from cockpit-composer.
Related Issues (20)
- Fix the issue with the number select not working in drag and drop
- Enable input fields in the card list to be submitted by pressing enter or adding a space or comma
- Fix the broken zones issue and communicate with osbuild-composer
- Validate the username input
- Implement double password confirmation
- Display users in cards or tabs in the modal HOT 1
- Make the ssh key input a field like the one for users
- Validate the timezone input
- Fix the broken ignition
- Limit the width of cards
- Add empty states for images
- Improve the responsiveness of cards HOT 1
- Fix the error with selected packages being undefined HOT 2
- Paste into blueprint import modal box
- Create service disabled empty state
- Filesystem tile named "Firewall"
- Incorrect header for Filesystem modal HOT 2
- Packit release commands HOT 1
- TestBlueprintWizard.testCreateAndDeleteBlueprint is broken HOT 1
- Duplicate entry in applications list HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cockpit-composer.