You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.
Implement a feature to enable user that could save a template directly from pai jobs (from submit page or job detail page). And user could use this template later from marketplace or directly select from submit page.
Issues / Motivations
Basic
Provide a way for user to save pai jobs directly to marketplace
Provide a view for user to check and edit the saved templates
Provide a easy access for user to use the saved templates directly
More details
what is the difference from job config file and saved job template?
what if the saved job template has bugs?
what info should user add when saving template?
how to edit saved template?
Proposals / Solutions
Data Schema
Marketplace Item will have a reserved tag of saved from pai, which differs from creating directly.
Add a new property source of marketplace item.
API
Marketplace
Post /items: add tag saved from pai add source: saved from pai.
Get /items: list items filtered by author and tag sourcesaved from pai
UI View
PAI submit page
Add save to my templates button
Will pop up a simple text field for user to fill name(required), summary(optional) and description(optional)
Will send Post /items request, with author and tag saved from pai
Add selection dropdown
Will send Get /items request, filtered by author and tag saved from pai, list the results
When selected, the item protocol will replace the current content of the page
Marketplace List page
Add a My templates - saved from OpenPAI filter in market list. When clicking, send Get /items request, filtered by author and tag saved from pai, and list the results.
Provide funtion button to delete, use and edit items.
View protocol from detail
Deployment
Add a switch config in service-configuration.yml, default is enabled
Will only open in int bed for test in this release
Work Plan
Add save to my templates button in submit page
Add selection dropdown in submit page
Add a My templates - saved from OpenPAI filter in market list.
Demo
Test cases
Deployment without save_template feature:
1. Stop marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
2. Set cluster.common.marketplace: "false" and update config (push to cluster)
3. Start marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
4. In OpenPAI submission page, the template selection drop down will be hidden.
5. In OpenPAI submission page, the save to template button will be hidden.
Deployment with save_template feature:
1. Stop marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
2. Set cluster.common.marketplace: "true" and webportal.save_template: true
3. update config (push to cluster)
4. Start marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
5. In OpenPAI submission page, the template selection drop down will show.
6. In OpenPAI submission page, the save to template button will show.
Test save template button:
In submission page, fill a correct protocol and click save to template. Then check marketplace get /items api to see if the template is successfully saved.
Test template selection button:
In submission page, select a template from dropdown to see if this template could be successfully submitted.
The text was updated successfully, but these errors were encountered:
Introduction
Implement a feature to enable user that could save a template directly from pai jobs (from submit page or job detail page). And user could use this template later from marketplace or directly select from submit page.
Issues / Motivations
Basic
More details
Proposals / Solutions
Data Schema
Marketplace Item will have a reserved tag ofsaved from pai
, which differs from creating directly.Add a new property
source
of marketplace item.API
Post /items:
add tagadd source:saved from pai
saved from pai
.Get /items: list items filtered by author and
tagsourcesaved from pai
UI View
PAI submit page
save to my templates
buttonWill pop up a simple text field for user to fill name(required), summary(optional) and description(optional)
Will send Post /items request, with author and tag
saved from pai
Will send Get /items request, filtered by author and tag
saved from pai
, list the resultsWhen selected, the item protocol will replace the current content of the page
Marketplace List page
My templates - saved from OpenPAI
filter in market list. When clicking, send Get /items request, filtered by author and tagsaved from pai
, and list the results.Deployment
service-configuration.yml
, default is enabledWork Plan
save to my templates
button in submit pageMy templates - saved from OpenPAI
filter in market list.Demo
Test cases
Deployment without save_template feature:
1. Stop marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
2. Set cluster.common.marketplace: "false" and update config (push to cluster)
3. Start marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
4. In OpenPAI submission page, the template selection drop down will be hidden.
5. In OpenPAI submission page, the save to template button will be hidden.
Deployment with save_template feature:
1. Stop marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
2. Set cluster.common.marketplace: "true" and
webportal.save_template: true
3. update config (push to cluster)
4. Start marketplace-db, marketplace-restserver, marketplace-webportal, webportal, pylon service in paictl.
5. In OpenPAI submission page, the template selection drop down will show.
6. In OpenPAI submission page, the save to template button will show.
Test save template button:
In submission page, fill a correct protocol and click save to template. Then check marketplace get /items api to see if the template is successfully saved.
Test template selection button:
In submission page, select a template from dropdown to see if this template could be successfully submitted.
The text was updated successfully, but these errors were encountered: