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

[Next.js][Multi-site] Create plugin approach for extract-path #1264

Merged
merged 2 commits into from
Dec 19, 2022

Conversation

illiakovalenko
Copy link
Contributor

@illiakovalenko illiakovalenko commented Dec 19, 2022

Description / Motivation

Added plugin approach for extract-path functionality

Testing Details

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@illiakovalenko illiakovalenko requested a review from a team December 19, 2022 14:11
Copy link
Contributor

@ambrauer ambrauer left a comment

Choose a reason for hiding this comment

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

Just some minor suggestions on the jsdoc comments. Otherwise, looks great 👍


export class PathExtractor {
/**
* Allow plugins to extract normalized path
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd keep this more generic (there's more work done in here than just the plugins)

Suggested change
* Allow plugins to extract normalized path
* Extract normalized Sitecore item path

Comment on lines 5 to 8
/**
* Extract normalized Sitecore item path from query
* @param {string} path
*/
Copy link
Contributor

Choose a reason for hiding this comment

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

Can probably remove the jsdoc comment here (we don't do this for other plugin's execs, "query" no longer makes sense anyway)

Suggested change
/**
* Extract normalized Sitecore item path from query
* @param {string} path
*/

@illiakovalenko illiakovalenko merged commit 946a6c5 into feature/multi-site-integration Dec 19, 2022
@illiakovalenko illiakovalenko deleted the feature/561499 branch December 19, 2022 17:27
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