-
Notifications
You must be signed in to change notification settings - Fork 6
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
Will latests fixs will be embeded in a release ? #1
Comments
Hi @emaulandi can you elaborate more about the problem you’re facing? I’m planning to work on it again to support the recently and finally released image/file api. So I’m keen to fix any issues there. |
My notion database have 48 pages/nodes that I want to access the data to display content and so on.
I think this is covered by the latest fix you commited on the repo ? Let me know if the explanation is not clear or if you need further elements. |
@emaulandi Thanks. It's very clear. I just release 1.0.2 together with a minor fix. |
Thanks a lot for your reactivity ! Just updated the package. It seems that I run into the same problem where nodes that are still there is the cache but have no changes are not processed. |
Let me check with my example repo. I encountered the exact same problem as you and therefore the fix. Let me get back to you by today. ;) |
@emaulandi It turns out I got the usage of |
It works like a charm ! Thank you so much for this really fast update and help ! |
Sorry, I might not have checked this fully. After few redeploys, I found the same problem. From the plugin infos during build I can see that I have X nodes added and Y nodes processed (touchNode was apply on those Y nodes, Y being the total numbers of nodes). But then still only the X nodes appear in the graphql query From your example repo, does all processed nodes (touched nodes) which where not added are available for query and use ? |
It's an interesting found. I managed to reproduce your issue. If you don't have any pages on notion got updated, it works fine. It should be caused by my understanding about Get look into it more tomorrow. |
@emaulandi It turns out that the bug is introduced unintentionally by including child nodes' content in the hash of a database node. Now I believe it's fixed. You can try the fix via the following and let me know if I can merge and release a newer version. :) npm install alvis/gatsby-source-notion#pull/2/head |
Thanks again for the reactivity ! |
@emaulandi Could you try updating some pages or adding new ones? |
So I tried running multiple times Actions : Empty cache Run 2 / Status OK Actions : Update 1 node in notion Actions :
Run 3 / Status KO (only two nodes available : the new and updated one) Run 4 / Status KO (only two nodes available : the new and updated one) Actions : Delete 2 nodes Actions : gatsby clean |
Hi @emaulandi thanks so much for helping to test. Sorry. My silly head. I forgot adding a new page would trigger an update to the database node too.
|
No worries ! Thank you for you help. It seems that adding a node is still problematic :
I also tried cleaning the cache after adding 2 dummy nodes, running a first time and then deleting the 2 nodes. In that case, no problem. |
Thanks for testing. Just wondering if you've deleted node_modules and package-lock.json and reinstalled everything again before running the test? The info seems to be in the old format. |
Yes, I did it again but I have the same result. Regarding infos, I think you've deleted "processed" to be replace by "keeping" ? |
It turns out the root of issue is deeper than I thought. The problem is that whenever a database node need to get updated either by changing its title or adding a page to it, all its children will get deleted. Neither In the official doc, it says
It seems to be long standing problem of Gatsby, see
I'm not expecting any change from Gatsby to solve the issue, so I wrote an update to recreate any missing nodes automatically instead. The latest update can be installed via the following. npm install alvis/gatsby-source-notion#c97d301 |
Thank you for the detailed explanations. |
@emaulandi The fix is now released as 1.0.4. Thanks for helping again :) |
Thank you for this great plugin !
I was wondering if there were any plans of releasing a new version of the npm package that will embed the latest fix that will persist unchanged nodes between two runs (if I understood it correctly) ?
The text was updated successfully, but these errors were encountered: