Skip to content

Conversation

bonzani
Copy link
Contributor

@bonzani bonzani commented Mar 1, 2024

The Confluence API v2 always returns a _links object containing the base path. This PR adds defensive code checking for existence of the next key in the _links map.

Copy link

netlify bot commented Mar 1, 2024

Deploy Preview for dtc-docs-preview ready!

Name Link
🔨 Latest commit 04bcecc
🔍 Latest deploy log https://app.netlify.com/sites/dtc-docs-preview/deploys/65e1c97cd547a0000833f025
😎 Deploy Preview https://deploy-preview-1379--dtc-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@bonzani
Copy link
Contributor Author

bonzani commented Mar 1, 2024

@rdmueller @PacoVK cool improvement moving the core functionality into it's own module!

This fix is probably something you'd like to get into the next release, because currently the publishToConfluence task is not working at all for API v2

@PacoVK
Copy link
Collaborator

PacoVK commented Mar 1, 2024

Thanks for the feedback and for the contribution! :)

@PacoVK PacoVK merged commit 82d864e into docToolchain:ng Mar 1, 2024
@bonzani bonzani deleted the confluence-apiv2-cursor-logic branch March 4, 2024 11:49
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.

2 participants