Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(backend): Move Notification service to DB manager #9626

Merged
merged 2 commits into from
Mar 13, 2025

Conversation

majdyz
Copy link
Contributor

@majdyz majdyz commented Mar 12, 2025

DatabaseManager is already provisioned in RestApiService, and NotificationService lives within the same instance as the Rest Server.

Changes πŸ—οΈ

Moving the DB calls of NotificationService to DatabaseManager.

Checklist πŸ“‹

For code changes:

  • I have clearly listed my changes in the PR description
  • I have made a test plan
  • I have tested my changes according to the test plan:
    • ...
Example test plan
  • Create from scratch and execute an agent with at least 3 blocks
  • Import an agent from file upload, and confirm it executes correctly
  • Upload agent to marketplace
  • Import an agent from marketplace and confirm it executes correctly
  • Edit an agent from monitor, and confirm it executes correctly

For configuration changes:

  • .env.example is updated or already compatible with my changes
  • docker-compose.yml is updated or already compatible with my changes
  • I have included a list of my configuration changes in the PR description (under Changes)
Examples of configuration changes
  • Changing ports
  • Adding new services that need to communicate with each other
  • Secrets or environment variable changes
  • New or infrastructure changes such as databases

@majdyz majdyz requested a review from ntindle March 12, 2025 17:48
@majdyz majdyz requested a review from a team as a code owner March 12, 2025 17:48
@majdyz majdyz requested review from kcze and removed request for a team March 12, 2025 17:48
@github-actions github-actions bot added platform/backend AutoGPT Platform - Back end size/l labels Mar 12, 2025
@AutoGPT-Agent
Copy link

The PR shows concerning changes in get_graph_executions where the user_id parameter is made optional without explanation of how this would be protected from unauthorized access. While the changes themselves seem well organized (moving DB operations to the DB manager), this security implication needs to be addressed. Additionally, the PR template is not filled out properly - missing test plan and clear listing of changes.

Copy link

netlify bot commented Mar 12, 2025

βœ… Deploy Preview for auto-gpt-docs-dev canceled.

Name Link
πŸ”¨ Latest commit 3c0013e
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs-dev/deploys/67d1cabaf41ab500085c803e

Copy link

deepsource-io bot commented Mar 12, 2025

Here's the code health analysis summary for commits 02618e1..3c0013e. View details on DeepSourceΒ β†—.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource JavaScript LogoJavaScriptβœ…Β SuccessView CheckΒ β†—
DeepSource Python LogoPythonβœ…Β Success
❗ 1 occurence introduced
View CheckΒ β†—

πŸ’‘ If you’re a repository administrator, you can configure the quality gates from the settings.

Copy link

netlify bot commented Mar 12, 2025

βœ… Deploy Preview for auto-gpt-docs canceled.

Name Link
πŸ”¨ Latest commit 3c0013e
πŸ” Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/67d1caba4ae2eb0008b8964b

@majdyz majdyz added this pull request to the merge queue Mar 13, 2025
Merged via the queue into dev with commit f4d4bb8 Mar 13, 2025
24 checks passed
@majdyz majdyz deleted the zamilmajdy/move-notification-manager-to-db-manager branch March 13, 2025 03:33
majdyz added a commit that referenced this pull request Mar 13, 2025
DatabaseManager is already provisioned in RestApiService, and
NotificationService lives within the same instance as the Rest Server.

### Changes πŸ—οΈ

Moving the DB calls of NotificationService to DatabaseManager.

### Checklist πŸ“‹

#### For code changes:
- [ ] I have clearly listed my changes in the PR description
- [ ] I have made a test plan
- [ ] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
  - [ ] ...

<details>
  <summary>Example test plan</summary>

  - [ ] Create from scratch and execute an agent with at least 3 blocks
- [ ] Import an agent from file upload, and confirm it executes
correctly
  - [ ] Upload agent to marketplace
- [ ] Import an agent from marketplace and confirm it executes correctly
  - [ ] Edit an agent from monitor, and confirm it executes correctly
</details>

#### For configuration changes:
- [ ] `.env.example` is updated or already compatible with my changes
- [ ] `docker-compose.yml` is updated or already compatible with my
changes
- [ ] I have included a list of my configuration changes in the PR
description (under **Changes**)

<details>
  <summary>Examples of configuration changes</summary>

  - Changing ports
  - Adding new services that need to communicate with each other
  - Secrets or environment variable changes
  - New or infrastructure changes such as databases
</details>

(cherry picked from commit f4d4bb8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform/backend AutoGPT Platform - Back end size/l
Projects
Status: βœ… Done
Development

Successfully merging this pull request may close these issues.

3 participants