fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
31 stars 18 forks source link

feat: appversion create with copy - av create <a>:<v> --copy-from <a>… #474

Closed gendry-gh closed 10 months ago

gendry-gh commented 11 months ago

feat: ssc appversion create with copy - ssc av create app:ver --copy-from app:ver2 --copy Rules,BugTracker,CustomTags,Issues

feat: copy issues from another application version - ssc av copy-issues app:ver --copy-from app:ver2

gendry-gh commented 11 months ago

460 : Implement new feature CopyCurrentState

109 : SSC: Add support for copying existing application version

webmutation commented 11 months ago

We are waiting for this feature to be available, it would save us a few steps. Any ETA when it will be released?

alemhg commented 11 months ago

Hello @Andhrei,

Thanks a lot for the work done to copy current state from one application to another one.

I was testing your code and after session login (ssc session login):

I think it is because in the java class SSCUrls, the url defined to copy current state is set to

public static final String PROJECT_VERSIONS_ACTION_COPY_CURRENT_STATE = ApiBase + "/projectVersions/action/copyCurrentState";

Checking the request done by the browser when using FSSC, it is sent the following request:

url = "/api/v1/projectVersions/" + str(projectVersionId) + "/action" data = { "type": "COPY_CURRENT_STATE", "values": { "projectVersionId": projectVersionId, "previousProjectVersionId": previousProjectVersionId } }

I'm using Fortify SSC 23.1.2.0005.

Could you please check which URL should be used?

Best regards, Alejo

rsenden commented 10 months ago

We are waiting for this feature to be available, it would save us a few steps. Any ETA when it will be released?

Sorry for the delay, I'll try to review this week and create a new fcli release if all is OK. Looking at the other comment, there may still be an issue with copying current state though.

rsenden commented 10 months ago

Manually squash-merged after some minor code changes, rewriting commit history to generate proper changelog entries.