Skip to content

Conversation

@johguentner
Copy link
Member

  • 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)
@johguentner
Copy link
Member Author

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

  • rename "fillContent" of Block to "fillRawContent", since it is filling the rawContent (no direct breaking change)
  • added EmbedBlock (retreive url + caption)
  • add embed-creation and add tests for embed-block
  • fill content of embed-block within create: this ensures the currect values within the class attributes
  • add new blocks (file, image, video, pdf) + polish

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)

@johguentner johguentner changed the title full implementation for block creation + tests full implementation for block creation + tests + all new current blocks Sep 11, 2021
@johguentner johguentner changed the title full implementation for block creation + tests + all new current blocks block creation + all new current blocks (+ tests for creation/fetch) Sep 11, 2021
@mechelon
Copy link
Member

This has nothing to do with this release, but we could use this for better structure:
https://blog.jetbrains.com/phpstorm/2013/03/optimize-imports-for-php/

mechelon and others added 5 commits September 13, 2021 22:27
- rename "BaseBlockEntity" to "BlockEntity" in BlockEndpoint for clearity
- mark createFileBlock method in BaseFileBlock as final
- replace array_push with array[] = [...] for better performance
@johguentner johguentner merged commit 63ebc9e into dev Sep 19, 2021
@mechelon mechelon deleted the feature/block-creation branch June 17, 2022 15:43
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.

3 participants