Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: provision to configure default apps while creating bench #2131

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

saurabh6790
Copy link
Member

Settings to control and configure default apps

Screenshot 2024-09-04 at 2 26 00 PM

Display default apps

screencapture-press-local-8080-dashboard-benches-new-2024-09-04-14_25_36

New bench with default apps

Screenshot 2024-09-04 at 2 25 53 PM

Comment on lines +209 to +230
getAppsToInstall() {
let apps = [
this.options.versions
.find(v => v.name === this.benchVersion)
.apps.find(app => app.name === 'frappe')
].map(app => {
return {
name: app.name,
source: app.source.name
};
});

// add default apps
this.defaultApps.forEach(app => {
apps.push({
name: app.name,
source: app.source
});
});

return apps;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could avoid sending the apps along with source from frontend and instead compute the app and app source map from the backend. Would make the API and code simpler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants