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

Refactor API Endpoints into Services Folder #1623

Merged
merged 26 commits into from
Jun 12, 2024

Conversation

bekossy
Copy link
Member

@bekossy bekossy commented May 7, 2024

Related Issue

Closes #1622

To QA this please:

  • - Dynamically imported component work properly (Prompt versioning drawer in Playground)
  • - Dynamically imported services work properly (Prompt Revisions and Versioning in the Playground)
  • - General overview to ensure that all API endpoints are functioning correctly and returning the expected responses

Related PR in commons

Pull Request: #51

Copy link

vercel bot commented May 7, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
agenta ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 5:30pm

@bekossy bekossy marked this pull request as ready for review May 8, 2024 05:54
@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. refactoring typescript labels May 8, 2024
@aakrem
Copy link
Collaborator

aakrem commented May 14, 2024

@bekossy can you have a look at the comments please

@dosubot dosubot bot added size:XXL This PR changes 1000+ lines, ignoring generated files. and removed size:XL This PR changes 500-999 lines, ignoring generated files. labels May 14, 2024
Copy link
Member

@mmabrouk mmabrouk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some conflicts here. @bekossy can you fix these. @aakrem can you pleaes prioritise reviewing this since it is prone to conflicts if we keep it open.

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. and removed size:XXL This PR changes 1000+ lines, ignoring generated files. labels May 17, 2024
@bekossy bekossy requested a review from aakrem May 17, 2024 10:40
@bekossy bekossy marked this pull request as ready for review June 4, 2024 14:43
@dosubot dosubot bot added the Frontend label Jun 4, 2024
Copy link
Collaborator

@aakrem aakrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bekossy Thanks for the PR
I suggest adding a folder that contains all api files at it's not clear what exactly service/index.tx file
Example
services/deployment/api/index.ts
services/evaluations/api/index.ts
we can keep services/api.ts for now for shared api methods

@bekossy bekossy requested review from aakrem and removed request for aakrem June 7, 2024 13:58
Copy link
Collaborator

@aakrem aakrem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me thank you @bekossy
can we please look at the failing cypress tests

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jun 7, 2024
@aakrem
Copy link
Collaborator

aakrem commented Jun 12, 2024

@bekossy thanks a lot for the PR!

@aakrem aakrem merged commit bf3d847 into main Jun 12, 2024
8 checks passed
@aakrem aakrem deleted the issue-1622/-Refactor-API-Endpoints-into-Services-Folder branch June 12, 2024 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frontend lgtm This PR has been approved by a maintainer refactoring size:XL This PR changes 500-999 lines, ignoring generated files. typescript
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement]: Refactor API Endpoints into Services Folder
4 participants