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

merge main to dependabot #1409

Merged
merged 249 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
249 commits
Select commit Hold shift + click to select a range
e049ba3
Add models for RBAC
devgenix Jan 11, 2024
6c3ab16
GET /evaluations/evaluation_ids route added
MohammedMaaz Jan 11, 2024
7b9dccd
check for data inconsistencies before deletion
MohammedMaaz Jan 12, 2024
d3efdf4
Add Workspace to Database Engine
devgenix Jan 12, 2024
a92cdce
Set description to be optional
devgenix Jan 12, 2024
c706346
Define CreateOrganization
devgenix Jan 12, 2024
0a0b6e0
Create pydantic basemodel for Workspace
devgenix Jan 12, 2024
f990e6b
Feat: create workspace
devgenix Jan 12, 2024
7de5b35
Add new permissions and method to check for role access
devgenix Jan 12, 2024
a978d3f
include user id in get_user_and_org_id
devgenix Jan 12, 2024
fb514ce
define fine-grained rbac function check
devgenix Jan 12, 2024
b755b01
Add Workspace when creating dm_manager objects
devgenix Jan 12, 2024
3bd8c71
define function to get workspace and organization id
devgenix Jan 12, 2024
0de3b88
add methods to get member roles and permissions
devgenix Jan 14, 2024
4f1c7ac
Add workspace
devgenix Jan 14, 2024
3ef2fb7
Define Workspace Pydantic Models
devgenix Jan 14, 2024
a680b01
define get organization default workspace
devgenix Jan 14, 2024
53ff76e
add workspace to evaluations
devgenix Jan 14, 2024
23f49e1
define check_user_workspace_access
devgenix Jan 14, 2024
545ee3c
Define RBAC Permission for App Router
devgenix Jan 14, 2024
c131e52
format
devgenix Jan 14, 2024
557bf10
fix bugs with creating an app from workspace assignment
devgenix Jan 14, 2024
fce5360
return type | async/await introduced
MohammedMaaz Jan 16, 2024
be72158
register models for both oss and cloud
devgenix Jan 18, 2024
f211f95
Feat [ draft ]: remove Organization features, refactor and conditiona…
devgenix Jan 18, 2024
145ab68
Feat: complete refactoring of moving cloud features and adding rbac
devgenix Jan 19, 2024
fc1d712
Improvements and fix bugs with refactor
devgenix Jan 19, 2024
6b81444
Merge branch 'main' into oss/rbac
devgenix Jan 19, 2024
6748ee0
import converters
devgenix Jan 19, 2024
d9579fa
import db_manager from source
devgenix Jan 19, 2024
a94ade6
Merge branch 'oss/rbac' of https://github.com/Agenta-AI/agenta into o…
devgenix Jan 19, 2024
4075294
fix imports
devgenix Jan 19, 2024
62b41fc
fix circular imports
devgenix Jan 19, 2024
d115137
update docstring
devgenix Jan 19, 2024
86dd0ef
Merge branch 'main' of https://github.com/Agenta-AI/agenta into fix/1…
MohammedMaaz Jan 22, 2024
3215d40
fix bugs with imports and naming
devgenix Jan 22, 2024
49a3f81
merge
devgenix Jan 22, 2024
2203990
Change Output to Response in api Models
devgenix Jan 23, 2024
d85ea2c
Ran format
devgenix Jan 23, 2024
2add1fc
Merge branch 'main' into oss/rbac
devgenix Jan 23, 2024
51a5476
fix feature flag mispelling
devgenix Jan 23, 2024
9f3569b
Merge branch 'oss/rbac' of https://github.com/agenta-ai/agenta into o…
devgenix Jan 23, 2024
4372df8
fix closing square bracket
devgenix Jan 23, 2024
01d6dbb
fix closing square brackets
devgenix Jan 23, 2024
a2369e2
cleanup
devgenix Jan 23, 2024
22427ca
rbac improvements
devgenix Jan 23, 2024
d1e51b9
bug fixes and removed org id from everywhere
MohammedMaaz Jan 24, 2024
495ede5
Fix for non-org use in oss
devgenix Jan 24, 2024
da862e2
format black
devgenix Jan 24, 2024
b209a90
fix bugs
devgenix Jan 25, 2024
44c9a97
add org & workspace in cloud
devgenix Jan 25, 2024
2c27771
Refactor tests in line with RBAC: remove organizations
devgenix Jan 25, 2024
c35864d
permission denied modal and minor fixes
MohammedMaaz Jan 25, 2024
c424049
set rbac error status code to 403
devgenix Jan 25, 2024
33a9727
Merge branch 'oss/rbac' of https://github.com/agenta-ai/agenta into HEAD
devgenix Jan 25, 2024
b72261e
apps fetching separation for cloud and oss
MohammedMaaz Jan 25, 2024
a011fb7
fix delete testet permission
devgenix Jan 25, 2024
5aca614
dynamic modules | pass org id when creating app
MohammedMaaz Jan 30, 2024
b571730
Merge branch 'oss/rbac' of https://github.com/Agenta-AI/agenta into o…
MohammedMaaz Jan 30, 2024
8626664
require workspace and org id when creation app from template in cloud
devgenix Jan 30, 2024
73ba802
pass workspace_id when creating an app
MohammedMaaz Jan 30, 2024
d515f51
merge oss/rbac_migrations
devgenix Jan 30, 2024
9cec946
cleanup
devgenix Jan 30, 2024
b0b5968
refactor use of Feature Flag
devgenix Jan 30, 2024
515e85f
remove session
devgenix Jan 30, 2024
9de7346
fix paranthesis
devgenix Jan 30, 2024
530d978
fixed fe comflicts
MohammedMaaz Jan 30, 2024
ab23ee3
remove paranthesis for imports
devgenix Jan 30, 2024
4e8abff
Merge branch 'main' of https://github.com/Agenta-AI/agenta into oss/r…
MohammedMaaz Jan 30, 2024
251d2a9
rename rbac migration folder
devgenix Jan 30, 2024
9d1a281
remove oss/cloud folder
devgenix Jan 30, 2024
8d93ab4
merge main & resolve merge conflicts
devgenix Jan 30, 2024
7408275
update migration with current db schema
devgenix Jan 30, 2024
4a87164
refactor from merge: use object in check_action_access and
devgenix Jan 30, 2024
740a5d2
Feat: complete merge and fix merge bugs
devgenix Jan 31, 2024
6512a5c
rename migration folder
devgenix Jan 31, 2024
713bd1c
fix bugs and format
devgenix Jan 31, 2024
f7b23c4
[draft]: fix tests failing
devgenix Jan 31, 2024
24f5408
add new field from prompt_versioning
devgenix Jan 31, 2024
dd37d98
fixed import issues for dynamicComponent
MohammedMaaz Jan 31, 2024
70266b6
Add mongo_express to docker test compose file
devgenix Jan 31, 2024
730af41
Merge branch 'main' into oss/rbac
devgenix Jan 31, 2024
0c05e7b
import re to fix failing tests
devgenix Jan 31, 2024
e4d9e30
format black
devgenix Jan 31, 2024
6ea2806
format after upgrading pip
devgenix Jan 31, 2024
f0ce13d
Allow none for variant revision
devgenix Jan 31, 2024
aa8f8dc
removed session commit
devgenix Jan 31, 2024
261a121
Refactor - remove redundant code in modes_revamp in oss rbac migratio…
aybruhm Feb 3, 2024
6b5a81b
Merge branch 'main' into oss/rbac
aybruhm Feb 3, 2024
147db53
Merge branch 'main' into oss/rbac
aybruhm Feb 3, 2024
9ac5c8b
installed diff package
bekossy Feb 4, 2024
cabf6b6
Merge branch 'main' of https://github.com/Agenta-AI/agenta into fix/1…
MohammedMaaz Feb 6, 2024
b9f9f12
fix removing app
aakrem Feb 6, 2024
380ca57
Update - resolve 500 error in getting app container_url
aybruhm Feb 6, 2024
1d58daa
Merge branch 'main' into oss/rbac
aybruhm Feb 6, 2024
8bd3767
Update - resolve breaking endpoint page in agenta web
aybruhm Feb 6, 2024
26dba6a
Update - fix failing deploy endpoint and update deploy_to_environment…
aybruhm Feb 6, 2024
0b4f8b8
Refactor - modified construct_app_container_url endpoint
aybruhm Feb 6, 2024
281dccc
Update - resolve failing endpoints in human evaluation router
aybruhm Feb 6, 2024
79f62b2
:art: Format - ran black
aybruhm Feb 6, 2024
a086de4
:art: Format - ran prettier
aybruhm Feb 6, 2024
6fb5b78
Update - remove redundant testcases for deployment versioning in oss
aybruhm Feb 6, 2024
488f62c
Update - change database mode to test
aybruhm Feb 6, 2024
41bd10a
Update - added environment output to app router and converters base o…
aybruhm Feb 7, 2024
69f795c
Update - refactor evaluator_results aggregation logic
aybruhm Feb 7, 2024
68f527d
:art: Format - ran black
aybruhm Feb 7, 2024
5979886
Update - format black using the latest version
aybruhm Feb 7, 2024
7a4731c
Feat - created aggregation_service and implemented aggregation logics
aybruhm Feb 7, 2024
26512a4
Update - refactor aggregate_evaluator_results function
aybruhm Feb 7, 2024
2baa7d4
Update - resolve concerns in aggregation logic
aybruhm Feb 7, 2024
09019ed
Update evaluations.py
mmabrouk Feb 7, 2024
06c818e
Merge pull request #1347 from Agenta-AI/fix/custom-code-evaluation-ag…
mmabrouk Feb 7, 2024
1142f53
fix: results export in evaluation scenario
bekossy Feb 8, 2024
fbdfbe8
Update - remove rooth_path from Docker.template
aybruhm Feb 8, 2024
dfabd3e
Update - bump version to 0.10.3
aybruhm Feb 8, 2024
c34fe59
Merge pull request #1350 from Agenta-AI/issue-1348/-evaluation-scenar…
aakrem Feb 8, 2024
3fbc796
Merge branch 'main' into fix/1182-prevent-used-resources-from-deletion
aybruhm Feb 8, 2024
b2cb563
Merge pull request #1351 from Agenta-AI/fix/updapte-agenta-dockerfile…
aakrem Feb 8, 2024
2fe23f5
Update - modified model to allow none values
aybruhm Feb 8, 2024
cb5679c
Update - handle safe-fail in case of deleted evaluator config
aybruhm Feb 8, 2024
2ee77a8
Update - cover edge case to return empty data in case testsetId not f…
aybruhm Feb 8, 2024
d28f3ff
Update - allow null to pass through loadTestset logic
aybruhm Feb 8, 2024
ba1beed
:art: Format - ran black and prettier
aybruhm Feb 8, 2024
d4251e6
Merge branch 'main' into fix/1182-prevent-used-resources-from-deletion
aybruhm Feb 8, 2024
6782e30
Update - allow workspace members with DELETE_EVALUATION permission to…
aybruhm Feb 8, 2024
be925ba
Merge pull request #1244 from Agenta-AI/fix/1182-prevent-used-resourc…
aakrem Feb 8, 2024
ec42abb
added dataset attribute to eval delete button
bekossy Feb 9, 2024
5ff130a
added checks and reusable test blocks
bekossy Feb 9, 2024
10fb341
Update - added permission check to ensure only users with the right r…
aybruhm Feb 9, 2024
20e95a3
docs: updated custom evaluators
bekossy Feb 10, 2024
909e708
bug fix in tutorials and added pages for custom evaluator
bekossy Feb 10, 2024
0219468
Update - added logic to check apikey action access for rbac
aybruhm Feb 11, 2024
2cf6b3b
docs: updated automatic evaluations
bekossy Feb 11, 2024
7382580
Update - fix unbound error
aybruhm Feb 11, 2024
b0f06a6
Update - added logic to allow organization selection for cloud
aybruhm Feb 11, 2024
d014c41
refined wording
bekossy Feb 11, 2024
349bf1a
Update - Make + Create New App aligned with dark mode
HeonHeo23 Feb 12, 2024
886be34
fixed double loading issue on apps page | fixed missing workspace_id …
MohammedMaaz Feb 12, 2024
754168f
Refactor - update list_apps router
aybruhm Feb 12, 2024
e9dedca
fixes | single role selection
MohammedMaaz Feb 12, 2024
df19dc7
Update - change permission from view_application to read_system
aybruhm Feb 12, 2024
25e10f6
Refactor - remove redundant rbac check
aybruhm Feb 12, 2024
efc22ff
Update - make use of right status code (403)
aybruhm Feb 12, 2024
4196dfa
updated pages and added images for human evaluation docs
bekossy Feb 12, 2024
7f002a9
Merged 'main' into 'oss/rbac' branch
aybruhm Feb 12, 2024
5331ddc
:art: Format - ran black
aybruhm Feb 12, 2024
b7eabcb
Refactor - remove redundant selectedOrg
aybruhm Feb 12, 2024
561f100
docs: updated human evaluation
bekossy Feb 13, 2024
3fbcbf0
hardcode black version
aakrem Feb 13, 2024
494769b
format web
aakrem Feb 13, 2024
c2cf234
Merge branch 'main' into issue-1309/-show-diff-of-outputs-in-the-eval…
bekossy Feb 13, 2024
feefe45
fix docs
mmabrouk Feb 13, 2024
1b3d5e6
Merge pull request #1236 from Agenta-AI/oss/rbac
aakrem Feb 14, 2024
6cc9bb9
Update - refactored app variant revision converter and api models
aybruhm Feb 14, 2024
12b515c
Refactor - modified get_variant response data and created get variant…
aybruhm Feb 14, 2024
358320d
paying org check in app selector
MohammedMaaz Feb 14, 2024
266a7f8
Merge pull request #1353 from Agenta-AI/Test/-improved-cypress-test-f…
aakrem Feb 14, 2024
2b89ba5
Feat - created db function to fetch app variant revision
aybruhm Feb 14, 2024
de67634
Update - create convert function for app variant db revision
aybruhm Feb 14, 2024
dfcc54c
Feat - implemented get_variant_revision router
aybruhm Feb 14, 2024
aaa1d0d
Update - created axios logic to get prompt revision from backend
aybruhm Feb 14, 2024
f46153e
Refactor - revamp use of prompt revisions in playground
aybruhm Feb 14, 2024
43fc7fa
highlight output diff in evaluation comparison view
bekossy Feb 14, 2024
e334578
Merge branch 'main' into issue-1309/-show-diff-of-outputs-in-the-eval…
bekossy Feb 14, 2024
01f7b76
Refactor - revert back to Props
aybruhm Feb 14, 2024
9308eec
:art: Format - ran black
aybruhm Feb 14, 2024
6964f4b
:art: Format - ran prettier
aybruhm Feb 14, 2024
9e43f58
Update - replace IPromptVersioning type to IPromptRevisions
aybruhm Feb 14, 2024
9ad55b2
Refactor - resolve build error
aybruhm Feb 14, 2024
7b9c87b
Update - make use of right data type
aybruhm Feb 14, 2024
9eaf666
:art: Format - ran black using 23.12.0
aybruhm Feb 14, 2024
7c60a7c
rename migrations folders and bump versions
aakrem Feb 14, 2024
89bbaef
Merge pull request #1364 from Agenta-AI/migration
aakrem Feb 14, 2024
0429b8f
lint fix and improved diff styles
bekossy Feb 14, 2024
d9f5faf
publish new release
aakrem Feb 14, 2024
023bf6f
lint fix
bekossy Feb 14, 2024
85fe7aa
Refactor - resolve NoneType when creating new evaluation scenario (in…
aybruhm Feb 14, 2024
f736ed1
fixed is paying condition
MohammedMaaz Feb 14, 2024
a616062
added switch to toggle between diff mode
bekossy Feb 15, 2024
7960a48
fixed cypress test
bekossy Feb 15, 2024
2dc4b22
added dataset attribute and check for evaluations
bekossy Feb 15, 2024
5d1b478
removed redundant test cases
bekossy Feb 15, 2024
54491d4
Update - added mongo_express back to test compose
aybruhm Feb 15, 2024
b7504c6
improved ux
bekossy Feb 15, 2024
529c6f7
changed diff to word by word
bekossy Feb 15, 2024
0136f56
Update - remove mongo-express and added mongo to celery worker service
aybruhm Feb 15, 2024
7cbd588
Update - change database mode to test
aybruhm Feb 15, 2024
ab03068
Fix bug in batch_invoke and add assertion for app variant not found
mmabrouk Feb 15, 2024
bc30ee7
format
mmabrouk Feb 15, 2024
9e7c59c
m
mmabrouk Feb 15, 2024
bbb1789
added missing dependency
mmabrouk Feb 15, 2024
391d48a
Merge pull request #1370 from Agenta-AI/feature/improve-error-handlin…
mmabrouk Feb 15, 2024
59ed33e
Update - added mongo to celery_worker depends_on
aybruhm Feb 15, 2024
64d3e48
Update - revert database mode back to v2
aybruhm Feb 15, 2024
800f4cb
remove organization files not needed anymore
aakrem Feb 15, 2024
2ca4b9c
Merge pull request #1371 from Agenta-AI/not-used-files
aakrem Feb 15, 2024
c512118
Merge branch 'main' into feature/paying-user-check
aakrem Feb 15, 2024
50cfa28
Update - added mongo_express service back to test compose
aybruhm Feb 15, 2024
e842f34
Update - resolve failing to start test compose in github
aybruhm Feb 15, 2024
22f57a8
adjust check
aakrem Feb 15, 2024
c231562
Update docker-compose.test.yml
aakrem Feb 15, 2024
de57c97
Merge branch 'main' into resolve-failing-backend-tests
aakrem Feb 15, 2024
b74079f
Update docker-compose.test.yml
aakrem Feb 15, 2024
3287c5c
Update docker-compose.test.yml
aakrem Feb 15, 2024
492c8d4
add database mode to celery
aakrem Feb 15, 2024
5c29cc9
Merge pull request #1369 from Agenta-AI/resolve-failing-backend-tests
aakrem Feb 15, 2024
ff2a202
Merge pull request #1372 from Agenta-AI/main
aakrem Feb 15, 2024
23fbf31
Merge pull request #1360 from Agenta-AI/feature/paying-user-check
aakrem Feb 15, 2024
df7b4f9
Merge pull request #1373 from Agenta-AI/main
aakrem Feb 15, 2024
0bf66e8
Merge pull request #1374 from Agenta-AI/main
aakrem Feb 15, 2024
f8ce686
Update image files and reorganize documentation structure
mmabrouk Feb 15, 2024
5282e30
Add configurable evaluators and custom evaluator documentation
mmabrouk Feb 15, 2024
a16eca8
Merge pull request #1357 from Agenta-AI/issue-1164/-docs-about-the-ev…
mmabrouk Feb 15, 2024
8e209aa
Merge branch 'main' into Hot-Fix--Failing-cypress-test
bekossy Feb 16, 2024
c9c82e9
remove stop docker
aakrem Feb 16, 2024
27b234c
Merge pull request #1367 from Agenta-AI/Hot-Fix--Failing-cypress-test
aakrem Feb 16, 2024
60f90cb
Merge branch 'main' into issue-1309/-show-diff-of-outputs-in-the-eval…
bekossy Feb 16, 2024
8d768ba
Merge branch 'issue-1309/-show-diff-of-outputs-in-the-evaluation-view…
bekossy Feb 16, 2024
915e723
remove useless step
aakrem Feb 16, 2024
9baeb34
trigger workflows only on changes in the corresponding folder
aakrem Feb 16, 2024
e1a6bd4
run logs only when needed
aakrem Feb 16, 2024
a085c52
Merge pull request #1378 from Agenta-AI/backend-tests
aakrem Feb 16, 2024
e39af0a
Improved the error messages when invoking llm applications
mmabrouk Feb 16, 2024
3928d75
Revert "Improved the error messages when invoking llm applications"
mmabrouk Feb 16, 2024
db95b23
Improved the error messages when invoking llm applications
mmabrouk Feb 16, 2024
ecc6426
typo
mmabrouk Feb 16, 2024
78aad83
added reusable output diff component
bekossy Feb 16, 2024
4f70981
refactored comparison view and added diff feature to eval result view
bekossy Feb 16, 2024
4e24624
Merge branch 'main' into issue-1309/-show-diff-of-outputs-in-the-eval…
bekossy Feb 16, 2024
7d7e324
Merge pull request #1361 from Agenta-AI/issue-1309/-show-diff-of-outp…
mmabrouk Feb 16, 2024
5c88ab5
Merge pull request #1380 from Agenta-AI/feature/improve-error-message
mmabrouk Feb 16, 2024
34c5733
Merge pull request #1384 from Agenta-AI/main
aakrem Feb 18, 2024
7ff4d15
Merge pull request #1359 from Agenta-AI/add-revisions-endpoints
aakrem Feb 18, 2024
7c220b0
Merge pull request #1383 from HeonHeo23/main
aakrem Feb 18, 2024
344599b
docs: update README.md [skip ci]
allcontributors[bot] Feb 18, 2024
4387b7e
docs: update .all-contributorsrc [skip ci]
allcontributors[bot] Feb 18, 2024
866f910
Merge pull request #1385 from Agenta-AI/all-contributors/add-HeonHeo23
aakrem Feb 18, 2024
717e5b8
Merge branch 'main' into publish-new-release
aakrem Feb 18, 2024
e732602
add an action to publish bump versions
aakrem Feb 18, 2024
c4ede6c
small fixes
aakrem Feb 18, 2024
d8460ad
Merge pull request #1386 from Agenta-AI/publish-new-release
aakrem Feb 18, 2024
6dcfb90
remove token to use default github token
aakrem Feb 18, 2024
8e64dfd
add poetry
aakrem Feb 18, 2024
f412294
improve pr and commit message
aakrem Feb 18, 2024
0c489fa
Bump versions
aakrem Feb 18, 2024
57fa004
Merge pull request #1388 from Agenta-AI/bump-versions
aakrem Feb 18, 2024
8ae2768
Merge pull request #1389 from Agenta-AI/publish-new-release
aakrem Feb 18, 2024
78ba8b2
bumped sdk version to 0.12.2
bekossy Feb 23, 2024
03488aa
Merge pull request #1408 from Agenta-AI/hot-fix/-unbound-error
aakrem Feb 23, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,15 @@
"contributions": [
"code"
]
},
{
"login": "HeonHeo23",
"name": "Heon Heo",
"avatar_url": "https://avatars.githubusercontent.com/u/76820291?v=4",
"profile": "http://heonheo.com",
"contributions": [
"code"
]
}
],
"contributorsPerLine": 7,
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/bump-versions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Bump versions

