Skip to content

halauth: adds regex support for ri and perm fields of permissions#125

Merged
richteer merged 1 commit into
Halibot:masterfrom
mracine:halauth-regex
Feb 6, 2019
Merged

halauth: adds regex support for ri and perm fields of permissions#125
richteer merged 1 commit into
Halibot:masterfrom
mracine:halauth-regex

Conversation

@mracine

@mracine mracine commented Oct 18, 2018

Copy link
Copy Markdown
Contributor

We can probably rework the permissions loading system as well to better handle regexes, making this more robust. Feel free to leave on comments on any ideas you might have.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.06%) to 94.785% when pulling d29a1f5 on mracine:halauth-regex into e033e85 on Halibot:master.

@sjrct

sjrct commented Feb 6, 2019

Copy link
Copy Markdown
Member

This will break previous instances of permissions.json that use * by itself. I don't really have a problem with that, but if globs sufficient for our use cases, are they preferable from a style perspective?

@sjrct
sjrct requested a review from richteer February 6, 2019 05:05
@richteer

richteer commented Feb 6, 2019

Copy link
Copy Markdown
Contributor

Hmmm, I think I'm fine with breaking that compatibility as well. As far as I am aware, no one uses permissions right now anyway. We could keep the special case for "*", but I'd rather keep the processing logic simple for matching.

@richteer
richteer merged commit 4c2020e into Halibot:master Feb 6, 2019
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.

4 participants