Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@Ked57
Copy link
Contributor

@Ked57 Ked57 commented Sep 17, 2020

No description provided.

@Ked57 Ked57 changed the base branch from master to rewrite-memoize September 17, 2020 09:25
@Ked57 Ked57 changed the base branch from rewrite-memoize to master September 17, 2020 12:04
@Ked57 Ked57 changed the base branch from master to rewrite September 17, 2020 13:26
@Ked57 Ked57 changed the title Rewrite memoize support different filters for each key Support different filters for each key Sep 17, 2020
@Ked57 Ked57 changed the title Support different filters for each key Support different fields for each key Sep 17, 2020
const filterList = (typeof filter === "string"
? [filter]
: filter
).map((filter) => renderTemplate(filter, alibeezParams));
Copy link
Member

Choose a reason for hiding this comment

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

Only filters are rendered now? Do you think it is enough? Also this is not obvious when writing the config. I'm not convinced about this change, especially since it seems to be out of scope with this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm pretty sure you told me we would never let the user choose for the fields they request because it can be abused, and I think it's a good thing.

escape as escapeQuerystring,
} from "querystring";
import { parse as parseQuerystring } from "querystring";
import { parse as parseUrl } from "url";
Copy link
Member

Choose a reason for hiding this comment

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

Isn't this the one that's deprecated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's in the the same module, see https://nodejs.org/api/url.html#url_url

@hgwood
Copy link
Member

hgwood commented Sep 25, 2020

Replaced by #19

@hgwood hgwood closed this Sep 25, 2020
@hgwood hgwood deleted the rewrite-memoize-support-diffenrent-filters-for-each-key branch September 25, 2020 15:24
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