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

Append a rule at the beginning of a ruleset? #471

Open
wjf3121 opened this issue Apr 13, 2021 · 3 comments · May be fixed by #480
Open

Append a rule at the beginning of a ruleset? #471

wjf3121 opened this issue Apr 13, 2021 · 3 comments · May be fixed by #480

Comments

@wjf3121
Copy link

wjf3121 commented Apr 13, 2021

append-rule requires a parent id, making inserting a rule at the beginning impossible. Is there any work around or can we have a prepend-rule method? Thanks!

@muelli
Copy link
Contributor

muelli commented Apr 13, 2021

I thought 0 is prepending. Is that not the case?

@wjf3121
Copy link
Author

wjf3121 commented Apr 14, 2021

Not really, 0 gives me "Invalid parent ID".

@wjf3121
Copy link
Author

wjf3121 commented Apr 16, 2021

Currently my workaround is to put a dummy rule at the beginning so I can append rules after the dummy rule. Any suggestion is appreciate:)

@ZoltanFridrich ZoltanFridrich linked a pull request Jun 30, 2021 that will close this issue
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 a pull request may close this issue.

2 participants