Commit Graph

6541 Commits

Author SHA1 Message Date
Nicholas Tindle
0fa279625e Merge branch 'andrewhooker2/secrt-1077-add-email-service-settings-page' into ntindle/secrt-1077-add-email-service 2025-02-14 01:18:50 -06:00
Nicholas Tindle
3f57b6de5b fix(backend): linting 2025-02-14 01:14:13 -06:00
Nicholas Tindle
6274021588 feat(frontend): update model 2025-02-14 01:10:40 -06:00
Nicholas Tindle
6272e3f652 feat(frontend): add client routes 2025-02-14 01:08:38 -06:00
Nicholas Tindle
182b858963 feat(backend): add routes for updating user via settings 2025-02-14 01:05:59 -06:00
Nicholas Tindle
cefadc9447 feat(backend): db models 2025-02-14 00:59:12 -06:00
Nicholas Tindle
79d42ac645 Delete autogpt_platform/backend/backend/notifications/summary.py 2025-02-14 00:18:46 -06:00
Nicholas Tindle
3f4c6d05f1 Discard changes to autogpt_platform/backend/backend/data/rabbitmq.py 2025-02-14 00:18:17 -06:00
Nicholas Tindle
a9922ffc92 Discard changes to autogpt_platform/backend/backend/notifications/notifications.py 2025-02-14 00:18:10 -06:00
Nicholas Tindle
d4bacd04bf Merge branch 'ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service' into ntindle/secrt-1077-add-email-service 2025-02-14 00:17:13 -06:00
Nicholas Tindle
c7b4a939ef fix(backend): linting 2025-02-14 00:00:23 -06:00
Nicholas Tindle
7414b87c33 feat(backend): rebuild templating system completely to send better emails 2025-02-13 23:59:36 -06:00
Nicholas Tindle
dadb88add0 Merge branch 'dev' into ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service 2025-02-13 22:22:21 -06:00
Nicholas Tindle
15275e2ce1 feat(backend): spawn the notifications service + basic test (#9464)
We want to send emails on a schedule, in response to events, and be
expandable without being overbearing on the amount of effort to
implement. We also want this to use rabbitmq and be easy for other
services to send messages into.

This PR adds the first use of the service to simply show a log message


### Changes 🏗️

<!-- Concisely describe all of the changes made in this pull request:
-->
- Adds a new backend service for notifications
- Adds first notification into the service -> Agent Execution
- Adds spawning the notification service

Also 
- Adds RabbitMQ to CI so we can test stuff
- Adds a minor fix for one of the migrations that I thought was causing
failures, but isn't but the change is still useful


### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  <!-- Put your test plan here: -->
- [x] Built and ran an agent and ensured the following log line appeared
which shows the event would have sent an email
  ```
2025-02-10 15:52:02,232 INFO Processing notification:
user_id='96b8d2f5-a036-437f-bd8e-ba8856028553'
type=<NotificationType.AGENT_RUN: 'AGENT_RUN'>
data=AgentRunData(agent_name='CalculatorBlock', credits_used=0.0,
execution_time=0.0, graph_id='30e5f332-a092-4795-892a-b063a8c7bdd9',
node_count=1) created_at=datetime.datetime(2025, 2, 10, 15, 52, 2,
162865)
  ```

#### 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**)

None of the other ports are configurable via .env.example listing so
left as is

<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>

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2025-02-14 03:58:12 +00:00
Nicholas Tindle
f3a2e6cddc Merge branch 'ntindle/secrt-1077-add-email-service-smaller' into ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service 2025-02-13 21:54:25 -06:00
Nicholas Tindle
e1e5852928 Update platform-frontend-ci.yml 2025-02-13 21:37:47 -06:00
Nicholas Tindle
67af37135f Update platform-frontend-ci.yml 2025-02-13 21:37:10 -06:00
Nicholas Tindle
62a8b925a0 Update platform-frontend-ci.yml 2025-02-13 21:36:38 -06:00
Nicholas Tindle
ef1d4757eb fix(infra): recompose ourselves 2025-02-13 21:19:40 -06:00
Nicholas Tindle
95eb77e93c fix: name 2025-02-13 20:32:15 -06:00
Nicholas Tindle
a8f8dd3da2 Update docker-compose.platform.yml 2025-02-13 20:20:21 -06:00
Nicholas Tindle
c6173a2b7c Revert "Update platform-frontend-ci.yml"
This reverts commit cd03f86a5c.
2025-02-13 20:03:08 -06:00
Nicholas Tindle
0886ae973b expose port 2025-02-13 20:02:28 -06:00
Nicholas Tindle
cd03f86a5c Update platform-frontend-ci.yml 2025-02-13 19:51:14 -06:00
Nicholas Tindle
c6a4809191 Update platform-frontend-ci.yml 2025-02-13 19:44:07 -06:00
Nicholas Tindle
88b82c506b Update platform-frontend-ci.yml 2025-02-13 19:25:05 -06:00
Nicholas Tindle
6ddac1465d Update platform-frontend-ci.yml 2025-02-13 19:23:55 -06:00
Nicholas Tindle
8eb0cbb05b use logs 2025-02-13 19:06:57 -06:00
Nicholas Tindle
dbeca6f3c3 feat: maybe try spawning the containers? 2025-02-13 19:06:29 -06:00
Nicholas Tindle
fcdc769566 Revert "fix(frontend): add a timeout on waiting for complete"
This reverts commit ed54af9dc8.
2025-02-13 19:06:11 -06:00
Nicholas Tindle
f208840ba0 Revert "fix: change stuff"
This reverts commit f28968c5a9.
2025-02-13 18:49:14 -06:00
Nicholas Tindle
f28968c5a9 fix: change stuff 2025-02-13 18:07:55 -06:00
Nicholas Tindle
ed54af9dc8 fix(frontend): add a timeout on waiting for complete 2025-02-13 17:11:17 -06:00
Nicholas Tindle
8e5cc83037 fix(backend): the agent block was not attached so substitute the id directly 2025-02-13 15:15:54 -06:00
Nicholas Tindle
04e0af80a1 Merge branch 'dev' into ntindle/secrt-1077-add-email-service-smaller 2025-02-13 13:33:27 -06:00
Nicholas Tindle
06495c9b02 fix(backend): improve docs 2025-02-13 11:37:26 -06:00
Nicholas Tindle
109e5dc8b1 Merge branch 'ntindle/secrt-1077-add-email-service-smaller' into ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service 2025-02-13 11:33:14 -06:00
Reinier van der Leer
ce1d63c517 feat(backend): Library v2 Agents and Presets (#9258)
- Blocked by #9267

This re-introduces changes from the following PRs with fixes:
- #9218
- #9211

### Changes 🏗️

- See #9218
- See #9211

Fixes:
- Fix Prisma query statements in `v2.library.db`
- Fix creation of (library) agents
- Fix test cleanup of (library) agents
- Fix handling and passing of `node_input` parameters

### Checklist 📋

#### For code changes:
- [x] I have clearly listed my changes in the PR description
- [x] I have made a test plan
- [x] I have tested my changes according to the test plan:
  - [x] Create & run a new agent
  - [x] Update & run an existing agent
2025-02-13 17:30:58 +00:00
Nicholas Tindle
b4e46c0eb5 Discard changes to autogpt_platform/backend/backend/data/graph.py 2025-02-13 11:28:04 -06:00
Nicholas Tindle
9cb53c497b refactor(backend): rename use_rabbitmq to rabbitmq_config 2025-02-13 11:26:55 -06:00
Nicholas Tindle
9ef35205b9 fix(backend): drop old param 2025-02-13 11:19:38 -06:00
Nicholas Tindle
250316c946 fix(backend): fix indentation 2025-02-13 11:13:56 -06:00
Nicholas Tindle
fd41bcf4c5 fix(backend): rename the service to be more reasonable 2025-02-13 11:12:39 -06:00
Nicholas Tindle
18ca9a5d1c fix(ci): undo autofix 2025-02-13 11:12:25 -06:00
Nicholas Tindle
644c84c080 Merge branch 'ntindle/secrt-1077-add-email-service' into andrewhooker2/secrt-1077-add-email-service-settings-page 2025-02-13 07:37:36 -06:00
Nicholas Tindle
35dec3797d Merge branch 'ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service' into ntindle/secrt-1077-add-email-service 2025-02-13 07:37:17 -06:00
Nicholas Tindle
55a7f1c2f1 Merge branch 'ntindle/secrt-1077-add-email-service-smaller' into ntindle/secrt-1079-add-ability-to-send-emails-from-notification-service 2025-02-13 07:36:59 -06:00
Nicholas Tindle
18923b6401 Merge branch 'dev' into ntindle/secrt-1077-add-email-service-smaller 2025-02-13 07:34:32 -06:00
Nicholas Tindle
d776e722a1 ci(tests): provide ci details to the tests too 2025-02-13 07:05:52 -06:00
Nicholas Tindle
fb1f3d7e79 ci(test): add rabbitmq instance to ci 2025-02-13 06:56:50 -06:00