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): Extract page url #11643

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

michael-radency
Copy link
Contributor

Summary

Fix for extracting page url from urls of type
https://www.notion.so/xxxxx?v=xxxxx&p=xxxxx&pm=s

Related Linear tickets, Github issues, and Community forum posts

https://linear.app/n8n/issue/NODE-1419/notion-node-database-page-param-cant-parse-pip-links

@michael-radency michael-radency added n8n team Authored by the n8n team node/issue Issue with a node labels Nov 8, 2024
Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 70.58824% with 5 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...ckages/nodes-base/nodes/Notion/v2/NotionV2.node.ts 0.00% 4 Missing ⚠️
...nodes-base/nodes/Notion/shared/GenericFunctions.ts 92.30% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

elsmr
elsmr previously approved these changes Nov 8, 2024
pageId = page.value.split('p=')[1].split('&')[0];
} else {
// e.g https://www.notion.so/page_name-xxxxx
pageId = page.value.match(databasePageUrlValidationRegexp)?.[1] || '';
Copy link
Member

Choose a reason for hiding this comment

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

nit: ??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this how it works in rlc when extracting value, taking match from regex

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/issue Issue with a node
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants