Skip to content

Commit

Permalink
feat(catalog): point FL server to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnacioHeredia committed Aug 12, 2024
1 parent 4f1a578 commit d5075cc
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions ai4papi/routers/v1/catalog/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,16 @@
@cached(cache=TTLCache(maxsize=1024, ttl=6*60*60))
def get_items(self):
# Set default branch manually (because we are not yet reading this from submodules)
# TODO: start reading from submodules (only accept the submodules that have been
# integrated in papiconf.TOOLS)
tools_branches= {
'deep-oc-federated-server': 'main',
'ai4os-federated-server': 'main',
}

tools = {}
for k in papiconf.TOOLS.keys():
tools[k] = {
'url': f'https://github.com/deephdc/{k}', #TODO: this will need to be updated
'url': f'https://github.com/ai4os/{k}',
'branch': tools_branches[k],
}

Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/catalog/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

assert isinstance(modules_list, list)
assert 'dogs-breed-detector' in modules_list
assert 'deep-oc-federated-server' not in modules_list
assert 'ai4os-federated-server' not in modules_list

# List filtered modules
modules_list2 = Modules.get_filtered_list(
Expand Down
4 changes: 2 additions & 2 deletions tests/catalog/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
tools_list = list(Tools.get_items().keys())

assert isinstance(tools_list, list)
assert 'deep-oc-federated-server' in tools_list
assert 'ai4os-federated-server' in tools_list
assert 'dogs-breed-detector' not in tools_list

# List filtered tools
Expand All @@ -16,7 +16,7 @@
not_tags_any=None,
)
assert isinstance(tools_list2, list)
assert 'deep-oc-federated-server' in tools_list
assert 'ai4os-federated-server' in tools_list

# Get tools summaries
tools_sum = Tools.get_summary(
Expand Down

0 comments on commit d5075cc

Please sign in to comment.