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

[Currency support] Adding a debug endpoint #822

Merged
merged 1 commit into from
Mar 13, 2019

Conversation

benjaminch
Copy link
Contributor

This CL introduces a new admin endpoint exposing current currency rate
converter internals such as:

  • Sync source URL
  • Internal rates
  • Update frequency
  • Last update

It will help for the future rollout of currencies support.

More details: #280

This CL introduces a new admin endpoint exposing current currency rate
converter internals such as:
- Sync source URL
- Internal rates
- Update frequency
- Last update

It will help for the future rollout of currencies support.

More details: prebid#280
@benjaminch benjaminch force-pushed the debug-endpoint-currency-converter branch from 05eb3f1 to c29e908 Compare March 3, 2019 17:27
)

// currencyRatesInfo holds currency rates information.
type currencyRatesInfo struct {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Took me a while to figure out why you have two info structs. Finally realized because they are private, but in different packages.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes indeed, I introduced it in order not to have the endpoint package tied to the currency package implementation :)
It's also easier to test

Copy link
Collaborator

@hhhjort hhhjort left a comment

Choose a reason for hiding this comment

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

LGTM


infos := rateConverter.GetInfo()
if infos == nil {
return currencyRatesInfo
Copy link
Contributor

Choose a reason for hiding this comment

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

Does it make sense for Active to be true but nothing else in the struct to be defined in this case?

@benjaminch
Copy link
Contributor Author

benjaminch commented Mar 12, 2019 via email

@hhhjort hhhjort merged commit b5f5f9c into prebid:master Mar 13, 2019
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 1, 2020
This CL introduces a new admin endpoint exposing current currency rate
converter internals such as:
- Sync source URL
- Internal rates
- Update frequency
- Last update

It will help for the future rollout of currencies support.

More details: prebid#280
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 2, 2020
This CL introduces a new admin endpoint exposing current currency rate
converter internals such as:
- Sync source URL
- Internal rates
- Update frequency
- Last update

It will help for the future rollout of currencies support.

More details: prebid#280
katsuo5 pushed a commit to flux-dev-team/prebid-server-1 that referenced this pull request Dec 4, 2020
This CL introduces a new admin endpoint exposing current currency rate
converter internals such as:
- Sync source URL
- Internal rates
- Update frequency
- Last update

It will help for the future rollout of currencies support.

More details: prebid#280
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.

3 participants