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

When I create a project to scan with the devel and deploy I would like to avoid renaming inputs #708

Closed
pombredanne opened this issue Apr 28, 2023 · 4 comments

Comments

@pombredanne
Copy link
Member

When I create a project to scan with the devel and deploy I would like to avoid renaming inputs.
Instead I would like to either:
Upload inputs or add URLs and state which is To and which is From.
In particular URLs cannot be easily prefixed by hand and need today to be downloaded, renamed and uploaded.

@tdruez
Copy link
Member

tdruez commented May 2, 2023

For input URLs, we could add support for tagging the inputs using a sort of "prefix":

from:https://url1
to:https://url2

Now for the uploaded inputs, there's no easy way to flag things using a form input type (drag and drop).
We could have multiple input fields but I do not like this solution as it only makes sense in the context of this specific pipeline for now.
We could instead have a way to "tag" inputs post upload from the "Inputs" box section in the project details view.

@pombredanne
Copy link
Member Author

re: #708 (comment)

This could work OK for a start, and we may evolve this with something similar for uploaded files later.

@pombredanne
Copy link
Member Author

And we would need to be able to tag URLs we upload also in the API and command line. Until the alternative would be:

  1. fetch the files by hand (say with wget)
  2. rename accordingly with a to- or from- prefix
  3. create a project and upload the renamed files

tdruez added a commit that referenced this issue Jan 26, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Jan 26, 2024
tdruez added a commit that referenced this issue Jan 27, 2024
* Add support for "tagging" URL inputs using #<fragment> #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Add support for providing multiple URLs in a single str in API #708

Signed-off-by: tdruez <tdruez@nexb.com>

---------

Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Jan 29, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 1, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 1, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 1, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 2, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 2, 2024
Signed-off-by: tdruez <tdruez@nexb.com>
tdruez added a commit that referenced this issue Feb 2, 2024
* Add support for tagging input files in CLI #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Add ability to update input source tag in UI #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Add changelog entry and unit tests #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Add support for tag in API #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Refine documentation for the tagging features #708

Signed-off-by: tdruez <tdruez@nexb.com>

* Fix changelog #708

Signed-off-by: tdruez <tdruez@nexb.com>

---------

Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez
Copy link
Member

tdruez commented Feb 2, 2024

Implemented in #1069
See https://scancodeio.readthedocs.io/en/latest/faq.html#how-to-tag-input-files for the various uses of the tag features.

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