Skip to content

Prepare plugin for release, #PG-5170#40

Merged
AltamashShaikh merged 6 commits into
5.x-devfrom
PG-5170-plugin-cleanup
May 20, 2026
Merged

Prepare plugin for release, #PG-5170#40
AltamashShaikh merged 6 commits into
5.x-devfrom
PG-5170-plugin-cleanup

Conversation

@lachiebol
Copy link
Copy Markdown
Contributor

@lachiebol lachiebol commented May 18, 2026

Description

Updated README

Renamed/refactored plugin to use ApiReference.

Updated changelog to have 5.0.0 with an initial version.

added index.md

Issue No

Steps to Replicate the Issue

Checklist

  • [✔/✖] Tested locally or on demo2/demo3?
  • [✔/✖/NA] New test case added/updated?
  • [✔/✖/NA] Are all newly added texts included via translation?
  • [✔/✖/NA] Are text sanitized properly? (Eg use of v-text v/s v-html for vue)
  • [✔/✖/NA] Version bumped?
  • [✔/✖/NA] Documentation updated?

@lachiebol lachiebol changed the title rename OpenApiDocs to ApiReference rename OpenApiDocs to ApiReference and cleanup plugin details May 18, 2026
@lachiebol lachiebol changed the title rename OpenApiDocs to ApiReference and cleanup plugin details rename OpenApiDocs to ApiReference and cleanup plugin details, #PG-5170 May 19, 2026
@lachiebol lachiebol changed the title rename OpenApiDocs to ApiReference and cleanup plugin details, #PG-5170 Prepare plugin for release, #PG-5170 May 19, 2026
@lachiebol lachiebol marked this pull request as ready for review May 19, 2026 00:14
@lachiebol lachiebol requested a review from AltamashShaikh May 19, 2026 00:14
@lachiebol lachiebol added the Needs Review For pull requests that need a code review. label May 19, 2026
Comment thread README.md
## Description

Allow generating OpenAPI documentation for the Matomo public APIs.
As APIs and plugins expose additional metadata, developers can browse available API endpoints, explore request parameters and response formats, and test API requests directly from the documentation interface.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Will update with marketing description once done

Comment thread phpcs.xml Outdated
@@ -1,7 +1,7 @@
<?xml version="1.0"?>
<ruleset name="openapidocs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
<ruleset name="openapidocs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">
<ruleset name="apireference" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="vendor/squizlabs/php_codesniffer/phpcs.xsd">

Copy link
Copy Markdown
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

@lachiebol I still see alot of files referencing OpenApiDocs

Image

Also we should, update Cloud and ensure this merge will not cause any issue on Cloud.

@lachiebol
Copy link
Copy Markdown
Contributor Author

@lachiebol I still see alot of files referencing OpenApiDocs

Image Also we should, update Cloud and ensure this merge will not cause any issue on Cloud.

@AltamashShaikh Some of those will be your old generated annotations files, but I see some others there that should be fixed.

Have just pushed a fix for that

Copy link
Copy Markdown
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

@lachiebol The commands are still running with openapidocs they should also be changed to apireference

Image

protected function configure()
{
$this->setName('openapidocs:generate-spec-file');
$this->setName('apireference:generate-spec-file');
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@AltamashShaikh did you pull recent changes? Should be fixed

@AltamashShaikh
Copy link
Copy Markdown
Contributor

I can still see references in API.php:77, phpcs.xml, Commands, ArtifactWriterTest

Copy link
Copy Markdown
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

@lachiebol Can you check this

Medium-Risk Issues

  docs/index.md:3 contains a public documentation link ending in PLACEHOLDER. If this goes into a release or marketplace metadata, users will hit a broken FAQ URL.

  Low-Risk / Polish

  git diff --check reports README.md:132: new blank line at EOF at README.md:132.

  plugin.json:10 has a tab-indented keyword entry while the rest of the file uses spaces. Not functionally risky, but worth cleaning while touching packaging metadata.

@lachiebol
Copy link
Copy Markdown
Contributor Author

@lachiebol Can you check this

Medium-Risk Issues

  docs/index.md:3 contains a public documentation link ending in PLACEHOLDER. If this goes into a release or marketplace metadata, users will hit a broken FAQ URL.

  Low-Risk / Polish

  git diff --check reports README.md:132: new blank line at EOF at README.md:132.

  plugin.json:10 has a tab-indented keyword entry while the rest of the file uses spaces. Not functionally risky, but worth cleaning while touching packaging metadata.

I'll update the index.md when Giliian creates that private page. Just quickly fixed the other two concerns

Copy link
Copy Markdown
Contributor

@AltamashShaikh AltamashShaikh left a comment

Choose a reason for hiding this comment

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

LGTM

@AltamashShaikh AltamashShaikh merged commit dddc7fc into 5.x-dev May 20, 2026
7 checks passed
@AltamashShaikh AltamashShaikh deleted the PG-5170-plugin-cleanup branch May 20, 2026 04:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Needs Review For pull requests that need a code review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants