Skip to content

feat: operationalize controllers - #71

Merged
uniqueg merged 20 commits into
devfrom
feature
Jul 25, 2022
Merged

uniqueg merged 20 commits into
devfrom
feature

Conversation

@Ayush5120

@Ayush5120 Ayush5120 commented Jun 24, 2022 •

Copy link
Copy Markdown
Contributor
  • controllers fully functional
  • refactor codebase to make use of FOCA v0.9.0 and remove boilerplate accordingly
  • add integration tests
  • include linting and integration tests in CI

@Ayush5120 Ayush5120 self-assigned this Jun 26, 2022
@Ayush5120
Ayush5120 requested a review from uniqueg June 27, 2022 10:23
@Ayush5120 Ayush5120 changed the title refactor: refactoring proTES with foca archetype [Draft] refactor: refactoring proTES with foca archetype Jun 29, 2022

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks pretty good, but some changes to do. To make sure this PR doesn't become even bigger and more unmanagable, I would recommend the following:

  • Run the flake8 linter over the codebase and fix all issues
  • Include flake8 in the CI pipeline
  • Write integration tests for all endpoints that are currently functional
  • Include integration tests in CI pipeline

That is, do NOT worry about fully implementing the POST endpoints for now. Rather, let's get this working for the GET endpoints and have all the FOCA based changes merged and a working CI up. After that, it will be much easier to merge in individual controllers + tests etc.

Comment thread pro_tes/ga4gh/tes/model.py Resolved
Comment thread pro_tes/ga4gh/tes/model.py Resolved
Comment thread pro_tes/config.yaml Resolved
Comment thread pro_tes/config.yaml Resolved
Comment thread pro_tes/config.yaml Resolved
Comment thread pro_tes/ga4gh/tes/service_info.py Resolved
Comment thread requirements.txt Resolved
Comment thread requirements.txt Resolved
Comment thread pro_tes/utils/db_utils.py Resolved
Comment thread pro_tes/ga4gh/tes/task_runs.py Resolved
@uniqueg

uniqueg commented Jul 15, 2022

Copy link
Copy Markdown
Member

@Ayush5120: please let me know when this is ready for review

@uniqueg uniqueg left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We're getting there. Can you please resolve the remaining comments and run the integration tests as part of the GitHub Actions workflow together with linting (flake8)? There are some smaller issues probably, but once those are done and tests/Actions pass.

Comment thread tests/test_endpoints.py Resolved
@Ayush5120
Ayush5120 requested a review from uniqueg July 23, 2022 07:38
@uniqueg uniqueg changed the title [Draft] refactor: refactoring proTES with foca archetype feat: all controllers functional Jul 25, 2022
@uniqueg uniqueg changed the title feat: all controllers functional feat: operationalize controllers Jul 25, 2022
@uniqueg
uniqueg merged commit f11b586 into dev Jul 25, 2022
@uniqueg
uniqueg deleted the feature branch July 25, 2022 18:42
keshxvdayal pushed a commit that referenced this pull request Feb 7, 2026
* AddedOpenApi3 file and Config.yaml

* modified config.yaml and deleted extra files

* Made more changes acc. to foca archetype

* updated dependencies and added model for Tes

* Modified some other files

* Add tes endpoint: almost done

* removed extra files

* Fixed (POST /tasks, GET /tasks, GET /tasks/id), Added Openapi file version 1.0.0, Fixed models, Renamed database

* Added basic integration test for (POST /tasks), (GET /tasks), (GET /tasks/{id})

* Added tests for (POST /tasks/{id}:cancel) , GET /service-info)

* Updated foca version from '0.8.0' to '0.9.0'.

* Updated python version '3.10', also ready to use python versions ('3.9','3.8','3.7') .

* resolved comment: Replaced 'list_task' with 'list_tasks'.

* Added flake8 linter

* Modified checks.yaml

* Fixed linting errors and removed unused files

* Added integration tests to ci

* Test .github/workflows/checks.yaml

* docs: explain why response validation is disabled

Co-authored-by: Alex Kanitz <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants