Skip to content

Conversation

MaestroError
Copy link
Collaborator

@MaestroError MaestroError commented Oct 3, 2025

This pull request updates the package namespace from RedberryProducts\MdNotion to Redberry\MdNotion across the entire codebase and documentation. This change standardizes the naming to match the new package name and ensures consistency for autoloading, configuration, and usage examples. The update touches source files, configuration, documentation, and example scripts.

Namespace and autoloading updates:

  • Changed all PHP namespaces from RedberryProducts\MdNotion to Redberry\MdNotion throughout source files, including adapters, DTOs, services, and facades. [1] [2] [3] [4] [5] [6] [7]
  • Updated composer.json to use the new namespace for PSR-4 autoloading and Laravel service provider/alias configuration. [1] [2]

Configuration and adapter references:

  • Updated all adapter class references in config/md-notion.php to use the new namespace.
  • Updated adapter references in usage examples and documentation to reflect the new namespace. [1] [2]

Documentation and example scripts:

Other updates:

  • Updated test suite name in phpunit.xml.dist to match the new package name.
  • Updated package keywords and comments to reflect the new name. [1] [2]

These changes ensure all references are consistent with the new package namespace, reducing confusion and potential autoloading issues.

@MaestroError MaestroError requested a review from Copilot October 3, 2025 13:13
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR performs a vendor namespace change from RedberryProducts\MdNotion to Redberry\MdNotion across source, tests, configuration, examples, and documentation to align with a new vendor name.

  • Updated all PHP namespaces, composer autoload mappings, service provider references, and tests.
  • Updated documentation and example scripts to reflect the new namespace.
  • Found a lingering class naming inconsistency and a documentation namespace error unrelated to just the vendor prefix change.

Reviewed Changes

Copilot reviewed 120 out of 120 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
tests/TestCase.php Updated namespace and service provider reference.
tests/Services/PageReaderTest.php Updated adapter and service namespaces.
tests/Services/IntegrationTest.php Updated object and service namespaces.
tests/Services/DatabaseTableBasicTest.php Updated Notion SDK and service namespaces.
tests/Services/DatabaseReaderTest.php Updated object, SDK, and service namespaces.
tests/Services/BlockRegistryTest.php Updated adapter references in tests.
tests/SDK/Requests/* Updated SDK request namespaces.
tests/Pest.php Updated TestCase namespace import.
tests/Objects/* Updated object and service namespaces.
tests/MdNotionTest.php Updated MdNotion core class references.
tests/FacadeTest.php Updated Facade and service references.
tests/ContentBuilderTest.php Updated ContentBuilder and service references.
tests/Adapters/* Updated adapter namespaces in tests.
src/Traits/* Updated trait namespaces and imports.
src/Services/* Updated service namespaces and dependencies.
src/SDK/**/* Updated SDK namespaces and request/resource imports.
src/Objects/* Updated object namespaces and internal service resolution.
src/MdNotionServiceProvider.php Updated provider namespace and bound classes.
src/MdNotion.php Updated core class namespace and imports.
src/Facades/MdNotion.php Updated facade namespace and target class reference.
src/DTOs/* Updated DTO namespaces.
src/ContentBuilder.php Updated builder namespace and service imports.
src/Commands/MdNotionCommand.php Updated command namespace.
src/Adapters/* Updated adapter namespaces and DTO imports; dynamic resolution lines affected.
src/Adapters/ColumnAdapter.php Namespace updated; dynamic class resolution logic exposed.
config/md-notion.php Updated config comment and adapter class FQCNs (contains a class name inconsistency).
composer.json Updated PSR-4 autoload and provider/alias namespaces; keywords changed.
phpunit.xml.dist Updated test suite name.
README.md Updated usage examples to new namespace.
mdnotion_prd.md Updated usage snippet (introduces an incorrect namespace).
examples/**/*.php Updated example imports to new namespace.
index.php Updated Notion SDK import.
column-list-fetch-example.php Updated adapter and SDK imports.

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

MaestroError and others added 4 commits October 3, 2025 17:17
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@MaestroError MaestroError requested a review from Copilot October 3, 2025 13:25
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 120 out of 120 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@MaestroError MaestroError merged commit e9b5a2c into main Oct 3, 2025
18 checks passed
@MaestroError MaestroError deleted the vendor-update branch October 3, 2025 13:34
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.

1 participant