Skip to content

Conversation

asllop
Copy link
Contributor

@asllop asllop commented Mar 28, 2025

Introduction

CLI tool to build the config.yml required to run the NR Salesforce Exporter. Creating the config file could be tricky for some users, and the sample config file we provide in the repository is not enough to run the integration as is, without prior inspection and modification.

Features

  • Guided step-by-step questionnaire.
  • Skippable questions with default or optional values.
  • User inputs in raw text or selectable predefined options.
  • Understandable info and error messages.
  • Config file generation.
  • Parsing of existing config file for validity check.

Future

  • Edit config files.
  • Check correctness of auth and cache config, connecting to Redis and Salesforce API.

Out of scope

  • Check query correctness.
  • Check response specific configs, like attribute names.

@asllop asllop added the enhancement New feature or request label Mar 28, 2025
@asllop asllop self-assigned this Mar 28, 2025
@asllop asllop marked this pull request as ready for review April 17, 2025 13:36
@sdewitt-newrelic
Copy link
Contributor

One last thing. I noticed there are no unit tests. Are you planning on adding any?

@asllop
Copy link
Contributor Author

asllop commented May 7, 2025

One last thing. I noticed there are no unit tests. Are you planning on adding any?

Actually I wasn't, since this tools is so simple and not a production-running artifact. But rethinking it, it's probably worth doing.

@asllop asllop requested a review from sdewitt-newrelic May 7, 2025 13:56
Copy link
Contributor

@sdewitt-newrelic sdewitt-newrelic left a comment

Choose a reason for hiding this comment

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

@asllop thanks for the changes. I think I resolved all comments but 3 if you could just have a look.

@asllop asllop requested a review from sdewitt-newrelic May 21, 2025 11:18
Copy link
Contributor

@sdewitt-newrelic sdewitt-newrelic left a comment

Choose a reason for hiding this comment

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

@asllop just one unresolved comment in conftool/form/text.py where I think you meant port but used post. Would be good to change this to avoid confusion.


i_redis_post_min = 0
i_redis_post_max = 65535
t_redis_post = Text(
Copy link
Contributor

Choose a reason for hiding this comment

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

@asllop Did you see this one?

@asllop asllop requested a review from sdewitt-newrelic May 26, 2025 19:13
Copy link
Contributor

@sdewitt-newrelic sdewitt-newrelic left a comment

Choose a reason for hiding this comment

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

@asllop thanks for all the changes.
LGTM

@asllop asllop merged commit 3727514 into main Jun 4, 2025
5 checks passed
@asllop asllop deleted the chore/config_generator_tool branch June 4, 2025 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants