Skip to content
This repository has been archived by the owner on Sep 2, 2021. It is now read-only.

ExtraClaims in uploaded bundle are not preserved #492

Closed
avanier opened this issue Apr 22, 2021 · 2 comments
Closed

ExtraClaims in uploaded bundle are not preserved #492

avanier opened this issue Apr 22, 2021 · 2 comments

Comments

@avanier
Copy link

avanier commented Apr 22, 2021

I'm working on a bundle where a task needs an ExtraClaims.

When uploading the bundle, no errors are declared, but listing the tasks reveals the task without its ExtraClaims statement.

I'm running v4.5.4.

I think this might be specific to updating tasks, or something related to bundles, as I do not have a problem creating a new task with claims, and editing the claims thereafter.

Example Objects

Given this task

---
Description: This task should have some ExtraClaims
ExtraClaims:
  - scope: "*"
    action: "*"
    specific: "*"
Name: new-task-with-claims
Meta:
  color: black
  icon: tasks
  title: hepderp
  feature-flags: sane-exit-codes

A claimless task is returned:

drpcli tasks show new-task-with-claims
  {
  "Available": true,
  "Bundle": "ax-drp-config",
  "Description": "This task should have some ExtraClaims",
  "Documentation": "",
  "Endpoint": "",
  "Errors": [],
  "Meta": {
    "color": "black",
    "feature-flags": "sane-exit-codes",
    "icon": "tasks",
    "title": "hepderp"
  },
  "Name": "new-task-with-claims",
  "OptionalParams": [],
  "Prerequisites": [],
  "ReadOnly": true,
  "RequiredParams": [],
  "Templates": [],
  "Validated": true
}
@galthaus
Copy link
Contributor

galthaus commented Apr 22, 2021

What version of drpcli are you running?

drpcli version

@avanier
Copy link
Author

avanier commented Apr 22, 2021

Hah! Thank you! I was using v4.0.0-pre >_< .

Yup, works now! I love problems caused by the fact I'm a dummy, they're usually easy to fix. 😄

@avanier avanier closed this as completed Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants