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

Database selector in "Set Up Integration" page #2380

Merged
merged 7 commits into from
Mar 11, 2025

Conversation

aalva500-prog
Copy link
Contributor

@aalva500-prog aalva500-prog commented Mar 7, 2025

Description

Currently, when an Integration is created through the "Set Up Integration" page, the default database is hardcoded, as the table template is created as ${dataSource}.default.${tableName}. In order to avoid hard coding the database name, this feature allows the user to specify the database, and add their value in the template.

Issues Resolved

This feature will allow the user to specify the database name, and add their value in the template.

Video Walkthrough

Here's a walkthrough of the feature:

databaseName

Check List

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Copy link
Collaborator

@Swiddis Swiddis left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!

@Swiddis Swiddis requested a review from sumukhswamy March 7, 2025 22:06
@Swiddis Swiddis added enhancement New feature or request backport 2.x labels Mar 7, 2025
aaarone90 and others added 5 commits March 7, 2025 16:40
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
* support custom logs correlation

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* add support for custom field mappings in logs

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* update explorer fields

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* add support for custom timestamp field

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
Copy link
Collaborator

@Swiddis Swiddis left a comment

Choose a reason for hiding this comment

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

Looks good! Just leaving some additional thoughts. @sumukhswamy can you give a second review?

setLoading(false);
setCalloutLikeToast('Failed to add integration', 'danger', result.error.message);
Copy link
Collaborator

Choose a reason for hiding this comment

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

thought: At some point we need to register all these strings to i18n, but do we need to do that now?

@ps48 / @TackAdam any context on i18n timelines, or is there a doc that describes the migration process? I can make an issue to do it later.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Not blocking, is good to have but repo needs a pass to be uniform in its implementation.

@Swiddis
Copy link
Collaborator

Swiddis commented Mar 10, 2025

chore: Test snapshots need updates

…ade by Simeon

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
@Swiddis Swiddis merged commit 588c8d4 into opensearch-project:main Mar 11, 2025
21 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Mar 11, 2025
* Database selector in Integration install

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

* Database selector in Integration install

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

* Database selector in Integration install

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

* These changes are in response to PR comments

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

* Support custom logs correlation (#2375)

* support custom logs correlation

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* add support for custom field mappings in logs

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* update explorer fields

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

* add support for custom timestamp field

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>

---------

Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

* These changes are in response to latest PR comments and suggestions made by Simeon

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>

---------

Signed-off-by: Aaron Alvarez <aaarone@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Co-authored-by: Aaron Alvarez <aaarone@amazon.com>
Co-authored-by: Shenoy Pratik <sgguruda@amazon.com>
(cherry picked from commit 588c8d4)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@Swiddis Swiddis added the integrations Used to denote items related to the Integrations project label Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x enhancement New feature or request integrations Used to denote items related to the Integrations project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants