Skip to content

Conversation

@SWH-Relewise
Copy link
Contributor

@SWH-Relewise SWH-Relewise requested a review from mzanoni December 4, 2024 13:11
Copy link
Collaborator

@mzanoni mzanoni left a comment

Choose a reason for hiding this comment

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

Really nice work! 💪

We are generating the release messages based on PR titles, this PR title is not very user friendly. Could we rename it to the features it actually brings instead?

includeOffsets: false
};

public enable(enabled: boolean): this {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would like the public method to be called enabled(true) or enabled(false) as this accepts a bools, it reads better

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Check!

highlightable: this.highlightable,
limit: this.limit,
shape: this.shape
} as ContentSearchSettingsHighlightSettings;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would do we need to cast here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No i removed it! 😊

highlightable: this.highlightable,
limit: this.limit,
shape: this.shape
} as ProductSearchSettingsHighlightSettings;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Would do we need to cast here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No i removed it! 😊

@@ -0,0 +1,50 @@
import { HighlightSettings2ProductProductHighlightPropsHighlightSettings2Limits, HighlightSettings2ProductProductHighlightPropsHighlightSettings2ResponseShape, ProductHighlightProps, ProductSearchSettingsHighlightSettings } from '../../models/data-contracts';

export class ProductHighlightingBuilder {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we have had a base builder to unify some of the common code? Like the enabled and shape could have been part of a base builder

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The shape and limit are its own unique type for either product or content. I could not find a good way to consolidate them. 😶

Copy link
Collaborator

@mzanoni mzanoni left a comment

Choose a reason for hiding this comment

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

Chose the wrong mode

@SWH-Relewise SWH-Relewise changed the title New features from release 1.191.0 Feat: Add support for search highlighting Dec 5, 2024
@SWH-Relewise SWH-Relewise requested a review from mzanoni December 5, 2024 10:57
@SWH-Relewise SWH-Relewise merged commit 3aaf8b9 into main Dec 5, 2024
2 checks passed
@SWH-Relewise SWH-Relewise deleted the feat/highlighting branch December 5, 2024 12:28
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.

3 participants