Skip to content

Inventory of common code #5

Closed
Closed

Description

@sarthakgupta072

Make an inventory of modules, classes & functions that are common between various services (cwl-WES, proTES and proWES, and to a lesser extent TEStribute).

Add list items here:
  • - api.register_openapi
  • - config.config_parser
  • - config.log_config
  • - database.db_utils
  • - errors.errors
  • - factories.celery_app
  • - factories.connexion_app
  • - security.cors
  • - security.decorators
  • - Dockerfile

Note for Contributors: While adding the common modules, please write unit tests along with them; let's shoot for 100% coverage.

Activity

  1. uniqueg commented on Feb 9, 2020

    @uniqueg
    Member

    Looks good. Probably a good idea to start with the config parser (you can open an issue for that). Not sure whether we should include any of the Celery stuff, at least not at this point. Do you know if the authorization decorators are in any of these modules? Because those should for sure also go into the archetype.

  2. sarthakgupta072 commented on Feb 9, 2020

    @sarthakgupta072
    MemberAuthor

    Do you know if the authorization decorators are in any of these modules? Because those should for sure also go into the archetype.

    I'll update the list as soon as I find them.

    #8 - Add config_parser

  3. 1 remaining item

  4. added
    type: feature
    workload: hours
    on Feb 10, 2020
  5. sarthakgupta072 commented on Feb 11, 2020

    @sarthakgupta072
    MemberAuthor

    #10 - Add database module(s)
    #12 - Add error module(s)

  6. sarthakgupta072 commented on Mar 29, 2020

    @sarthakgupta072
    MemberAuthor

    #25 - Add security package module(s)

  7. unpinned this issue on May 15, 2020
  8. sarthakgupta072 commented on May 16, 2020

    @sarthakgupta072
    MemberAuthor

    #31 - Add factories module(s)

  9. kushagra189 commented on May 29, 2020

    @kushagra189
    Contributor

    #41 - Add tasks module(s)

  10. uniqueg commented on Jun 11, 2020

    @uniqueg
    Member

    #34 - Add Dockerfile

  11. uniqueg commented on Jun 15, 2020

    @uniqueg
    Member

    #40 - Add OpenAPI registration

  12. uniqueg commented on Jun 19, 2020

    @uniqueg
    Member

    We are pretty much done with the main modules, but I think there are a few more things for general use:

    • decorator that logs requests/responses
    • handling of environment variables for setting up app (use pydantics BaseSettings instead of BaseModel)
    • set up Gunicorn support
    • (should have another pass through the cwl-WES etc. codebase to see what else is of general use)
  13. unpinned this issue on Jul 1, 2020
  14. uniqueg commented on Nov 14, 2020

    @uniqueg
    Member

    Will close the issue:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    flag: good 1st issuepriority: highstatus: in progresstype flag: metatype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions