Skip to content

Is1865/catalog solvers api #2112

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

Merged
merged 60 commits into from
Feb 8, 2021

Conversation

pcrespov
Copy link
Member

@pcrespov pcrespov commented Jan 27, 2021

What do these changes do?

Connects api-server with catalog service

  • can list, get released solver (i.e. cataloged computational services )
  • this solution is temporary. Next iteration will push to the catalog service most of the logic

Changes in catalog service:

  • Fixes OAS: nullable in openapi shall be introduced as an anyOf alternative.

NEW tests/public-api system testing

  • deploys simcore stack, ops stack and registry with a sleepr
  • registers a user and create API tokens
  • run tests using osparc python API client (which is installed from repository)

Related issue/s

How to test

Manually

  • make sure FAKE_API_SERVER_ENABLED=1 in .env
  • build an deploy make build-devel up-devel
  • go to http://127.0.0.1:9081, create user and API token under Security-Settings>Create-API-Key
  • go to http://127.0.0.1:8006/dev/doc
    • Click upper left "Authorize" button and login using previous key/secret as username/pass
    • Test entries using "Try it out"

Auto

cd tests/public-api
make install-dev
make tests

Checklist

  • update client-api to call catalog API
  • implement get and list
  • Unit tests for the changes exist
  • Unit tests of api-server are failing in ALL PR ... probably some unpinned dependency upgraded
  • Update OAS and tag client when merged
  • Merge client first to master and change requirements link @master-frozen!

@pcrespov pcrespov self-assigned this Jan 27, 2021
@pcrespov pcrespov added a:api framework api, data schemas, a:catalog catalog service labels Jan 27, 2021
@pcrespov pcrespov added this to the Chronos milestone Jan 27, 2021
@codecov
Copy link

codecov bot commented Jan 27, 2021

Codecov Report

Merging #2112 (44572f9) into master (3e051b5) will decrease coverage by 4.0%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##           master   #2112      +/-   ##
=========================================
- Coverage    73.5%   69.5%    -4.1%     
=========================================
  Files         456     158     -298     
  Lines       17122    6878   -10244     
  Branches     1685     668    -1017     
=========================================
- Hits        12600    4786    -7814     
+ Misses       4073    1896    -2177     
+ Partials      449     196     -253     
Flag Coverage Δ
integrationtests 59.9% <ø> (-5.6%) ⬇️
unittests 58.3% <ø> (-8.8%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...erver/src/simcore_service_webserver/rest_models.py 0.0% <0.0%> (-91.2%) ⬇️
...src/simcore_service_webserver/activity/handlers.py 27.1% <0.0%> (-62.9%) ⬇️
...ver/src/simcore_service_webserver/rest_handlers.py 48.1% <0.0%> (-51.9%) ⬇️
...src/simcore_service_webserver/groups_exceptions.py 53.3% <0.0%> (-46.7%) ⬇️
...simcore_service_webserver/activity/module_setup.py 55.5% <0.0%> (-44.5%) ⬇️
.../simcore_service_webserver/security_permissions.py 0.0% <0.0%> (-43.8%) ⬇️
...er/src/simcore_service_webserver/users_handlers.py 53.4% <0.0%> (-41.4%) ⬇️
...re_service_webserver/projects/projects_handlers.py 48.9% <0.0%> (-41.0%) ⬇️
.../server/src/simcore_service_webserver/users_api.py 53.9% <0.0%> (-40.0%) ⬇️
.../src/simcore_service_webserver/diagnostics_core.py 50.8% <0.0%> (-38.6%) ⬇️
... and 318 more

@pcrespov pcrespov force-pushed the is1865/catalog-solvers-api branch 4 times, most recently from fc6c61a to 0c731cf Compare February 4, 2021 01:09
@pcrespov pcrespov changed the title WIP: Is1865/catalog solvers api Is1865/catalog solvers api Feb 4, 2021
@pcrespov pcrespov requested review from sanderegg and GitHK February 4, 2021 09:15
@pcrespov pcrespov marked this pull request as ready for review February 4, 2021 09:15
@pcrespov pcrespov force-pushed the is1865/catalog-solvers-api branch from 5d75e01 to 7ae8664 Compare February 4, 2021 14:19
Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

Some comments/questions on the PR

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

some things already.. might continue later

Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

very nice work. and the public-api test you aim to use it also from the e2e?

@pcrespov pcrespov requested review from GitHK and sanderegg February 4, 2021 21:23
Copy link
Member

@sanderegg sanderegg left a comment

Choose a reason for hiding this comment

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

great! looking forward to the additional test suite

Copy link
Contributor

@GitHK GitHK left a comment

Choose a reason for hiding this comment

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

👍 nothing to add here

@pcrespov pcrespov force-pushed the is1865/catalog-solvers-api branch from fcf7d9a to 65b6d5f Compare February 5, 2021 20:34
pcrespov added a commit to ITISFoundation/osparc-simcore-clients that referenced this pull request Feb 6, 2021
Fixes while developing ITISFoundation/osparc-simcore#2112

* Minor updates in OAS

* returns a file

* Changes in file response types
Added headers comment

* py3 turns into rest.py::223 into string ( should modify
@pcrespov pcrespov merged commit 731807d into ITISFoundation:master Feb 8, 2021
@pcrespov pcrespov deleted the is1865/catalog-solvers-api branch February 8, 2021 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:api framework api, data schemas, a:catalog catalog service
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants