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

Release v1.1.0 with new features and minor fixes #160

Merged
merged 96 commits into from
Jun 22, 2023
Merged

Release v1.1.0 with new features and minor fixes #160

merged 96 commits into from
Jun 22, 2023

Conversation

johguentner
Copy link
Member

@johguentner johguentner commented Jun 16, 2023

  • Resolve Parents, Relations and Users
  • Database Creation
  • Testing: Added new way of testing (creation of snapshots with real API calls, to keep speed during active testing and especially increase test accuracy)
  • Fix: Not serializing scalar values
  • Added block type: Quote

johguentner and others added 30 commits February 6, 2023 16:06
- some entities have parents or expose user-ids, without additional information
- by resolving these within the "endpoint" (not a real notion enpoint) ``Resolve::class``, the additional information can be easily obtained
- load `NOTION_API_TOKEN`
- important for later tests
- allows to register the `Http` macro `recordAndFakeLater`
- this allows to create records for http requests, which will be stored and faked later to avoid calling API endpoints
- if the service is running in the console
- which has similar functionality as previous, however tests with the new `Http::recordAndFakeLater` macro
- for comments endpoint
- why `HasTitle` trait is not used within `Page::class`
- class for building Notion databases and their properties
- fix missing parent type
- refactor method names to shorter and (hopefully) more readable
- introduce `DatabaseSchemeBuilder::class`, which allows a more eloquent definition of a new database structure (similar to Laravel migrations)
- allow to add multiple properties at the same time (bulk)
- add all further properties (listed within the Notion API docs)
- cover, icon and description
- polish typing
- change `plugin` to `macro`, because it is a more accurate definition
@what-the-diff
Copy link

what-the-diff bot commented Jun 16, 2023

PR Summary

  • Added DatabaseBuilder and DatabaseSchemeBuilder classes
    These classes help with building databases and their schemes in a more structured way.
  • Updated project dependencies and test-coverage script
    Dependencies have been updated and a new test-coverage script is available to be used by CI/CD tools.
  • Improvements to PropertyBuilder, documentation, and code readability
    A new class PropertyBuilder has been added, documentation is improved, and type hinting changes make the code more readable.
  • Added new endpoint for Notion entities resolution
    An endpoint to resolve Notion entities has been created, making their retrieval easier.
  • Implemented enhancements to Block, Page, and Database classes
    The Block class can now be used as an entity, and title information is better managed through a trait for Page and Database classes.
  • Created a parent class for all Notion parents
    This class helps identify the object types when resolving relations or working with parents of other objects.
  • Bug fixes, new test cases, and code refactoring
    Fixed bugs, added tests for new methods and missing properties, and refactored codebase to improve settings management, among other improvements.
  • Improved NotionParent class and parent resolving
    NotionParent now supports unknown object types, and parent resolving throws an exception when the parent property is not set.
  • Updated tests to use Laravel 8+ features
    Tests now leverage Laravel 8's features like the Http facade recording.
  • Expanded test databases and pages
    Added new databases and pages for testing, and updated tests accordingly.

@johguentner johguentner added this to the 🍵 v1.1.0 milestone Jun 16, 2023
@johguentner johguentner self-assigned this Jun 19, 2023
@johguentner johguentner merged commit b5b978c into main Jun 22, 2023
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.

4 participants