microsoft / openpaimarketplace

A marketplace which stores examples and job templates of openpai. Users could use openpaimarketplace to share their jobs or run-and-learn others' sharing job.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[ORM filter] For pai template selection, enhance filter to marketplace item

SwordFaith opened this issue · comments

Introduction

image

Currently, pai add support for template selection from marketplace, but for personal template only.
It will be better to support suggestion with strategy, like latest used, user input string likelihood, prerequisite suggestion etc.

Issues / Motivations

It will be better to support suggestion with strategy, like latest used, user input string likelihood, prerequisite suggestion etc.

Proposals / Solutions

Add init or migration logic in model_init_handler

Work Plan

  • Check if marketplace item table exists and match model
  • If not match, do table schema migration

Demo

Test cases

  • New code should have no effect to new deploy marketplace process
  • If schema not match current version, should do schema migration