Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

First commits for Base Application Logic #2

Open
wants to merge 37 commits into
base: develop
Choose a base branch
from

Conversation

nickviola
Copy link
Collaborator

@nickviola nickviola commented Feb 3, 2022

🗣 Description

This covers the initial commits for the Li-PCA Web Application project and base framework setup.

💭 Motivation and context

Getting the Li-PCA Web application foundation in place for testing and further development.

🧪 Testing

Run docker compose up -d or pip install -e . && python3 -m api (see README) in the root of the repo to run this project and test.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All future TODOs are captured in issues, which are referenced
    in code comments.
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All relevant repo and/or project documentation has been updated
    to reflect the changes in this PR.
  • Tests have been added and/or modified to cover the changes in this PR.
  • All new and existing tests pass.

✅ Pre-merge checklist

  • Revert dependencies to default branches.
  • Finalize version.

✅ Post-merge checklist

  • Add a tag or create a release.

@nickviola nickviola self-assigned this Feb 3, 2022
@coveralls
Copy link

coveralls commented Feb 3, 2022

Pull Request Test Coverage Report for Build 2748793141

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-100.0%) to 0.0%

Totals Coverage Status
Change from base Build 2277381765: -100.0%
Covered Lines: 0
Relevant Lines: 0

💛 - Coveralls

@nickviola nickviola changed the title First commits First commits for Base Application Logic Feb 4, 2022
@nickviola nickviola added the improvement This issue or pull request will add new or improve existing functionality label Feb 4, 2022
@nickviola nickviola requested a review from a team February 7, 2022 21:45
@nickviola nickviola marked this pull request as ready for review February 7, 2022 21:45
@schmelz21 schmelz21 self-requested a review February 7, 2022 21:49
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

I started reviewing, but I have to stop for now. Please feel free to let me know if you have questions about anything that I commented on. I will try to come back to this tomorrow to review the remaining files.

Also, you probably want to remove the following files from source control:

  • src/api/.Dockerfile.swp
  • src/api/openapi/.openapi.yaml.swp

And I suspect that you also no longer need src/api/data/secret.txt, but I wasn't 100% sure about that one.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
Comment on lines +12 to +13
*.DS_store
*.vscode
Copy link
Member

Choose a reason for hiding this comment

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

Please put these into their own sections and alphabetize the sections, e.g.

## IDE - VS Code ##
.vscode

## MacOS ##
.DS_store

## Python ##
...

CONTRIBUTING.md Outdated Show resolved Hide resolved
Comment on lines -156 to -166
### Running unit and system tests ###

In addition to the pre-commit checks the CI system will run the suite
of unit and system tests that are included with this project. To run
these tests locally execute `pytest` from the root of the project.

We encourage any updates to these tests to improve the overall code
coverage. If your pull request adds new functionality we would
appreciate it if you extend existing test cases, or add new ones to
exercise the newly added code.

Copy link
Member

Choose a reason for hiding this comment

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

Why did you delete this block of text?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This must have gotten removed unintentionally. I'll get it added back.

src/api/models/base_model_.py Show resolved Hide resolved
src/api/models/customer.py Outdated Show resolved Hide resolved
Comment on lines 7 to 8
from datetime import date, datetime # noqa: F401
from typing import Dict, List # noqa: F401
Copy link
Member

Choose a reason for hiding this comment

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

Why are you importing these if you are not using them?

src/api/models/customer.py Outdated Show resolved Hide resolved
Comment on lines 30 to 45
:param uuid: The uuid of this Customer. # noqa: E501
:type uuid: str
:param name: The name of this Customer. # noqa: E501
:type name: str
:param contact: The contact of this Customer. # noqa: E501
:type contact: str
:param status: The status of this Customer. # noqa: E501
:type status: str
"""
# noqa: E501
self.swagger_types = {
"uuid": str,
"name": str,
"contact": str,
"status": str,
} # type: ignore
Copy link
Member

Choose a reason for hiding this comment

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

More unnecessary E501 and type: ignores that should be taken care of here and below.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

addressed in b0be2dc

Copy link
Member

Choose a reason for hiding this comment

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

The E501s are taken care of here, but I'm going to leave this conversation open until the type: ignores have also been sorted out.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sounds good. I'm working on the cleanup now and will reference the commit here once it's pushed up. There shouldn't be a need for any linter exceptions, honestly. We should address the root issues now to keep things clean.

nickviola and others added 11 commits July 26, 2022 09:44
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…tical

Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
nickviola and others added 19 commits July 26, 2022 14:17
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…i/__main__.py

Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
…roller.py

Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Co-authored-by: dav3r <david.redmin@trio.dhs.gov>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
improvement This issue or pull request will add new or improve existing functionality
Projects
No open projects
Status: No status
Development

Successfully merging this pull request may close these issues.

None yet

4 participants