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

Expand caching #75

Closed
wants to merge 35 commits into from
Closed

Expand caching #75

wants to merge 35 commits into from

Conversation

idolcemia
Copy link
Contributor

No description provided.

idolcemia and others added 30 commits September 7, 2022 12:02
This commit is a draft solution to the assignment.  Comments are intended for author and reviewer.
There are several loose ends, or undeveloped blocks.
End of line characters removed per flake8
The `Page.children` property was not recursing into child blocks and as
a result any child database or page that was not a top-level block would
be picked up by the audit system.

This bug would affect other things too, although it was noticed due to
an audit producing false positives.
Mentions in simple tables were showing up as "Untitled". I found a
workaround that should suffice for now. I will also point Notion to the
test.
This is important as we're soon going to be using link to page blocks in
an upcoming plugin.
Previosuly, the id and url properties were only available when dumping
to YAML files. There are valid use cases when these properties should be
added to markdown front matter YAML too. This commit makes them apply to
both.
- The two unit tests will be fixed later
- Remove a spurious assertion that was added to the all blocks test
- Remove a dead end to end test
- Test for page expansion on link to page.
- Test for page expansion on link to page.
- Test for page expansion on link to page.
- Simplify notion_mocks.py method mock_page
- Various stylistic changes
idolcemia and others added 5 commits September 15, 2022 18:41
Note that this is just some example code. The cache class hasn't been
implemented yet and it hasn't been tested. Also, as written it will be
hard to handle the case when there is no cache.
@idolcemia idolcemia closed this Sep 17, 2022
@idolcemia idolcemia deleted the expand-caching branch September 17, 2022 16:15
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.

None yet

3 participants