Commit Graph

6470 Commits

Author SHA1 Message Date
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
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
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
Nicholas Tindle
bfaf1e5fc2 fix(backend): manually start the notification service in testing? 2025-02-13 06:48:24 -06:00
Nicholas Tindle
78125371fc feat(backend): handle migration error 2025-02-13 06:43:48 -06:00
Zamil Majdy
b5b9a008bf feat(backend): Migrate json encoded string columns into a native json column (#9475)
### Changes 🏗️

Due to the legacy of SQLite usage, some of the JSON columns are actually
a string column string a stringified JSON column.
The scope of this PR is migrating those columns into an actual JSON
column.

### 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>
2025-02-13 12:02:53 +00:00
Nicholas Tindle
7e8207eb9b Merge branch 'dev' into ntindle/secrt-1077-add-email-service-smaller 2025-02-12 17:19:29 -06:00
Nicholas Tindle
7e04fbd25f feat(backend): schema updates, migration, queries for Email Notification Service (#9445)
<!-- Clearly explain the need for these changes: -->

The email service has requirements to
- Email users when some activity has happened on their account on some
scheduled basis -> We need a way to get active users and the executions
that happened while they were active
- Allow users to configure what emails they get -> Need a user
preference
- Get User email by Id so that we can email them -> Pretty
self-explanatory

We need to add a few new backend queries + db models for the
notification to start handling these details. This is the first set of
those changes based on experience building the app service

### Changes 🏗️

<!-- Concisely describe all of the changes made in this pull request:
-->
- Adds a new DB Model, `UserNotificationPreferences,` with related
migration
- Adds a new DB Model `NotificationEvent` with related migration to
track what notifications we've sent and how many and such (how much we
add here is open to change depending on what limits on data we want)
- Adds a new DB Model `UserNotificationBatch` with related migration to
handle batching of like models
- Adds queries to get users and executions by `datetime` ranges as `ISO`
strings
- Adds new queries to the `DatabaseManager` and exposes them to the
other `AppService`s
- Exposes all new queries plus an existing one `get_user_by_id`

### 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] I extracted these changes from a working implementation of the
service, and tested they don't bring down the service by being uncalled
by running the standard agent tests we do on release

---------

Co-authored-by: Reinier van der Leer <pwuts@agpt.co>
2025-02-12 22:54:16 +00:00
Nicholas Tindle
dc558966b8 Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-12 16:44:22 -06:00
Nicholas Tindle
20267d62f6 Discard changes to autogpt_platform/frontend/yarn.lock 2025-02-12 16:20:01 -06:00
Nicholas Tindle
47e14d5525 fix(backend): move stuff to the user object and stop messing with 1-1 unique relationship 2025-02-12 15:59:25 -06:00
Nicholas Tindle
efe63503ac Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-12 12:25:24 -06:00
Nicholas Tindle
21c3a6fdcc Merge branch 'dev' into ntindle/secrt-1088-add-db-models-for-the-notification-service 2025-02-12 12:18:00 -06:00
Bently
016ec0ff6b fix(frontend) update PublishAgentAwaitingReview router push path (#9471)
Updates the PublishAgentAwaitingReview router.push path, it was going to
``/marketplace/dashboard`` it should be ``/profile/dashboard``

### Changes 🏗️


8181ee8cd1/autogpt_platform/frontend/src/components/agptui/composite/PublishAgentPopout.tsx (L265-L267)

to be

```tsx
		onViewProgress={() => {
		  router.push("/profile/dashboard");
		  handleClose();
		}}
```
autogpt-platform-beta-v0.4.10
2025-02-12 15:32:47 +00:00
Zamil Majdy
3b8cde6d11 feat(block): Add batch matched result and its count on ExtractTextInformationBlock (#9470)
### Changes 🏗️

Introduced `matched_result` & `matched_count` as a batch matched result
list and its count for the block execution of
ExtractTextInformationBlock.

### 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>
2025-02-12 12:22:26 +00:00
Keith Webber
d050a3f77c docs: Provide feedback when cloning submodules (#9448)
<!-- Clearly explain the need for these changes: -->

### Changes 🏗️
Added `--progress` to the submodule update, so that cloning progress can
be tracked and does not appear to hang.
<!-- Concisely describe all of the changes made in this pull request:
-->

### Checklist 📋

#### For code changes:
- [x] No code change, just docs.
 

<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:
- [x] No configuration change, just docs.
 

<details>
  <summary> Provide feedback when cloning submodules </summary>

  -  now updating submodules shows the cloning repo's progress
 
</details>

Co-authored-by: Your Name <you@example.com>
2025-02-12 03:43:52 +00:00
Nicholas Tindle
3e2f34180d Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-11 21:36:38 -06:00
Nicholas Tindle
aa21bf7b2d fix(backend): format 2025-02-11 21:36:22 -06:00
Nicholas Tindle
e012e3aaf6 Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-11 21:10:39 -06:00
Nicholas Tindle
ddd2b9de15 fix(backend): the tests did dumb stuff like reusing ids 2025-02-11 21:09:51 -06:00
Nicholas Tindle
85f8f4136f fix(backend): relock 2025-02-11 20:33:49 -06:00
Nicholas Tindle
1cd90ef113 Merge branch 'dev' into ntindle/secrt-1088-add-db-models-for-the-notification-service 2025-02-11 20:32:47 -06:00
Nicholas Tindle
3562090495 Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-11 20:30:48 -06:00
Nicholas Tindle
c69df5cb79 ref(backend): update from pr changes 2025-02-11 20:30:33 -06:00
Reinier van der Leer
1626bf9e16 fix(backend): Support Python 3.10 (#9468)
- Resolves #9467

### Changes 🏗️

- Loosen Python version requirement to include v3.10

Also, fixed a few issues in pyproject.toml:
- Re-sort dependency list
- Update `autogpt-platform-backend` package version to match latest
release
2025-02-12 02:02:00 +00:00
Nicholas Tindle
957ebe697f refactor(backend): raise errors from db queries 2025-02-11 15:08:33 -06:00
Nicholas Tindle
82d96ee7b0 Merge branch 'ntindle/secrt-1088-add-db-models-for-the-notification-service' into ntindle/secrt-1077-add-email-service-smaller 2025-02-11 15:01:25 -06:00
Nicholas Tindle
11cda46724 ref(backend): pr changes 2025-02-11 15:01:15 -06:00
Nicholas Tindle
bf49a0a08a Update autogpt_platform/backend/backend/data/notifications.py 2025-02-11 14:26:33 -06:00