-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
[FEATURE] Improve storage of .asyncapi-analytics
config file
#1427
Comments
@Amzani How can I add this issue to the DX working group's Kanban? |
@peter-rr it's automatically added |
/gfi dx |
Hey @Amzani, your message doesn't follow the requirements, you can try |
@fmvilas @smoya I'm trying to find out a good solution for what we talked about here, but I'm kind of stuck right now 🤔 Regarding the usage of a configurable path for the analytics config file, should we interact with the user to get the file path desired and then use the value passed as a parameter? Could you provide any suggestion or example about this topic? Thanks, folks 😄 |
Let the path for the config file to be defined by an environment variable, with a default value in case is missing (the home directory is the default value). const analyticsConfigFile = process.env.ASYNCAPI_METRICS_CONFIG_PATH || join(homedir(), '.asyncapi-analytics'); Then, users could change the path by just setting such an env var. i.e. Regarding tests, you can do the same: set up that env var to a known and controlled config file path instead of using the one located in ~home. |
Why do we need this improvement?
Main ideas taken from @asyncapi/developer_experience_wg slack discussion:
cc @smoya @fmvilas
We are handling the same analytics config file for integration tests and source code, which might lead to potential conflicts.
Also we are storing that analytics config file at home directory, which is not a recommended practice.
How will this change help?
We can avoid potential conflicts by not mixing testing data with real user data.
Not polluting the user's home directory.
Screenshots
No response
How could it be implemented/designed?
Handling different config files for testing and source code.
The analytics config file should have a configurable path, and also be interchangeable between the different apps (like CLI, Studio), so we can know when the user is jumping from one app to another.
🚧 Breaking changes
No
👀 Have you checked for similar open issues?
🏢 Have you read the Contributing Guidelines?
Are you willing to work on this issue?
No, someone else can work on it.
The text was updated successfully, but these errors were encountered: