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

Store usage of attachment on license info generation #153

Closed
maierthomas opened this issue Apr 26, 2018 · 3 comments · Fixed by #324
Closed

Store usage of attachment on license info generation #153

maierthomas opened this issue Apr 26, 2018 · 3 comments · Fixed by #324
Assignees
Labels
enhancement New feature or request

Comments

@maierthomas
Copy link
Contributor

Issue by lepokle
Monday Oct 02, 2017 at 08:21 GMT
Originally opened as sw360/sw360portal#605


Split from #580

The usage of a license file inside a license report should be stored to make this info available on the view attachments tab of a release.
This way users see the most used license file and can rely on them if they are unsure which one to choose for license generation.

The usage should be updated on each license generation.

Adding:

  • Files being used are protected from deletion.
  • usage can be seen in mouse over in attachment view.
@maierthomas maierthomas added this to the Work Package 002 milestone Apr 26, 2018
@maierthomas
Copy link
Contributor Author

Comment by mcjaeger
Wednesday Nov 22, 2017 at 13:39 GMT


requires test

@maierthomas
Copy link
Contributor Author

Comment by mcjaeger
Friday Jan 19, 2018 at 14:15 GMT


there are following things necessary:

  • Remark field in the relations. see AttachmentUsage in https://github.com/sw360/sw360portal/blob/master/libraries/lib-datahandler/src/main/thrift/attachments.thrift
  • UI for setting and unsetting usage, presumeably a new table as subsection in the project details, similar to clearing status, listing used attachments of a release and allowing to add or remove these.
  • Setting the usage for CLI file automatically selects this for the Readme oss (license disclosure document) generation
  • Setting the usage for source code bundle generation, selects this automatically for source code bundle generation.
  • Used attachments (from releases) are locked against deletion. Only unused attachments can be deleted.

@maierthomas
Copy link
Contributor Author

Comment by mcjaeger
Monday Mar 12, 2018 at 16:34 GMT


Usage today:

  • Setting the usage for CLI file automatically selects this for the Readme oss (license disclosure document) generation
  • will be saved at license generation
  • deletion be regenerating with other settings

Revisit this issue:

  • UI for setting and unsetting usage, presumeably a new table as subsection in the project details,, listing used attachments of a release and allowing to add or remove these. Idea is to have the clearing report locked that is "logically connected" with the CLI file from license info
  • UI view shall be hierarchical. not like clearing status (which is flat). By this way a user can see to which release an attachment belongs.
  • This would lead to different "usage" types selectable: licenseInfoUsage, sourcePackageUsage, manualUsage.
  • Usage shall be OR (opposed to XOR)
  • On the UI overview, the usage shall be shown including all usage types.
  • Setting the usage for source code bundle generation, selects this automatically for source code bundle generation.
  • Used attachments (from releases) are locked against deletion. Only unused attachments can be deleted.
  • Really not so important now: Attachment usage could also refer to component attachments, or project attachments itself. (very advanced)

drop so far:

@alexbrdn alexbrdn self-assigned this Jun 6, 2018
@mcjaeger mcjaeger added the enhancement New feature or request label Jul 2, 2018
alexbrdn added a commit that referenced this issue Jul 17, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Jul 17, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Jul 23, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Jul 25, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Jul 30, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Jul 31, 2018
…ck used attachments from deletion, automatically save attachment usages on source code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Aug 2, 2018
…ck used attachments from deletion, automatically save attachment usages on source

code bundle generation

closes #153
alexbrdn added a commit that referenced this issue Aug 3, 2018
…ck used attachments from deletion, automatically save attachment usages on source

code bundle generation

closes #153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants