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

feat: implement objectpath and scopes for filters #41

Merged
merged 4 commits into from
Sep 28, 2023

Conversation

mzanoni
Copy link
Collaborator

@mzanoni mzanoni commented Sep 28, 2023

No description provided.

@mzanoni mzanoni marked this pull request as ready for review September 28, 2023 11:13
@mzanoni mzanoni requested a review from RAORelewise September 28, 2023 11:13
Copy link
Contributor

@RAORelewise RAORelewise left a comment

Choose a reason for hiding this comment

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

Stærkt arbejde - fedt at vi endelig er i sync med api'et igen 😄 Fandt kun lige et par redundant null checks

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

du behøver ikke checke options for null 2 gange her, du kan bare gøre sådan her:

 options?.filterSettings?.(internalSettingsBuilder);

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Samme som forrige kommentar

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Samme som forrige kommentar

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Samme som forrige kommentar

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Samme som forrige kommentar

const builder = new ConditionBuilder();
conditionBuilder(builder);

const internalSettingsBuilder = new FilterSettingsBuilder();
if (options?.filterSettings) options?.filterSettings(internalSettingsBuilder);
Copy link
Contributor

Choose a reason for hiding this comment

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

Samme som forrige kommentar

@mzanoni mzanoni requested a review from RAORelewise September 28, 2023 11:32
@mzanoni mzanoni merged commit 32e68cc into main Sep 28, 2023
@mzanoni mzanoni deleted the feat/objectpath-and-scopes branch September 28, 2023 11:55
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