-
-
Notifications
You must be signed in to change notification settings - Fork 52
block creation + all new current blocks (+ tests for creation/fetch) #30
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
Conversation
johguentner
commented
Sep 11, 2021
- implemented static creation-function for all modifiable blocks
- implemented append-function to Block-Endpoint
- implemented tests-function, in which all block-creation-functions are tested
- added todo/warning for notion-version-change to test-function
- implemented static creation-function for all modifiable blocks - implemented append-function to Block-Endpoint - implemented tests-function, in which all block-creation-functions are tested - added todo/warning for notion-version-change to test-function
- rename "fillContent" of Block to "fillRawContent", since it is filling the rawContent (no direct breaking change) - added EmbedBlock (retreive url + caption)
- this ensures the currect values within the class attributes
- this ensures the correct values within the textblock classes attributes
- set up BaseFileBlock::class for file-related blocks (file, image, file, pdf) - implement Modifiable within embed and BaseFileBlock - mark caption as optional paramter in embed and BaseFileBlock with empty string as default - set up tests for all new blocks (creation and retreival)
Feature/new blocks
|
Add new blocks + some polish (non-breaking) within Block-Entity (base for all blocks) + tests for all new blocks (creation + retreival) polish method name in Block + add Embed-Block
set up BaseFileBlock::class for file-related blocks (file, image, file, pdf)
|
|
This has nothing to do with this release, but we could use this for better structure: |
- rename "BaseBlockEntity" to "BlockEntity" in BlockEndpoint for clearity - mark createFileBlock method in BaseFileBlock as final - replace array_push with array[] = [...] for better performance
polish implementations