-
Notifications
You must be signed in to change notification settings - Fork 39
Alternative solution to https://github.com/solid/solid-ui/issues/78 #80
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being finicky, as we have that test ow twice on each recursive call to tryParent, maybe it should e replaced by a single test at the beginning of tryParent, before the getACL .
In fact the test left >= right will catch https:// (left and right will both be 8) but won't catch https://foo.com/ where left by 8 and right 16. So the right test was in the wrong place?
Right, I thought it would work since it was the logic being done already at https://github.com/solid/solid-ui/blob/f09f540bbcedbeb8085d7c25b65908ae48909820/src/acl.js#L348 . But yes, We should do that test before making the call.
But |
Also added a TODO, for Tim to review
|
@timbl I've changed the code based on your feedback now. I also found a place where you had forgotten to add the Lastly, I added a TODO for you to review - didn't really find much use of that method in the projects I have in my current setup (NSS, mashlib, solid-panes, solid-ui, rdflib), so uncertain of it's usage. Might be a method we want to mark as obsolete and remove at next major release? |
timbl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beware of "^0.21.1" for rdflib maybe ">=0.21.1" ... maybe personal preference
I think this is how NPM does it by default, so didn't think more of it. |
No description provided.