Skip to content

fix: core/db - remove unused function. closes #1561#1560

Merged
Matvey-Kuk merged 1 commit intokeephq:mainfrom
frwl404:anton/remove-unused-function
Aug 7, 2024
Merged

fix: core/db - remove unused function. closes #1561#1560
Matvey-Kuk merged 1 commit intokeephq:mainfrom
frwl404:anton/remove-unused-function

Conversation

@frwl404
Copy link
Copy Markdown
Contributor

@frwl404 frwl404 commented Aug 6, 2024

Closes #1561

📑 Description

Now we have 2 definitions of the same function:

def get_incident_by_id(incident_id: UUID) -> Incident:
def get_incident_by_id(tenant_id: str, incident_id: str) -> Optional[Incident]:

Only 2nd definition is used. I suppose there are no much reasons to keep first one.

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Now we have 2 definitions of the same function:

```
def get_incident_by_id(incident_id: UUID) -> Incident:
def get_incident_by_id(tenant_id: str, incident_id: str) -> Optional[Incident]:
```

Only 2nd definition is used. I suppose there are no much reasons to keep first one.
@vercel
Copy link
Copy Markdown

vercel bot commented Aug 6, 2024

@achivkun is attempting to deploy a commit to the KeepHQ Team on Vercel.

A member of the Team first needs to authorize it.

@frwl404 frwl404 changed the title fix: core/db - remove unused function fix: core/db - remove unused function. closes #1561 Aug 6, 2024
@Matvey-Kuk Matvey-Kuk enabled auto-merge (squash) August 7, 2024 06:45
@Matvey-Kuk Matvey-Kuk merged commit d07c7c0 into keephq:main Aug 7, 2024
@Matvey-Kuk
Copy link
Copy Markdown
Contributor

Thank you!

@frwl404 frwl404 deleted the anton/remove-unused-function branch January 3, 2025 14:24
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.

Two definitions of get_incident_by_id in the same file

2 participants