Closed gastaldi closed 5 years ago
This happens when you choose to generate no frontend, just the backend
This is the JSON set in the WELCOME_APP_CONFIG
environment:
{
"application": "domineering-stamp",
"parts": [{
"shared": {
"runtime": {
"name": "go",
"version": "community"
},
"maven": {
"version": "1.0.0-SNAPSHOT",
"artifactId": "newapp-go",
"groupId": "com.yourcompany.newapp"
}
},
"extra": {
"category": "backend",
"runtimeInfo": {
"image": "centos/go-toolset-7-centos7",
"enumInfo": {
"id": "go",
"name": "Go",
"icon": "data:image/svg+xml;charset=utf8,%3Csvg%20version%3D%221.1%22%20id%3D%22%E3%83%AC%E3%82%A4%E3%83%A4%E3%83%BC_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%0A%09%20y%3D%220px%22%20width%3D%22401.98px%22%20height%3D%22559.472px%22%20viewBox%3D%220%200%20401.98%20559.472%22%20enable-background%3D%22new%200%200%20401.98%20559.472%22%0A%09%20xml%3Aspace%3D%22preserve%22%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23F6D2A2%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M10.634%2C300.493c0.764%2C15.751%2C16.499%2C8.463%2C23.626%2C3.539c6.765-4.675%2C8.743-0.789%2C9.337-10.015%0A%09c0.389-6.064%2C1.088-12.128%2C0.744-18.216c-10.23-0.927-21.357%2C1.509-29.744%2C7.602C10.277%2C286.542%2C2.177%2C296.561%2C10.634%2C300.493%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23C6B198%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M10.634%2C300.493c2.29-0.852%2C4.717-1.457%2C6.271-3.528%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236AD7E5%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M46.997%2C112.853C-13.3%2C95.897%2C31.536%2C19.189%2C79.956%2C50.74L46.997%2C112.853z%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236AD7E5%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M314.895%2C44.984c47.727-33.523%2C90.856%2C42.111%2C35.388%2C61.141L314.895%2C44.984z%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23F6D2A2%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M325.161%2C494.343c12.123%2C7.501%2C34.282%2C30.182%2C16.096%2C41.18c-17.474%2C15.999-27.254-17.561-42.591-22.211%0A%09C305.271%2C504.342%2C313.643%2C496.163%2C325.161%2C494.343z%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M341.257%2C535.522c-2.696-5.361-3.601-11.618-8.102-15.939%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23F6D2A2%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M108.579%2C519.975c-14.229%2C2.202-22.238%2C15.039-34.1%2C21.558c-11.178%2C6.665-15.454-2.134-16.461-3.92%0A%09c-1.752-0.799-1.605%2C0.744-4.309-1.979c-10.362-16.354%2C10.797-28.308%2C21.815-36.432C90.87%2C496.1%2C100.487%2C509.404%2C108.579%2C519.975z%22%0A%09%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22none%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M58.019%2C537.612c0.542-6.233%2C5.484-10.407%2C7.838-15.677%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M49.513%2C91.667c-7.955-4.208-13.791-9.923-8.925-19.124%0A%09c4.505-8.518%2C12.874-7.593%2C20.83-3.385L49.513%2C91.667z%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M337.716%2C83.667c7.955-4.208%2C13.791-9.923%2C8.925-19.124%0A%09c-4.505-8.518-12.874-7.593-20.83-3.385L337.716%2C83.667z%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23F6D2A2%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M392.475%2C298.493c-0.764%2C15.751-16.499%2C8.463-23.626%2C3.539c-6.765-4.675-8.743-0.789-9.337-10.015%0A%09c-0.389-6.064-1.088-12.128-0.744-18.216c10.23-0.927%2C21.357%2C1.509%2C29.744%2C7.602C392.831%2C284.542%2C400.932%2C294.561%2C392.475%2C298.493%22%0A%09%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23C6B198%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M392.475%2C298.493c-2.29-0.852-4.717-1.457-6.271-3.528%22%2F%3E%0A%3Cg%3E%0A%09%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%236AD7E5%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09%09M195.512%2C13.124c60.365%2C0%2C116.953%2C8.633%2C146.452%2C66.629c26.478%2C65.006%2C17.062%2C135.104%2C21.1%2C203.806%0A%09%09c3.468%2C58.992%2C11.157%2C127.145-16.21%2C181.812c-28.79%2C57.514-100.73%2C71.982-160%2C69.863c-46.555-1.666-102.794-16.854-129.069-59.389%0A%09%09c-30.826-49.9-16.232-124.098-13.993-179.622c2.652-65.771-17.815-131.742%2C3.792-196.101%0A%09%09C69.999%2C33.359%2C130.451%2C18.271%2C195.512%2C13.124%22%2F%3E%0A%3C%2Fg%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222.9081%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M206.169%2C94.16c10.838%2C63.003%2C113.822%2C46.345%2C99.03-17.197C291.935%2C19.983%2C202.567%2C35.755%2C206.169%2C94.16%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23000000%22%20stroke-width%3D%222.8214%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M83.103%2C104.35c14.047%2C54.85%2C101.864%2C40.807%2C98.554-14.213C177.691%2C24.242%2C69.673%2C36.957%2C83.103%2C104.35%22%2F%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M218.594%2C169.762c0.046%2C8.191%2C1.861%2C17.387%2C0.312%2C26.101c-2.091%2C3.952-6.193%2C4.37-9.729%2C5.967c-4.89-0.767-9.002-3.978-10.963-8.552%0A%09c-1.255-9.946%2C0.468-19.576%2C0.785-29.526L218.594%2C169.762z%22%2F%3E%0A%3Cg%3E%0A%09%3Cellipse%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20cx%3D%22107.324%22%20cy%3D%2295.404%22%20rx%3D%2214.829%22%20ry%3D%2216.062%22%2F%3E%0A%09%3Cellipse%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20cx%3D%22114.069%22%20cy%3D%2299.029%22%20rx%3D%223.496%22%20ry%3D%224.082%22%2F%3E%0A%3C%2Fg%3E%0A%3Cg%3E%0A%09%3Cellipse%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20cx%3D%22231.571%22%20cy%3D%2291.404%22%20rx%3D%2214.582%22%20ry%3D%2216.062%22%2F%3E%0A%09%3Cellipse%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20cx%3D%22238.204%22%20cy%3D%2295.029%22%20rx%3D%223.438%22%20ry%3D%224.082%22%2F%3E%0A%3C%2Fg%3E%0A%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23FFFFFF%22%20stroke%3D%22%23000000%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09M176.217%2C168.87c-6.47%2C15.68%2C3.608%2C47.035%2C21.163%2C23.908c-1.255-9.946%2C0.468-19.576%2C0.785-29.526L176.217%2C168.87z%22%2F%3E%0A%3Cg%3E%0A%09%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20fill%3D%22%23F6D2A2%22%20stroke%3D%22%23231F20%22%20stroke-width%3D%223%22%20stroke-linecap%3D%22round%22%20d%3D%22%0A%09%09M178.431%2C138.673c-12.059%2C1.028-21.916%2C15.366-15.646%2C26.709c8.303%2C15.024%2C26.836-1.329%2C38.379%2C0.203%0A%09%09c13.285%2C0.272%2C24.17%2C14.047%2C34.84%2C2.49c11.867-12.854-5.109-25.373-18.377-30.97L178.431%2C138.673z%22%2F%3E%0A%09%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M176.913%2C138.045c-0.893-20.891%2C38.938-23.503%2C43.642-6.016%0A%09%09C225.247%2C149.475%2C178.874%2C153.527%2C176.913%2C138.045C175.348%2C125.682%2C176.913%2C138.045%2C176.913%2C138.045z%22%2F%3E%0A%3C%2Fg%3E%0A%3C%2Fsvg%3E",
"description": "Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.",
"metadata": {
"categories": ["backend"],
"language": "go"
}
},
"service": "domineering-stamp",
"route": "domineering-stamp"
}
},
"capabilities": [{
"module": "welcome",
"props": {},
"extra": {
"category": "support"
}
}, {
"module": "rest",
"props": {},
"extra": {
"category": "backend",
"sourceMapping": {
"greetingEndpoint": "rest/greeting.go"
}
}
}, {
"module": "database",
"props": {
"databaseType": "postgresql"
},
"extra": {
"category": "backend",
"databaseInfo": {
"image": "postgresql",
"service": "domineering-stamp-database-bind"
},
"sourceMapping": {
"dbEndpoint": "crud/crud.go"
}
}
}]
}]
}
This may be where the bug is: https://github.com/fabric8-launcher/launcher-creator-welcome-app/blob/master/src/app/infos/PartInfo.tsx#L41
@gastaldi it seems the model changed and is now using extra.category
instead of folderName
The menu points to an anchor named
#backend-tier-info
, but the backend card has anid="undefined-tier-info"