Skip to content

Add a release page - #407

Open
StevenDufresne wants to merge 89 commits into
WordPress:trunkfrom
StevenDufresne:try/release-page
Open

StevenDufresne wants to merge 89 commits into
WordPress:trunkfrom
StevenDufresne:try/release-page

Conversation

@StevenDufresne

@StevenDufresne StevenDufresne commented Oct 28, 2024 •

Copy link
Copy Markdown
Contributor

Related https://meta.trac.wordpress.org/ticket/7783.

This PR adds the "Releases" tab behind a feature flag show_release_beta so we can work together on the site.

TODO:
Everything seems to be working properly, however, there seems to be a race condition where the first view doesn't reliably display. You can reproduce it sometimes by loading the release page often. The content will not be displayed.

@tellyworth

Copy link
Copy Markdown
Contributor

@StevenDufresne I think the CPT code is kinda-sorta functional, thought not really hooked up to anything yet.

I've added a bin script you can use to (re)generate CPT entries for a specific plugin for testing purposes:

php bin/update-release-cpt.php --plugin=debug-bar

Next step is to properly hook this up to the main Plugin Directory class, and add some internal and REST APIs.

StevenDufresne and others added 12 commits November 25, 2024 05:12
Not sure this logic is quite right, since I'm only creating the draft when the version number doesn't already exist as a release.

I think this probably needs to be a revision # check, but the revision isn't yet stored for all releases; I'll look at that tomorrow.
… release

Needs more testing. Not sure if having the 'date' part is a good idea.
The tag and version values are both stored in postmeta if needed
…ges.

It might be ok to run it synchronously like this; otherwise I'll move it to an async job.

The Plugin_Check class isn't quite complete yet. It's copied from the code in the upload handler shortcode; we should replace that with a call to the class when it's complete.
bazza pushed a commit that referenced this pull request Dec 18, 2024
bazza pushed a commit that referenced this pull request Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: 🏗 In progress

Development

Successfully merging this pull request may close these issues.

4 participants