Skip to content

Commit

Permalink
Fix update_dashboard #76: Correct Payload (#77)
Browse files Browse the repository at this point in the history
* Fix `update_dashboard` #76: Correct Payload

Turns out during my testing, I forgot to have a permutation where I
updated the permissions of a dashboard. Discovered the payload is
malformed because of a lack of post-processing in the `jira` lib (this
is as intended). This PR fixes the issue.

* Update keys in payload dict for `update_dashboard` action from
`edit_permissions/share_permissions` to
`editPermissions/sharePermissions` to make the `jira` API happy.

* Force Tests

* Force Tests
  • Loading branch information
jpavlav authored Apr 2, 2024
1 parent a45a2e5 commit a4de384
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## 3.0.1

- Fixed bug with `update_dashboard` action sending the wrong payload.

## 3.0.0

- Drop support for `python 3.6`
Expand Down
4 changes: 2 additions & 2 deletions actions/update_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def run(
{
"name": name,
"description": description,
"edit_permissions": edit_permissions,
"share_permissions": share_permissions,
"editPermissions": edit_permissions,
"sharePermissions": share_permissions,
}
)

Expand Down
2 changes: 1 addition & 1 deletion pack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords:
- issues
- ticket management
- project management
version: 3.0.0
version: 3.0.1
python_versions:
- "3"
author: StackStorm, Inc.
Expand Down

0 comments on commit a4de384

Please sign in to comment.