Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Same as #1050 but rebased against the main branch.
🌟 Contributors: @emersion @Tguisnet @Castavo @NicolasRitouet @clarani 💻 Project of the Hack Days Hackathon
Purpose
The goal of this feature is to allow users to import notion workspace into Docs in 1 clic.
The user can connect to Notion by clicking on a button, select the pages he/she wants to import and the pages are directly imported into Docs. A progress bar displays the import progression.
A lot of Notion block types are handled:
The unsupported blocks are replaced by a textual warning. The database pages from Notion are ignored since Docs does not handle databases for the moment.
Future work
The import is quite long since the Notion API is slow. An improvement would be to make the import run in the background task (via Celery).