on:
workflow_dispatch:
inputs:
bump-type:
description: "Bump Type"
required: true
default: "patch"
type: choice
options:
- patch
- minor
- major

jobs:
migrate-db-schema-stage:
name: Bump version
continue-on-error: false
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.9

- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -

- name: Bump versions
run: |
BUMP_TYPE=${{ inputs.bump-type }}
echo "Bumping versions to $BUMP_TYPE"
cd agenta-web
npm version $BUMP_TYPE
cd ..
cd agenta-cli
poetry version $BUMP_TYPE
cd ..
cd agenta-backend
poetry version $BUMP_TYPE

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Bump versions
author: ${{ github.actor }} <${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com>
branch: bump-versions
delete-branch: true
title: 'Bump versions'
body: |
New version in
- agenta-web
- agenta-backend
- agenta-cli

2 changes: 1 addition & 1 deletion .github/workflows/check-python-code-black.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: psf/black@stable
- uses: psf/black@23.12.0
20 changes: 14 additions & 6 deletions .github/workflows/run-backend-tests.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
name: Run Backend tests

on: [pull_request]
on:
pull_request:
paths:
- 'agenta-backend/**'
- 'docker-compose.yml'
- 'docker-compose.*.yml'
workflow_dispatch:
inputs:
debug:
description: 'Run Docker logs step (true/false)'
required: true
default: 'false'

jobs:
continous_integration:
pytest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -33,8 +44,5 @@ jobs:
run: sleep 10 && docker exec agenta-backend-test pytest

- name: Docker logs
if: always() #
if: github.event_name == 'workflow_dispatch' && github.event.inputs.debug == 'true'
run: docker ps -q | xargs -I {} docker logs {}

- name: Stop Docker Compose
run: docker-compose down
19 changes: 14 additions & 5 deletions .github/workflows/run-frontend-tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
name: Run Frontend tests

on: [pull_request]
on:
pull_request:
paths:
- 'agenta-web/**'
- 'docker-compose.yml'
- 'docker-compose.*.yml'
workflow_dispatch:
inputs:
debug:
description: 'Run Docker logs step (true/false)'
required: true
default: 'false'

env:
OPENAI_API_KEY: ${{ secrets.NEXT_PUBLIC_OPENAI_API_KEY }}

Expand Down Expand Up @@ -49,8 +61,5 @@ jobs:
run: cd agenta-web/ && npm run test

- name: Docker logs
if: always() #
if: github.event_name == 'workflow_dispatch' && github.event.inputs.debug == 'true'
run: docker ps -q | xargs -I {} docker logs {}

- name: Stop Docker Compose
run: docker-compose down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,7 @@ agenta-web/cypress/screenshots/
agenta-web/cypress/videos/
.nextjs_cache/

rabbitmq_data
rabbitmq_data

# docker compose override
docker-compose.*override.yaml
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Check out our [Contributing Guide](https://docs.agenta.ai/contributing/getting-s
## Contributors ✨

<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-39-orange.svg?style=flat-square)](#contributors-)
[![All Contributors](https://img.shields.io/badge/all_contributors-40-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
Expand Down Expand Up @@ -219,6 +219,7 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<td align="center" valign="top" width="14.28%"><a href="https://github.com/brockWith"><img src="https://avatars.githubusercontent.com/u/105627491?v=4?s=100" width="100px;" alt="brockWith"/><br /><sub><b>brockWith</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=brockWith" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://denniszelada.wordpress.com/"><img src="https://avatars.githubusercontent.com/u/219311?v=4?s=100" width="100px;" alt="Dennis Zelada"/><br /><sub><b>Dennis Zelada</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=denniszelada" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="https://github.com/romainrbr"><img src="https://avatars.githubusercontent.com/u/10381609?v=4?s=100" width="100px;" alt="Romain Brucker"/><br /><sub><b>Romain Brucker</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=romainrbr" title="Code">💻</a></td>
<td align="center" valign="top" width="14.28%"><a href="http://heonheo.com"><img src="https://avatars.githubusercontent.com/u/76820291?v=4?s=100" width="100px;" alt="Heon Heo"/><br /><sub><b>Heon Heo</b></sub></a><br /><a href="https://github.com/Agenta-AI/agenta/commits?author=HeonHeo23" title="Code">💻</a></td>
</tr>
</tbody>
</table>
Expand Down
14 changes: 5 additions & 9 deletions agenta-backend/agenta_backend/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import asyncio
from contextlib import asynccontextmanager

Expand All @@ -12,18 +11,18 @@
human_evaluation_router,
evaluators_router,
observability_router,
organization_router,
testset_router,
user_profile,
variants_router,
bases_router,
configs_router,
health_router,
)
from agenta_backend.utils.common import isCloudEE
from agenta_backend.models.db_engine import DBEngine
from agenta_backend.open_api import open_api_tags_metadata

if os.environ["FEATURE_FLAG"] in ["cloud", "ee"]:
if isCloudEE():
from agenta_backend.commons.services import templates_manager
else:
from agenta_backend.services import templates_manager
Expand Down Expand Up @@ -71,12 +70,12 @@ async def lifespan(application: FastAPI, cache=True):
allow_headers=allow_headers,
)

if os.environ["FEATURE_FLAG"] not in ["cloud", "ee"]:
if not isCloudEE():
from agenta_backend.services.auth_helper import authentication_middleware

app.middleware("http")(authentication_middleware)

if os.environ["FEATURE_FLAG"] in ["cloud", "ee"]:
if isCloudEE():
import agenta_backend.cloud.main as cloud

app, allow_headers = cloud.extend_main(app)
Expand All @@ -102,13 +101,10 @@ async def lifespan(application: FastAPI, cache=True):
app.include_router(
observability_router.router, prefix="/observability", tags=["Observability"]
)
app.include_router(
organization_router.router, prefix="/organizations", tags=["Organizations"]
)
app.include_router(bases_router.router, prefix="/bases", tags=["Bases"])
app.include_router(configs_router.router, prefix="/configs", tags=["Configs"])

if os.environ["FEATURE_FLAG"] in ["cloud", "ee"]:
if isCloudEE():
import agenta_backend.cloud.main as cloud

app = cloud.extend_app_schema(app)
51 changes: 0 additions & 51 deletions agenta-backend/agenta_backend/migrations/README.md

This file was deleted.

Loading
Loading