Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add status and delete fields to rd project scm inputs #304

Closed
molleda opened this issue Jun 19, 2020 · 1 comment
Closed

add status and delete fields to rd project scm inputs #304

molleda opened this issue Jun 19, 2020 · 1 comment

Comments

@molleda
Copy link

molleda commented Jun 19, 2020

In order to know what are the jobs that need to be deleted in the import operation, we need the status and the delete fields. those fields are already in the API response so should be only to add to rd-api-client/src/main/java/org/rundeck/client/api/model/ScmImportItem.java something like:

     public String itemId;
     public Boolean tracked;
+    public Boolean deleted;
+    public String status;
     public ScmJobItem job;

     public Map asMap() {
         HashMap<String, Object> map = new HashMap<>();
         map.put("itemId", itemId);
         map.put("tracked", tracked);
+        map.put("deleted", deleted);
+        map.put("status", status);
         if(null!=job) {
             map.put("job", job.toMap());
         }

And fix a test

Thanks.
Nacho Molleda.

gschueler added a commit that referenced this issue Aug 12, 2020
fix #304 add scm import status and deleted fields to import items
@molleda
Copy link
Author

molleda commented Aug 13, 2020

Thanks for complete it, when should be the next release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants