Skip to content

Commit

Permalink
Rename 'whitelist' to 'allowlist' in oauth class selectors (#2488)
Browse files Browse the repository at this point in the history
  • Loading branch information
nettrino committed Oct 8, 2022
1 parent 330d92d commit 765af9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scrape/apps.go
Expand Up @@ -28,7 +28,7 @@ func (c *Client) AppRestrictionsEnabled(org string) (bool, error) {
return false, err
}

s := doc.Find(".oauth-application-whitelist svg").First()
s := doc.Find(".oauth-application-allowlist svg").First()
if s.Length() == 0 {
return false, errors.New("unable to find expected markup")
}
Expand All @@ -52,7 +52,7 @@ func (c *Client) ListOAuthApps(org string) ([]OAuthApp, error) {
}

var apps []OAuthApp
doc.Find(".oauth-application-whitelist ul > li").Each(func(i int, s *goquery.Selection) {
doc.Find(".oauth-application-allowlist ul > li").Each(func(i int, s *goquery.Selection) {
var app OAuthApp
app.Name = s.Find(".request-info strong").First().Text()
app.Description = s.Find(".request-info .application-description").Text()
Expand Down
2 changes: 1 addition & 1 deletion scrape/testdata/access-restrictions-disabled.html
Expand Up @@ -12,7 +12,7 @@

<div class="col-9">

<div class="boxed-group oauth-application-whitelist ">
<div class="boxed-group oauth-application-allowlist ">
<h3>Third-party application access policy</h3>
<div class="boxed-group-inner">
<p>
Expand Down
2 changes: 1 addition & 1 deletion scrape/testdata/access-restrictions-enabled.html
Expand Up @@ -14,7 +14,7 @@

<div class="col-9">

<div class="boxed-group oauth-application-whitelist is-selectable">
<div class="boxed-group oauth-application-allowlist is-selectable">
<h3>Third-party application access policy</h3>
<div class="boxed-group-inner">
<p>
Expand Down

0 comments on commit 765af9b

Please sign in to comment.