pr_del_me_afterwards #7

Open
shuber wants to merge 2 commits from pr_del_me_afterwards into main
Member

This is just for the code review. We do of course not merge the empty branch into main.

This is just for the code review. We do of course not merge the empty branch into main.
@ -18,4 +0,0 @@
from services.incident_service import IncidentService
router = APIRouter(
Author
Member

we should call this incidentRouter instead: we might need a generic router in future vor health, login and so on

we should call this incidentRouter instead: we might need a generic router in future vor health, login and so on
mkumar marked this conversation as resolved
@ -1,98 +0,0 @@
from fastapi import APIRouter, Depends, status
Author
Member

you could please add a .gitignore file so these cache files are not part of the repo

you could please add a .gitignore file so these cache files are not part of the repo
mkumar marked this conversation as resolved
@ -52,4 +0,0 @@
result = connection.execute(
text("SELECT current_database(), current_user")
)
Author
Member

And please keep your working directory structure neat and tidy, sometimes you start package names with a capitalized letter, sometimes with a big letter. Consistency is very important

And please keep your working directory structure neat and tidy, sometimes you start package names with a capitalized letter, sometimes with a big letter. Consistency is very important
mkumar marked this conversation as resolved
@ -15,4 +0,0 @@
f"{os.getenv('DB_PORT', '5432')}/"
f"{os.getenv('DB_NAME')}"
)
Author
Member

please rename the files so there are no numbers in the filename

please rename the files so there are no numbers in the filename
mkumar marked this conversation as resolved
@ -17,4 +0,0 @@
# Register API routes
app.include_router(incident_router)
Author
Member

in my opinion, the main python file should be a minimum file in which you set everything up and create a logger and so on, but the FastAPI should be in another file to keep the footprint of the invoked file minimal.

in my opinion, the main python file should be a minimum file in which you set everything up and create a logger and so on, but the FastAPI should be in another file to keep the footprint of the invoked file minimal.
mkumar marked this conversation as resolved
This pull request has changes conflicting with the target branch.
  • Readme.md
  • config.py
  • database/connection.py
  • main.py
  • models/incident05.py
  • repositories/__pycache__/__init__.cpython-314.pyc
  • repositories/__pycache__/incident_respository.cpython-314.pyc
  • repositories/incident_respository.py
  • requirement.txt
  • services/incident_service.py
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin pr_del_me_afterwards:pr_del_me_afterwards
git switch pr_del_me_afterwards

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff pr_del_me_afterwards
git switch pr_del_me_afterwards
git rebase main
git switch main
git merge --ff-only pr_del_me_afterwards
git switch pr_del_me_afterwards
git rebase main
git switch main
git merge --no-ff pr_del_me_afterwards
git switch main
git merge --squash pr_del_me_afterwards
git switch main
git merge --ff-only pr_del_me_afterwards
git switch main
git merge pr_del_me_afterwards
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
GENERAL/DATASTATUS!7
No description provided.