Skip to content

Conversation

@adilansari
Copy link
Contributor

@adilansari adilansari commented Dec 2, 2025


Summary by Gitar

  • New API endpoint:
    • Added GET /v1/providers/{provider_id}/orgs/{org_id} to retrieve individual organization details
  • New schema:
    • GetOrganizationResponse wraps OrgInfo in data property, consistent with ListOrganizationsResponse

@vercel
Copy link

vercel bot commented Dec 2, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-redirect Building Building Preview Comment Dec 2, 2025 1:03pm
tigris-os-docs Ready Ready Preview Comment Dec 2, 2025 1:03pm

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Dec 2, 2025

Greptile Overview

Greptile Summary

Adds a new GET /v1/providers/{provider_id}/orgs/{org_id} endpoint to retrieve details of a specific organization, complementing the existing list and update organization endpoints.

  • Added Tigris_GetOrganization operation with provider_id and org_id path parameters
  • Created new GetOrganizationResponse schema returning OrgInfo wrapped in a data property
  • Follows existing API patterns for error handling with GenericError for unexpected errors

Confidence Score: 4/5

  • This PR is safe to merge - straightforward API documentation addition with no breaking changes
  • Simple, additive change that follows existing patterns in the API specification. Only concern is minor schema inconsistency (missing required field) which doesn't affect functionality.
  • No files require special attention

Important Files Changed

File Analysis

Filename Score Overview
static/api/extensions/v1/api.yaml 4/5 Adds GET endpoint for fetching single organization details and corresponding GetOrganizationResponse schema. Minor inconsistency: GetOrganizationResponse lacks required: - data unlike ListOrganizationsResponse.

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Comment on lines +1231 to +1235
GetOrganizationResponse:
type: object
properties:
data:
$ref: "#/components/schemas/OrgInfo"
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Consider adding required: - data for consistency with ListOrganizationsResponse which has required: - data. Without it, the schema allows data to be omitted from responses.

Suggested change
GetOrganizationResponse:
type: object
properties:
data:
$ref: "#/components/schemas/OrgInfo"
GetOrganizationResponse:
type: object
required:
- data
properties:
data:
$ref: "#/components/schemas/OrgInfo"
Prompt To Fix With AI
This is a comment left during a code review.
Path: static/api/extensions/v1/api.yaml
Line: 1231:1235

Comment:
**style:** Consider adding `required: - data` for consistency with `ListOrganizationsResponse` which has `required: - data`. Without it, the schema allows `data` to be omitted from responses.

```suggestion
    GetOrganizationResponse:
      type: object
      required:
        - data
      properties:
        data:
          $ref: "#/components/schemas/OrgInfo"
```

How can I resolve this? If you propose a fix, please make it concise.

@gitar-bot
Copy link

gitar-bot bot commented Dec 2, 2025

Gitar Rules 🎸 1 action taken

Gitar Rules

🎸 PR Summary Enhancement: Summary already present with API endpoint details
Fix Typos: Verified no typos; proper API terminology used
Flaky Test Retry: All CI checks passed; no failures detected
Log Statement Consistency: No log statements in OpenAPI spec changes
Rule Quality Standards: No Gitar rule markdown files in this PR
  • Auto-apply suggestions - Allow Gitar to commit updates to this branch

Was this helpful? React with 👍 / 👎 | This comment will update automatically (Docs)

@adilansari adilansari merged commit 307d937 into main Dec 3, 2025
10 checks passed
@adilansari adilansari deleted the get-org-partner branch December 3, 2025 14:15
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.

3 participants