Skip to content

Add Astro backend for user and team management - #263

Open
sbbwagh wants to merge 5 commits into
redhat-data-and-ai:mainfrom
sbbwagh:feature/add-astro-backend
Open

Add Astro backend for user and team management#263
sbbwagh wants to merge 5 commits into
redhat-data-and-ai:mainfrom
sbbwagh:feature/add-astro-backend

Conversation

@sbbwagh

@sbbwagh sbbwagh commented Apr 21, 2026

Copy link
Copy Markdown

Changes

📝 Description

What changed?

Astro backend for user and team management

Why is this change needed?

To Add Astro backend for user and team management

Dependencies

  • N/A

🧪 Testing

Test Coverage

Performance Impact

  • N/A

🚀 Deployment

Deploy Steps

  1. N/A

Prerequisites

  • N/A

Post-Deployment Monitoring

  • N/A

Rollback Plan

  • N/A

⚠️ Breaking Changes

  • This PR contains breaking changes
  • Migration guide provided (if applicable)

Details:

  • N/A

⚙️ Configuration Changes

  • N/A

✅ Developer Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added positive and negative tests that prove my fix is effective or that my feature works
  • Relevant documentation (README, tech specs, etc.) has been added or updated
  • All CI/CD checks are passing

Signed-off-by: Shubham <shwagh@redhat.com>
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new backend integration for Astro, enabling user and team management capabilities. The changes include the creation of a dedicated client package with comprehensive API interaction methods, corresponding unit tests, and the necessary configuration updates to integrate this new backend into the existing infrastructure.

Highlights

  • Astro Backend Integration: Implemented a new Astro backend client to manage users and teams, including support for pagination and API authentication.
  • Configuration Updates: Updated the default application configuration to include the necessary settings for the Astro backend.
  • Client Factory Expansion: Registered the new Astro client in the central client factory to enable its use within the application.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.


New backend added to the flow, To manage teams and users so, With Astro now the data flies, Underneath the open skies.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new Astro backend client to the Usernaut operator, enabling user and team synchronization with the Astronomer platform. The implementation includes comprehensive support for user invitations, team management, and membership reconciliation, along with associated unit tests and configuration updates. Feedback focuses on improving performance by parallelizing sequential delete operations using errgroup, ensuring explicit handling of type assertions during client initialization, and enhancing error messages with numeric HTTP status codes for better debugging.

Comment thread pkg/clients/astro/team_membership.go
Comment thread pkg/clients/astro/client.go
Comment thread pkg/clients/astro/client.go
Comment thread appconfig/default.yaml Outdated
Comment thread pkg/clients/astro/client.go Outdated
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/users.go
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/client.go Outdated
Comment thread pkg/clients/astro/client.go
Comment thread pkg/clients/astro/users.go
Comment thread pkg/clients/astro/users.go
Comment thread pkg/clients/astro/users.go
Signed-off-by: Shubham <shwagh@redhat.com>
@sbbwagh
sbbwagh requested a review from vinamra28 May 13, 2026 14:55
Comment thread pkg/clients/astro/users.go Outdated
Comment thread pkg/clients/astro/users.go Outdated
Shubham added 2 commits June 25, 2026 10:27
Signed-off-by: Shubham <shwagh@redhat.com>
Signed-off-by: Shubham <shwagh@redhat.com>
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/types.go Outdated
Comment thread pkg/clients/astro/users.go Outdated
Comment thread pkg/clients/astro/team_membership.go Outdated
Comment thread pkg/clients/astro/teams.go Outdated
Comment thread pkg/clients/astro/users.go
Comment thread pkg/clients/astro/client.go
Signed-off-by: Shubham <shwagh@redhat.com>
@sbbwagh
sbbwagh requested a review from vinamra28 July 23, 2026 05:08
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