Skip to content

AstarteExport: Add Support for Dynamic Cassandra Host/Port in Astarte Export#1050

Open
Jusuf95 wants to merge 1 commit intoastarte-platform:masterfrom
Jusuf95:cassandra-env-vars
Open

AstarteExport: Add Support for Dynamic Cassandra Host/Port in Astarte Export#1050
Jusuf95 wants to merge 1 commit intoastarte-platform:masterfrom
Jusuf95:cassandra-env-vars

Conversation

@Jusuf95
Copy link
Contributor

@Jusuf95 Jusuf95 commented Jan 21, 2025

Enhancements to Astarte Export Functionality:

  • Modified export_realm_data/3 to accept db_host_and_port as an argument, allowing for more flexible configuration of
    Cassandra.
  • Set Cassandra host and port as environment variables for better deployment flexibility.
  • Updated the run/1 function to accommodate the new parameters for exporting data.
  • Enhanced documentation to include the new db_host_and_port argument and its usage in the function.
  • Updated the README to reflect these changes and provide clear instructions on the new configuration.

Code Maintenance:

  • Refined the export process by including necessary parameters for Cassandra connectivity, ensuring a smoother setup.

What this PR does / why we need it:

This change enhances the Astarte export process by allowing more flexible configuration of Cassandra connectivity, improving the function's ability to work with various environments and setups.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Please review the changes in export/export_realm_data/3 and run/1 to ensure the new parameters are correctly implemented and the documentation is accurate.

Does this PR introduce a user-facing change?
  • Yes
  • No

Additional documentation e.g. usage docs, diagrams, etc.:


@Jusuf95 Jusuf95 force-pushed the cassandra-env-vars branch from c455bfa to f45194b Compare January 21, 2025 11:55
@Jusuf95 Jusuf95 force-pushed the cassandra-env-vars branch from f45194b to 3905d90 Compare January 27, 2025 12:22
@Jusuf95 Jusuf95 requested a review from Annopaolo January 27, 2025 13:08
@Jusuf95 Jusuf95 force-pushed the cassandra-env-vars branch from 3905d90 to 354d529 Compare January 29, 2025 12:58
@Jusuf95 Jusuf95 requested a review from eddbbt January 29, 2025 13:24
@Jusuf95 Jusuf95 force-pushed the cassandra-env-vars branch from 354d529 to da9be2c Compare January 29, 2025 13:26
Copy link
Contributor

@eddbbt eddbbt left a comment

Choose a reason for hiding this comment

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

It is not completely wrong to accept a keyword list inside the iex shell and a string parameter outside with mix.task, but be sure that we're not overriding existent behaviors

@Jusuf95 Jusuf95 force-pushed the cassandra-env-vars branch from da9be2c to 511a4ac Compare January 30, 2025 13:48
@Jusuf95 Jusuf95 requested a review from eddbbt January 30, 2025 14:20
- Modified export_realm_data/3 to accept db_host_and_port as an argument.
- Set Cassandra host and port as env variables
- Updated the run/1 function to reflect the new parameters for exporting.
- Enhanced documentation to include the new db_host_and_port argument.
- Updated README to reflect the changes in function usage and parameters.

Signed-off-by: Jusuf <jusuf.avdic@secomind.com>
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