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

fix(Notion Node): Fix issue preventing some database page urls from working #10070

Merged
merged 4 commits into from
Jul 24, 2024

Conversation

Joffcom
Copy link
Member

@Joffcom Joffcom commented Jul 16, 2024

Summary

Fixes an issue with the RLC regex that was incorrectly flagging https://www.notion.so/fake-instance/x-ID as invalid. Also added test for extractPageId that uses the regex pattern first.

Related Linear tickets, Github issues, and Community forum posts

https://community.n8n.io/t/notion-update-by-url-not-working-for-guest-added-pages/50095

@n8n-assistant n8n-assistant bot added n8n team Authored by the n8n team node/improvement New feature or request labels Jul 16, 2024
Copy link

@jerzygangi jerzygangi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Joffcom Let me know if you've got any questions on this feedback, or would like an additional review after making changes. Thank you, JJ

@Joffcom
Copy link
Member Author

Joffcom commented Jul 23, 2024

@jerzygangi are the recent changes any better? This now follows what Notion documents so for page ids we use a UUIDv4 and for database page you can use any UUID. I have also included your URL example in the tests.

Copy link
Contributor

@ShireenMissi ShireenMissi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Jul 23, 2024

3 flaky tests on run #6114 ↗︎

0 400 0 0 Flakiness 3

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 Joffcom 🗃️ e2e/*
Project: n8n Commit: 65c794c0f4
Status: Passed Duration: 05:23 💡
Started: Jul 23, 2024 3:36 PM Ended: Jul 23, 2024 3:41 PM
Flakiness  5-ndv.cy.ts • 2 flaky tests

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
NDV > Stop listening for trigger event from NDV Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #10070 ↗︎

@Joffcom Joffcom merged commit 7848c19 into master Jul 24, 2024
27 checks passed
@Joffcom Joffcom deleted the node-1503-notion-rlc-for-database-page-regex-tweak branch July 24, 2024 10:27
@github-actions github-actions bot mentioned this pull request Jul 24, 2024
@janober
Copy link
Member

janober commented Jul 24, 2024

Got released with n8n@1.52.0

@jerzygangi
Copy link

@Joffcom Sorry, I'm a bit late replying. This regex looks solid -- also, the new unit tests with sample uuid's is smart. Can't wait for this commit hit n8n.cloud users.

Separately, I wanted offer a 💯 emoji to you for the rapid turnaround time. I occasionally report bugs to startups, and it's amazing how many take months to reply & never fix the problem. After 1 or 2 ignored bug reports, I stop reporting. Conversely, the few engineering teams that do act quickly (like n8n) send a message to the customer that says "We value your time; we're building a quality product; please don't churn; we want your business." Keep up the hard work.

@suged
Copy link

suged commented Oct 2, 2024

Hello
I think the same problem happens with Notion Update Page, Operation Archive, when the page is a Database Page

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team node/improvement New feature or request Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants