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 extension and test download logic with separate endpoints #238

Merged
merged 13 commits into from
Jan 21, 2025

Conversation

Luc45
Copy link
Member

@Luc45 Luc45 commented Jan 17, 2025

This PR refactors the rules for downloading extensions and tests by introducing two separate endpoints - one for extensions and one for tests. It clarifies access control for both WPORG and WCCOM extensions:

  • WPORG extensions (and their tests) can be downloaded by anyone (Anonymous users and all Partners).
  • WCCOM extensions (and their tests) can only be downloaded by the Partner who owns the extension (with future plans to allow them to share access with other Partner Developers).

Having separate endpoints simplifies the authorization flow and helps avoid issues (e.g., slugs that don't exist in either marketplace).

@Luc45 Luc45 requested a review from a team January 17, 2025 17:17
@Luc45 Luc45 self-assigned this Jan 17, 2025
@zhongruige
Copy link
Contributor

@Luc45 saw you requested review but this is still in draft, just wanted to check if it's meant to be ready or still a WIP. Thanks!

@Luc45
Copy link
Member Author

Luc45 commented Jan 17, 2025

@Luc45 saw you requested review but this is still in draft, just wanted to check if it's meant to be ready or still a WIP. Thanks!

Sorry, misclicked. I'll remove the review request for now to do a final pass on this PR and mark it as ready for review again.

@Luc45 Luc45 removed the request for review from a team January 17, 2025 19:07
@Luc45 Luc45 marked this pull request as ready for review January 20, 2025 19:09
@Luc45 Luc45 requested a review from a team January 20, 2025 19:25
@Luc45 Luc45 merged commit b76298d into trunk Jan 21, 2025
17 checks passed
@Luc45 Luc45 deleted the 24-12/download-ext-and-tests branch January 21, 2025 23:07
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.

2 participants