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

Feat/allow configuring timeout for external sources #1812

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

pouyan021
Copy link

@pouyan021 pouyan021 commented Apr 18, 2024

This pull request closes #1624. It adds and enforces the ability to set a new property abort-after to external sources. As discussed in the issue, it supports both a global prop and a maven property that overrides the global if it is set.

spiffcs
spiffcs previously approved these changes Apr 22, 2024
maven:
search-upstream-by-sha1: true
Copy link
Contributor

Choose a reason for hiding this comment

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

👋 thanks for adding the new field! Would it be possible to keep the field name here so that we don't release a breaking change? I know we're pre v1.0, but the best way to handle this is to deprecate this field and add the new one (allowing people to migrate) rather than changing it on the fly =)

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh wow - on second pass it looks like the json/yaml tags here were never correct here so thanks for the catch and docs update. I've made a note to change the json tag to be consistent going forward.

@spiffcs
Copy link
Contributor

spiffcs commented Apr 22, 2024

@pouyan021 Approved and running checks now - Thank you so much for the contribution!

@spiffcs
Copy link
Contributor

spiffcs commented Apr 22, 2024

@pouyan021 looks like there is a small change needed where go mod tidy is run

@pouyan021 pouyan021 force-pushed the feat/allow-configuring-timeout-for-external-sources branch from c7f9e41 to 5cc6f4b Compare April 22, 2024 17:45
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
… functionality

Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
…-after functionality

Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
Signed-off-by: Pouyan Khodabakhsh <pouyan021@gmail.com>
@pouyan021 pouyan021 force-pushed the feat/allow-configuring-timeout-for-external-sources branch from 5cc6f4b to e5ed88d Compare April 22, 2024 17:46
@pouyan021
Copy link
Author

pouyan021 commented Apr 22, 2024

@spiffcs Appreciate your support, thanks a lot! The problem with go.mod is addressed but I forgot to sign-off my commit! I fixed that and pushed again. Could you kindly approve the checks once more?

@pouyan021 pouyan021 requested a review from spiffcs April 25, 2024 06:19
Copy link
Contributor

@spiffcs spiffcs left a comment

Choose a reason for hiding this comment

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

Everything else LGTM - Just waiting for @wagoodman and his final say on the config direction he wants to go here

base-url: https://search.maven.org/solrsearch/select
abort-after: 5m #override the global config
Copy link
Contributor

Choose a reason for hiding this comment

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

cc @wagoodman - I know he's pretty sensitive to duplicate fields that override each other so I'd like him to chime in on where he sees this going or what his preference would be

@spiffcs spiffcs self-requested a review April 25, 2024 18:34
@spiffcs spiffcs dismissed their stale review April 25, 2024 18:35

stale review and waiting for IC input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow configurting timeout for external-sources
2 participants