Skip to content

Conversation

@AdityaHegde
Copy link
Collaborator

@AdityaHegde AdityaHegde commented May 12, 2025

During deploy we need to prefetch project permissions and show a modal for requesting access.

Adding GetProject to local service. This doesnt fetch deployment and jwt, to achieve this adding skip_deployment to admin API.

Checklist:

  • Covered by tests
  • Ran it and it works as intended
  • Reviewed the diff before requesting a review
  • Checked for unhandled edge cases
  • Linked the issues it closes
  • Checked if the docs need to be updated
  • Intend to cherry-pick into the release branch
  • I'm proud of this work!

Comment on lines 974 to 975
// Skips fetching deployment and jwt related to querying deployment
bool skip_deployment = 6;
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you going to be calling this endpoint in a poll loop? Otherwise, I'd prefer to just keep the API simple and always return the deployment info (it's relatively cheap to generate).

Copy link
Collaborator Author

@AdityaHegde AdityaHegde Jun 4, 2025

Choose a reason for hiding this comment

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

Right now it is used only when we select a project to re-deploy to. I can remove this if it is cheap.

@AdityaHegde AdityaHegde merged commit 5366b66 into main Jun 4, 2025
13 of 14 checks passed
@AdityaHegde AdityaHegde deleted the feat/get-project-local-service-api branch June 4, 2025 13:19
grahamplata pushed a commit that referenced this pull request Jun 4, 2025
…permissions during deploy (#7297)

* Add a mirring GetProject API to local service

* Remove skip_deployment
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