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

Feature Request -> Deactivate Apps #135

Open
bio-boris opened this issue Jun 13, 2023 · 2 comments
Open

Feature Request -> Deactivate Apps #135

bio-boris opened this issue Jun 13, 2023 · 2 comments

Comments

@bio-boris
Copy link
Collaborator

The idea would be an admin catalog call that would just update the category for the app so it doesn't show up.
This would allow us to avoid having to go through a full release cycle (which risk breaking things) in order to hide an app.

@bio-boris
Copy link
Collaborator Author

bio-boris commented Jun 10, 2024

Places where app is saved so far in mongo

DANGER: Deleting an app table considerations: There might be apis that cannot handle missing records!

  • If the app was added to a group or ran, there would also be records in in groups, ee2, or other places
  1. Mark module as deactivated in catalog usually by kbase.yaml
"categories" : ["inactive"],
  1. Clean up the following tables

db.catalog

db.modules.findOne({"module_name_lc": "XX"})
db.module_versions.find({"module_name_lc": "XX"})
db.repo_history.find({"module_name_lc": "XX"})
db.repo_files.find({"module_name_lc": "XX"})
db.repo_info.find({"module_name_lc": "XX"})

@bio-boris
Copy link
Collaborator Author


    
    
import biokbase.narrative.clients as clients
from pprint import pprint
import json

git_urls = []
git_urls.append("https://github.com/chienchi/contigFilter")
git_urls.append("https://github.com/dar1enyang/ContigFilterDemo")
catalog = clients.get("catalog")


for item in git_urls:
    print("About to inactivate", item)
    rv = catalog.set_to_inactive({"git_url" : git_url})

Doesn't seem to have an effect? Maybe something is cached and we need to check the next day

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

No branches or pull requests

2 participants