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

Add new external media endpoint #40145

Closed
wants to merge 52 commits into from
Closed

Commits on Nov 12, 2024

  1. Configuration menu
    Copy the full SHA
    bd5e753 View commit details
    Browse the repository at this point in the history
  2. changelog

    zaerl committed Nov 12, 2024
    Configuration menu
    Copy the full SHA
    c9b92d7 View commit details
    Browse the repository at this point in the history
  3. Backup: Add next daily backup schedule time (#39914)

    * Set up react-query, moment and typescript
    
    * changelog
    
    * Add endpoint to fetch site backup schedule time
    
    * Setup react-query (queryClientProvider)
    
    * Add useScheduledTimeQuery hook to fetch schedule time
    
    * Add hook to parse and return the next backup schedule time
    
    * Add component to render the next scheduled backup message
    
    * Fix record Tracks event
    
    * Removing changelog for migration and core plugin
    
    * Bump `Automattic\Jetpack\Backup` namespace to V0005
    
    * changelog
    
    * Bump `Automattic\Jetpack\Transport_Helper` to V0005
    
    * Remove `between` to make `Modify` fit in the same line
    
    * Fix pnpm lock
    Initsogar authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    a512d13 View commit details
    Browse the repository at this point in the history
  4. Repo Gardening: allow escalating issues to multiple groups (#39973)

    * Repo Gardening: allow escalating issues to multiple groups
    
    Up until now, once we had sent one Slack notification about an issue, we couldn't send another to a different team. This was problematic given that we attempt to warn about escalated issues to 2 different teams:
    
    - Product Ambassador HEs in the Triage Issues task
    - Dev teams in the Update Board task
    
    By splitting things into 2 different labels ("[Status] Priority Review Triggered" for dev teams, "[Status] Escalated to Product Ambassadors" for Product ambassadors), we can now send notifications to two different teams.
    
    It is not the perfect solution since ideally, we'd want to allow notifications per Slack channel instead of per team, but:
    
    - There is currently no better way to warn about an issue already escalated than to add a label.
    - We cannot really use the Slack channel ID in the label name, that would be odd.
    
    * Simplify check before we send slack notification
    
    This was added in #30100, but it ends up blocking legitimate messages from being sent.
    
    * Move checking for labels out of the Slack notification function
    
    This should be handled by each task calling the function, for more flexibility, and a simpler notification function.
    
    * Remove Update Board task
    
    We'll merge it into the existing triage issues task. It is not very intuitive to have this being two different tasks, when both perform actions that can be described as issue triage. It also makes the codebase more approachable, and will allow us to extract / centralize some of the logic that was used in both tasks.
    
    * Extract more label detection functions
    
    * Extract AI labeling into its own file
    
    It should make it a bit easier for folks to contribute.
    
    * Add new Project board management "sub-task" for triageIssues
    
    * Document the new actions performed by the Triage issues task
    
    * Extract method used to find the priority of an issue
    
    * Bring it all together in the update triageIssues task
    
    * Fix argument order
    
    * Add missing argument
    
    * Remove unnecessary state check (we check earlier) & add logging
    
    * Remove files that are no longer used
    
    * Add label when issue is automatically triaged to project board
    
    See pfVjQF-55-p2#comment-119
    
    * Update label name
    
    See pfVjQF-55-p2#comment-127
    
    * Switch to major version bump
    
    See #39973 (comment)
    
    * Update to new label value format
    
    See #39973 (comment)
    
    * Simplify check for existing labels on issues
    
    See #39973 (comment)
    
    This is similar to what was already done in 148b28c
    
    * Better clarify where issue priority comes from, and use it
    
    Let's not attempt to add a label to an issue when it is already on the issue.
    
    See #39973 (comment)
    jeherve authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    f05867c View commit details
    Browse the repository at this point in the history
  5. General: Bump minimum WordPress version to 6.6 (#40146)

    * Bump minimum WP version to 6.6
    
    * Match WP tested version to readme
    
    * Add changelogs
    
    * Remove 7.0 tests
    
    * Update comments with more recent data
    
    * Update composer.lock
    
    * Fix comment
    tbradsha authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    b42824f View commit details
    Browse the repository at this point in the history
  6. Coming Soon: Change the color on the coming soon banner to new WordPr…

    …ess blue (#39966)
    
    * Update color on WP.com coming soon banner
    
    ---------
    
    Co-authored-by: Kateryna Kodonenko <[email protected]>
    Co-authored-by: Brandon Kraft <[email protected]>
    3 people authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    04af86b View commit details
    Browse the repository at this point in the history
  7. Jetpack AI: Adding "transform list into table" functionality back to …

    …AI Assistant (#40148)
    
    * Jatpack AI: Adding "transform list into table" functionality back to AI Assistant
    
    * changelog
    mwatson authored Nov 12, 2024
    Configuration menu
    Copy the full SHA
    c663031 View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2024

  1. Repo Gardening: update conditions when AI Labelling is triggered (#40106

    )
    
    See pdqkMK-1lq-p2#comment-1657
    
    We now want to trigger AI Labelling for all newly opened issues, as long as they do not have the "[Type] Task" label (since those are typically created for projects). We do not require a custom label anymore.
    jeherve authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    6baa6d5 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0b45b96 View commit details
    Browse the repository at this point in the history
  3. Additional CSS: Update the upgrade nudge with the correct plan (#40107)

    * Additional CSS: Update the upgrade nudge with the correct plan
    
    * Add translators comment and docblock.
    
    * Use FQCN
    
    * Fix broken test
    
    * Fix tests
    
    * Mock method for the Atomic test
    
    * Fix test and linting.
    
    * Update assert
    
    * Update tests and fix linting.
    
    * Linting.
    
    * Disable deprecation for setMethods.
    BogdanUngureanu authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    bfe4286 View commit details
    Browse the repository at this point in the history
  4. Add missing endpoint

    zaerl committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    9cd7a8f View commit details
    Browse the repository at this point in the history
  5. Fix phan errors

    zaerl committed Nov 13, 2024
    Configuration menu
    Copy the full SHA
    cd25cb0 View commit details
    Browse the repository at this point in the history
  6. Jetpack AI: add featured image styles support (#40113)

    * adapt guessStyle to recieve request type and pass down contextual content
    
    * append revised_prompt to image promise response
    
    * add initialPrompt and initialStyle for AI modal component, cleanup dependencies on hooks
    
    * only allow style guessing if handler is provided
    
    * add effect to be able to update prompt from props
    
    * add style parameter and adjust autostart handler to guess style on first generation. Fix all sort of shenanigans with typescript linter
    
    * changelog
    
    * pass down post title for context
    
    * add minPromptLength to validate/toggle button on prompt
    
    * fix a problem with contentEditable elements where browsers will add a default <br> when empty, hence preventing our data-placeholder to show up on seemingly empty input
    
    * allow ai modal to pass down minPromptLength validation
    
    * fix wrong parameter name for userPrompt
    
    * do not allow generation if post and prompt are empty
    CGastrell authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    ebef826 View commit details
    Browse the repository at this point in the history
  7. Repo Gardening: cover more use-cases of changelog files (#40160)

    * Repo Gardening: cover more use-cases of changelog files
    
    We should avoid adding a "Docs" label when a changelog.md file is modified, even if that file name does not use uppercase, or if that file is at the root of the repo.
    
    * Update projects/github-actions/repo-gardening/src/tasks/add-labels/index.js
    
    Co-authored-by: Brad Jorsch <[email protected]>
    
    ---------
    
    Co-authored-by: Brad Jorsch <[email protected]>
    jeherve and anomiex authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    d7d7102 View commit details
    Browse the repository at this point in the history
  8. ci: Fix coverage munger with no coverage (#40150)

    If the PR has no PHP and/or JS coverage data, the `process-coverage.sh`
    script should do the right thing instead of failing.
    anomiex authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    3669f38 View commit details
    Browse the repository at this point in the history
  9. Jetpack Sync: Add 'od_url_metrics' in blacklisted post types (#40158)

    * Jetpack Sync: Add 'od_url_metrics' in blacklisted post types
    fgiannar authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    bbe16de View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    410917f View commit details
    Browse the repository at this point in the history
  11. General: Bump minimum PHP version to 7.2 (#40147)

    * Bump minimum WP version to 6.6
    
    * Match WP tested version to readme
    
    * Add changelogs
    
    * Remove 7.0 tests
    
    * Update comments with more recent data
    
    * Update composer.lock
    
    * Fix comment
    
    * Backup: Add next daily backup schedule time (#39914)
    
    * Set up react-query, moment and typescript
    
    * changelog
    
    * Add endpoint to fetch site backup schedule time
    
    * Setup react-query (queryClientProvider)
    
    * Add useScheduledTimeQuery hook to fetch schedule time
    
    * Add hook to parse and return the next backup schedule time
    
    * Add component to render the next scheduled backup message
    
    * Fix record Tracks event
    
    * Removing changelog for migration and core plugin
    
    * Bump `Automattic\Jetpack\Backup` namespace to V0005
    
    * changelog
    
    * Bump `Automattic\Jetpack\Transport_Helper` to V0005
    
    * Remove `between` to make `Modify` fit in the same line
    
    * Fix pnpm lock
    
    * Bump PHP 7.0 refs
    
    * Clean up false positive
    
    * setMethods → onlyMethods
    
    * Add changelogs
    
    * Bump PHP 7.0 refs
    
    * Clean up false positive
    
    * setMethods → onlyMethods
    
    * Add changelogs
    
    * More changelogs
    
    * Remove suppression for old PHP versions
    
    * Make PHPCS and Phan rules match
    
    * Docs tweak
    
    Co-authored-by: Brad Jorsch <[email protected]>
    
    * Remove comment
    
    Co-authored-by: Brad Jorsch <[email protected]>
    
    * Remove inaccurate changelogs
    
    * Make params explicitly nullable
    
    * Oops: onlyMethods → addMethods
    
    * Another onlyMethods → addMethods
    
    * Last one
    
    * Split existing and new methods to mock
    
    * Prevent error when not adding new methods
    
    * Update Phan baselines
    
    * Use a more recent theme
    
    * Remove unneeded @requires
    
    * Update composer.lock
    
    * Debug
    
    * More debug
    
    * Remove debug
    
    * Remove more debug
    
    * Oops, missed one
    
    * Add another changelog
    
    ---------
    
    Co-authored-by: Rafael Agostini <[email protected]>
    Co-authored-by: Brad Jorsch <[email protected]>
    3 people authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    e2ab2c1 View commit details
    Browse the repository at this point in the history
  12. Repo Gardening: update Type column in project board based off label (#…

    …40110)
    
    * Repo Gardening: update Type column in project board based off label
    
    If we can extract the type of the issue from the labels, we will update our project board's "Type" column accordingly.
    
    * Get rid of extra label check when an issue is being labeled
    
    The added label is already returned by getLabels.
    
    * Simplify issue type management
    
    I made some changes to the One Board settings to make things simpler.
    
    * Fix project type extraction
    
    * Fix string check
    jeherve authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    e1fd272 View commit details
    Browse the repository at this point in the history
  13. Protect: Add Scan tab threat count (#40056)

    * Add threat count to scan tab
    
    * changelog
    dkmyta authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    88d9ec8 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    494d36b View commit details
    Browse the repository at this point in the history
  15. Protect Status: Add a threats list property to the status, and deprec…

    …ate properties it replaces (#40097)
    nateweller authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    a24a5f6 View commit details
    Browse the repository at this point in the history
  16. Backup: fix backup pricing placeholder (#40157)

    * Fix backup pricing card loading placeholder
    
    * Changelog
    Initsogar authored Nov 13, 2024
    Configuration menu
    Copy the full SHA
    3eeff5b View commit details
    Browse the repository at this point in the history

Commits on Nov 14, 2024

  1. Remove json_decode

    zaerl committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    53cd95d View commit details
    Browse the repository at this point in the history
  2. Add HTTP header injection

    zaerl committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    612faa7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    486a04b View commit details
    Browse the repository at this point in the history
  4. Fix: return type

    zaerl committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    d8d592d View commit details
    Browse the repository at this point in the history
  5. Social: Add utm toggle sync (#40144)

    * Sync new option
    
    * changelog
    gmjuhasz authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    7b6f3e3 View commit details
    Browse the repository at this point in the history
  6. Add direct output of binary

    zaerl committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    e0cdabc View commit details
    Browse the repository at this point in the history
  7. Add checks for output error

    zaerl committed Nov 14, 2024
    Configuration menu
    Copy the full SHA
    f7a2f86 View commit details
    Browse the repository at this point in the history
  8. Jetpack AI: Make sure we validate that the new option exists (#40186)

    * Jetpack AI: Make sure we validate that the new option exists
    
    * changelog
    mwatson authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    47bfdb5 View commit details
    Browse the repository at this point in the history
  9. Update/wpcomsh package to sync growth constant features (#40187)

    * Add growth plans to features in wpcomsh to sync with wpcom
    
    * changelog
    CodeyGuyDylan authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    b5dede3 View commit details
    Browse the repository at this point in the history
  10. Add/jetpack growth to constants (#40176)

    * Add Jetpack Growth to constants
    
    * changelog
    
    * Update projects/plugins/jetpack/_inc/client/lib/plans/constants.js
    
    Co-authored-by: Bryan Elliott <[email protected]>
    
    * Explicitly set the growth icon to the generic Jetpack icon like the other bundles
    
    * Add growth to get monthly product by yearly function
    
    ---------
    
    Co-authored-by: Bryan Elliott <[email protected]>
    CodeyGuyDylan and elliottprogrammer authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    fcf3010 View commit details
    Browse the repository at this point in the history
  11. coverage: Always process coverage, even if tests fail (#40167)

    First, for projects that have both JS and PHP tests or multiple suites
    of tests, run all the tests for coverage even if one fails. Mostly this
    means using the `concurrently` package, since that's a very easy way to
    run both and collect the exit statuses.
    
    Then, in the workflow itself, add `always()` to the `if` on the step for
    processing coverage reports so it runs even if the tests failed to
    process whatever data is available.
    anomiex authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    bbb0564 View commit details
    Browse the repository at this point in the history
  12. Jetpack: show connection cards with disabled promotions (#40179)

    Mark Jetpack Dashboard connection cards as "not promotional" to make them always show up properly.
    sergeymitr authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    1f68cdf View commit details
    Browse the repository at this point in the history
  13. Migrate to WordPress.com: remove the plugin (#40166)

    * Migrate to WordPress.com: remove the plugin
    
    The plugin is now developed by a partner, and no longer by a12s. The version currently available in the Jetpack monorepo no longer matches the version available in the WordPress.org plugin directory.
    
    This commit removes all contents of the plugin in the monorepo, and only leaves indicators that this specific version (and its mirror repo and Packagist package) are no longer maintained, and archived.
    
    * Add some basic files back
    
    * Add lock file back
    
    * Add gitattributes back
    
    * Add more files back
    
    * Add changelog back
    
    * Update lock file
    
    * Remove note from changelog file
    
    I believe it's tripping our changelog validity check
    
    * Remove the plugin entirely
    
    * Remove changelog entry
    jeherve authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    fa3e13d View commit details
    Browse the repository at this point in the history
  14. Codesniffer: remove PHP 7.0 and 7.1 support (#40174)

    * Update supported versions
    
    * Get script artifacts
    
    * Update docs
    
    * Remove rule redundant to PHPCompatibility.FunctionDeclarations.RemovedImplicitlyNullableParam.Deprecated
    
    * Update tests
    
    * Add changelog
    
    * Add LC_ALL
    
    * Adjust shebang
    tbradsha authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    8ee1c37 View commit details
    Browse the repository at this point in the history
  15. tools: Run jetpack install --root when releasing plugins (#40193)

    If this hasn't been done in a while, various later steps may fail due to
    things like phpcs being out of date or parallel-lint being missing. It's
    straightforward enough to have the script do it and avoid these problems.
    anomiex authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    a4ea55a View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    13cb3bc View commit details
    Browse the repository at this point in the history
  17. cli: Rewrite test command (#40175)

    Bring in a few new features:
    
    * Ability to specify multiple projects to test, which will be run in
      parallel if `--verbose` is not used.
    * Correct handling of tests that use `ARTIFACTS_DIR`.
    * Correct handling of coverage tests, without having to manually set
      `COVERAGE_DIR`.
    * Coverage tests now generate an HTML report by default.
    
    Unfortunately, there are some breaking changes here:
    
    * The order of the "test" and "project" arguments has changed.
    * By default the output from PHPUnit or jest will no longer be shown.
      Run with `--verbose` if you want to see it.
    anomiex authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    b8f11c6 View commit details
    Browse the repository at this point in the history
  18. jetpack: Limit test-coverage concurrency (#40195)

    Too many different projects with too many threads makes a test time out.
    anomiex authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    33c1e82 View commit details
    Browse the repository at this point in the history
  19. Jetpack AI: bug hotfix - general image disabled input (#40198)

    * allow for null or boolean values on postContent
    
    * pass postContent as true on general image as we don't want empty posts to disable the input
    
    * add changelog
    CGastrell authored Nov 14, 2024
    Configuration menu
    Copy the full SHA
    af007b7 View commit details
    Browse the repository at this point in the history

Commits on Nov 15, 2024

  1. Configuration menu
    Copy the full SHA
    41823b2 View commit details
    Browse the repository at this point in the history
  2. changelog

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    50465ce View commit details
    Browse the repository at this point in the history
  3. Add missing endpoint

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    ef0e45e View commit details
    Browse the repository at this point in the history
  4. Fix phan errors

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    cd92207 View commit details
    Browse the repository at this point in the history
  5. Remove json_decode

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    7418144 View commit details
    Browse the repository at this point in the history
  6. Add HTTP header injection

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    facde9f View commit details
    Browse the repository at this point in the history
  7. Fix: return type

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    86b1108 View commit details
    Browse the repository at this point in the history
  8. Add direct output of binary

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    a3d5798 View commit details
    Browse the repository at this point in the history
  9. Add checks for output error

    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    5020c8a View commit details
    Browse the repository at this point in the history
  10. Merge branch 'add/new-external-media-endpoint' of github.com:Automatt…

    …ic/jetpack into add/new-external-media-endpoint
    zaerl committed Nov 15, 2024
    Configuration menu
    Copy the full SHA
    3230657 View commit details
    Browse the repository at this point in the history