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

issues 901 changes #616

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

issues 901 changes #616

wants to merge 3 commits into from

Conversation

rajsync
Copy link

@rajsync rajsync commented Dec 7, 2023

currently wildcard, singleChar and escape values are hard coded.
provided option to pass wildcard, singleChar and escape values, while creating comparison filter 'PropertyIsLike'

Copy link
Contributor

@KaiVolland KaiVolland left a comment

Choose a reason for hiding this comment

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

Thanks for your contribution @rajsync. 🙏 This looks already promising.

I'm not sure how we want to implement default values as this is repo contains just a type definition.

Maybe we can force the parsers (via StyleParser Interface) to contain defaultLikeAttributes (just an idea).

@@ -1,6 +1,6 @@
{
"name": "geostyler-style",
"version": "8.1.0",
"version": "8.2.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

This is done by the pipelines. You don't have to care about it. So please revert to 8.1.0. :)

Comment on lines +8 to +12
export interface LikeAttributes {
wildCard: string;
singleChar: string;
escape: string;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

I think an array like structure would fit the geostyler-style more. e.g.:

Suggested change
export interface LikeAttributes {
wildCard: string;
singleChar: string;
escape: string;
}
/**
* The LikeAttributes describe the behaviour of the {@link LikeFilter}.
* [
* wildcard, (default should be `*`),
* singleChar, (default should be `.`),
* escape, (default should be `!`),
* ]
*/
export interface LikeAttributes [string, string, string];

... this was just written freestyle on github so its just for orientation. :)

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