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

move [Nexus] server and queryOpt from route to query params #3792

Merged
merged 10 commits into from
Aug 19, 2019

Conversation

calebcartwright
Copy link
Member

Closes #3745

@calebcartwright calebcartwright added the service-badge New or updated service badge label Jul 26, 2019
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 July 26, 2019 03:31 Inactive
@shields-ci
Copy link

shields-ci commented Jul 26, 2019

Messages
📖 ✨ Thanks for your contribution to Shields, @calebcartwright!

Generated by 🚫 dangerJS against 6aa4f68

const queryParamSchema = Joi.object({
server: optionalUrl.required(),
queryOpt: Joi.string()
.regex(/(:(?:q|g|a|v|p|c|cn|sha1|from|count|repositoryId|e|r)=[\w-. ]+)+/i)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a stricter regex than the previous one ((:.+?)?), but is based on the query params that the two Sonatype APIs actually accept (details at the links in the above inline comments).

I can swap this back to the more lenient one if anyone has concerns with this new one

@@ -7,34 +7,34 @@ const t = (module.exports = require('../tester').createServiceTester())

t.create('search release version valid artifact')
.timeout(15000)
.get('/r/https/oss.sonatype.org/com.google.guava/guava.json')
.get('/r/com.google/bitcoinj.json?server=https://oss.sonatype.org')
Copy link
Member Author

@calebcartwright calebcartwright Jul 26, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Our Nexus tests are notorious for timeout occurrences in the daily test runs. I found using this target was noticeably faster though (~1 second vs. 10-12 seconds)

@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 July 26, 2019 03:39 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 July 26, 2019 03:47 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 July 30, 2019 02:44 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 August 10, 2019 20:29 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 August 12, 2019 22:41 Inactive
@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 August 15, 2019 01:00 Inactive
Copy link
Member

@paulmelnikow paulmelnikow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Sorry this has been waiting so long!

@shields-cd shields-cd temporarily deployed to shields-staging-pr-3792 August 19, 2019 14:15 Inactive
@shields-deployment
Copy link

This pull request was merged to master branch. This change is now waiting for deployment, which will usually happen within a few days. Stay tuned by joining our #ops channel on Discord!

After deployment, changes are copied to gh-pages branch:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service-badge New or updated service badge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example/url builder wrong for Nexus (Query Options) badge
4 participants