Skip to content

v0.8.0 🍉 - Bugfixes, Pagination and General Improvements #77

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

Merged
merged 25 commits into from
Aug 1, 2022
Merged

Conversation

johguentner
Copy link
Member

@johguentner johguentner commented Jul 11, 2022

Fixes:

  • Feature/better pagination handling: add: better pagination handling
  • polish/fix: control over 'includeTime' of Date
  • Fix: Rollup with empty select

johguentner and others added 23 commits July 9, 2022 13:03
- specific rollup properties can be null, which lead to issues of setting the content of the property
- this fix checks the existence of content and skips setting the content, if it is null (e.g. empty selects, multi_selects etc.)
- fixes issue: Rollup that refers to an empty Select property throws exception during database query
- introduce new methods for actively including time ('include Time') of a Date Properties within a Notion Page
- existing init of value for a Date Property will force a date without time
- ::valueWithTime(...) in Date Property and ->setDateTime(...) in Page will force the inclusion of time, if pushed to Notion
- ! breaking: result of ::value(...) of Date Property and ->setDate(...) of Page are changing (time will not be included)
- testing the edge case of the fix "65-rollup-with-empty-select-fix"
- change date formatting within EndointPagesTest (it_assembles_properties_for_a_new_page)
- making sure to use 'Y-m-d' format instead of 'c', to match new Date Property handling
- fix problem with next_cursor handling for database queries
- added raw extraction (->fillResult()) for 'has_more' and 'next_cursor' in EntityCollection (e.g. executed on querying databases)
- added ->offsetByResponse(...) for handling the offset based on the previous query result (query result = EntityCollection)
- added public functions for easy access to 'has_more' (->hasMoreEntries()) and 'next_cursor' (->nextCursor()) in EntityCollection
- and add return type to StartCursor '__toString'
- test without offset in query and with next_cursor in response
- test with offset in query (from previous response) and without next_cursor in response
- refactor 'isset' to Arr::exists
- evaluate if time is included, based on 'T' in datetime-string (when reading a date property from Notion)
- allow return of null within ->getEnd() getter (allow same in RichDate::class)
- add ->hasTime() getter, which calls ->hasTime() from RichDate::class (content)
- refactor ->getHasTime() from RichDate::class to ->hasTime()
- add date with and without time in page response stub
- assert true and false, if time is included
- add these two additional properties within assert count of page results
polish/fix: control over 'includeTime' of Date
Feature/better pagination handling: add: better pagination handling
@johguentner johguentner added this to the v0.8.0 🍉 milestone Jul 11, 2022
@johguentner johguentner changed the title v0.8.0 🍉 dev to main v0.8.0 🍉 - Major Bugfixes, Pagination and General Improvements Jul 31, 2022
@johguentner johguentner changed the title v0.8.0 🍉 - Major Bugfixes, Pagination and General Improvements v0.8.0 🍉 - Bugfixes, Pagination and General Improvements Jul 31, 2022
johguentner and others added 2 commits August 1, 2022 18:38
- return null in helper-functions, if content is null: hasTime, getEnd
- throw HandlingException::class, if getStart is called on empty content
@johguentner johguentner merged commit 4f75db6 into main Aug 1, 2022
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.

2 participants