Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
BIG-RAT committed Feb 10, 2024
1 parent 9dcafed commit 5ad2dc2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Once the list of unused items is generated you can edit it within the app. If y
</tr>
<tr>
<td>Computer Groups</td>
<td>Check for usage in policies, computer configuration profiles, computer groups, eBooks, restricted software, advanced searches, enabled state</td>
<td>Check for usage in policies, computer configuration profiles, computer groups, eBooks, restricted software, advanced searches, app installers, enabled state</td>
</tr>
<tr>
<td>Computer Profiles</td>
Expand Down Expand Up @@ -100,13 +100,14 @@ Once the list of unused items is generated you can edit it within the app. If y
* **Policies** scoped only to users and/or user groups will show as unused due to an issue with the API (it doesn't list the users or user groups).
* **Mac App** enabled/disabled state is not available via the API and thus not used to determine usage.
* **Bookmarks** are not accessible via the API. As a result groups that are only used to scope bookmarks will show as unused.
* **App-Installer** are not available through the API. As a result groups used for scoping may erroneously show as unused.

Logging information is written to: ```~/Library/Containers/com.jamf.pse.prune/Data/Library/Logs/Prune.log```

<br><hr><br>

### History:
2024-02-09 - v3.2.1: Query App Installers for groups used for scoping.

2024-02-04 - v3.2.0: Update login window. Add support for bearer token. Provide an alert if some lookups fail, which may result in inaccurate results.

2023-10-15 - v3.1.1: Fix issue #42. Updated token refresh process to address issue #41 and update logging.
Expand Down
6 changes: 3 additions & 3 deletions prune/JamfPro.swift
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class JamfPro: NSObject, URLSessionDelegate {
if id != "" && id != "0" {
urlString = urlString + "/\(id)"
}
print("[Jpapi] urlString: \(urlString)")
// print("[Jpapi] urlString: \(urlString)")

let url = URL(string: "\(urlString)")
let configuration = URLSessionConfiguration.ephemeral
Expand All @@ -67,10 +67,10 @@ class JamfPro: NSObject, URLSessionDelegate {
(data, response, error) -> Void in
session.finishTasksAndInvalidate()
if let httpResponse = response as? HTTPURLResponse {
print("[jpapiAction] \(endpoint) - status code \(httpResponse.statusCode).")
// print("[jpapiAction] \(endpoint) - status code \(httpResponse.statusCode).")
if httpResponse.statusCode >= 200 && httpResponse.statusCode <= 299 {
let json = try? JSONSerialization.jsonObject(with: data!, options: .allowFragments)
print("[Jpapi] json: \(String(describing: json))")
// print("[Jpapi] json: \(String(describing: json))")
if let endpointJSON = json as? [String:Any] {
completion(endpointJSON)
return
Expand Down
4 changes: 2 additions & 2 deletions prune/LoginViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ class LoginViewController: NSViewController, NSTextFieldDelegate {
}

func setWindowSize(setting: Int) {
print("[setWindowSize] setting: \(setting)")
// print("[setWindowSize] setting: \(setting)")
if setting == 0 {
preferredContentSize = CGSize(width: 518, height: 85)
hideCreds_button.toolTip = "show username/password fields"
Expand Down Expand Up @@ -541,7 +541,7 @@ class LoginViewController: NSViewController, NSTextFieldDelegate {
// jamfProPassword_textfield.delegate = self

lastServer = defaults.string(forKey: "currentServer") ?? ""
print("[viewDidLoad] lastServer: \(lastServer)")
// print("[viewDidLoad] lastServer: \(lastServer)")
var foundServer = false

useApiClient = defaults.integer(forKey: "sourceUseApiClient")
Expand Down

0 comments on commit 5ad2dc2

Please sign in to comment.