Skip to content

add create project tool #82

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

Merged
merged 8 commits into from
Apr 22, 2025
Merged

add create project tool #82

merged 8 commits into from
Apr 22, 2025

Conversation

blva
Copy link
Collaborator

@blva blva commented Apr 16, 2025

@coveralls
Copy link
Collaborator

coveralls commented Apr 16, 2025

Pull Request Test Coverage Report for Build 14590701503

Details

  • 8 of 31 (25.81%) changed or added relevant lines in 3 files are covered.
  • 4 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.9%) to 50.118%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/common/atlas/apiClient.ts 0 8 0.0%
src/tools/atlas/createProject.ts 7 22 31.82%
Files with Coverage Reduction New Missed Lines %
src/common/atlas/apiClient.ts 4 8.0%
Totals Coverage Status
Change from base Build 14502491127: -0.9%
Covered Lines: 401
Relevant Lines: 696

💛 - Coveralls

@blva blva requested review from fmenezes and gagik and removed request for fmenezes April 16, 2025 16:09
@blva blva requested a review from nirinchev April 16, 2025 17:25
Copy link
Collaborator

@nirinchev nirinchev left a comment

Choose a reason for hiding this comment

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

I'm sorry about the merge conflicts - I really should have merged the integration tests refactor earlier, but got distracted. Hope it's not too much hassle to resolve the conflicts. PR looks good otherwise - my comments are mostly related to tasks and design decisions outside of this PR and are non-blocking.

protected operationType: OperationType = "create";
protected argsShape = {
projectName: z.string().describe("Name for the new project"),
organizationId: z.string().describe("Organization ID for the new project"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

When testing, have you noticed models be consistently good about discovering the correct org id or is this something users will be prompted to fill out?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

no, this one is a bit more tricky since it involves project creation it can be expected that uses didn't do any operations to their org. but your comment made me realize that we might have room to generate the project name at least, we don't need to prompt for that

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the org id would be quite annoying for people to figure out - is there no way to obtain the org id from the token or some other API? If I'm chatting with an LLM and I need to go open the browser to figure out what my org id is, I might as well go ahead and create my project then and there.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we will need an atlas-list-orgs tool otherwise this is unusable

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wouldn't create a tool to create orgs given service accounts are scoped per orgs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok, I'll add list orgs and try

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

added it, however I'm wondering if we should ask the user first if we can create it with the found org id, but i added using assumption

Copy link
Collaborator

@gagik gagik 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 🚀 just the unused vars

@blva
Copy link
Collaborator Author

blva commented Apr 22, 2025

I'll merge with the coverage decreased as the tests for the atlas tool are being added in a separate PR

@blva blva merged commit 58dc5bd into main Apr 22, 2025
4 of 5 checks passed
@blva blva deleted the create-project branch April 22, 2025 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Atlas] Add tool to create project
5 participants