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

Support for asset search #287

Open
1 of 2 tasks
oysteing opened this issue Jun 22, 2022 · 3 comments
Open
1 of 2 tasks

Support for asset search #287

oysteing opened this issue Jun 22, 2022 · 3 comments
Labels
enhancement New feature or request exempt-from-stale Exception label for stale bot help wanted Extra attention is needed

Comments

@oysteing
Copy link

oysteing commented Jun 22, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

I would like a data source to search for Nexus assets, using search parameters from the Search API. For Maven snapshots, it would be useful with a latest search mode, as described in the Search API documentation.

The asset data source should resolve asset metadata, namely downloadUrl and checksum (sha1checksum). This allows referencing the url and checksum from other providers.

I'm asking you to evaluate if this use case fits into the provider, or if it should get its own provider. I would be happy to provide a pull request.

New or Affected Resource(s)/Data Source(s)

nexus_asset

Pro feature

  • Yes. Pro license Required

Community Plugin

No response

Potential Terraform Configuration

data "nexus_asset" "name" {
    searchAttributes = {
        group = "org.example"
        name = "name"
        version = "1.0.0"
        mavenClassifier = ""
        mavenExtension = "jar"
        repository = "repository"
        npmScope = "npmScope"
    }
    latest = true
}

resource "cloudfoundry_app" "app" {
  path             = data.nexus_asset.name.downloadUrl
  source_code_hash = data.nexus_asset.name.sha1checksum
}

References

No response

@oysteing oysteing added the enhancement New feature or request label Jun 22, 2022
@oysteing oysteing changed the title Support for assert Support for asset search Jun 22, 2022
@anmoel
Copy link
Member

anmoel commented Jun 23, 2022

hi @oysteing,

i checked the api and your request is possible. so we will implement this feature after the major release change (planed for next month).

But you can help and create PRs in this repo and the go-nexus-client repository.

Regards
André

@anmoel anmoel added the help wanted Extra attention is needed label Jun 23, 2022
@oysteing
Copy link
Author

Hi André,

thanks for the positive response. I will start working on a PR as soon as I find some time available.

Kind regards,
Øystein

@github-actions
Copy link

This issue has been automatically marked as stale because it has had no activity in the last 90 days. It will be closed in 7 days if no further activity occurs. Leaving a comment starting with /fresh will mark this issue as not stale.

@github-actions github-actions bot added the stale label Oct 25, 2022
@anmoel anmoel added exempt-from-stale Exception label for stale bot and removed stale labels Oct 25, 2022
@anmoel anmoel moved this to Low priority in Nexus Terraform Provider Sep 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request exempt-from-stale Exception label for stale bot help wanted Extra attention is needed
Projects
Status: Low priority
Development

No branches or pull requests

2 participants