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

[Feature] Auto trigger schema setup in assets creation flow of get started page #2200

Conversation

mengweieric
Copy link
Collaborator

Description

Adding index template creation to existing observability assets creation flow.

Issues Resolved

[List any issues this PR will resolve]

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.

@mengweieric mengweieric added the enhancement New feature or request label Oct 11, 2024
});

if (checkedCollector !== undefined) {
if (checkedCollector.value === 'otel') {
Copy link
Collaborator

Choose a reason for hiding this comment

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

My PR adjust the otel value to be broken into the three different paths 'otelLogs' , 'otelMetrics' and 'otelTraces' which will all have slightly different templates to push.

@mengweieric mengweieric force-pushed the feature/auto-trigger-schema-setup branch from 0c9a3ca to dc1bc56 Compare October 14, 2024 06:45
Signed-off-by: Eric <[email protected]>
mengweieric and others added 3 commits October 14, 2024 20:46
@ps48
Copy link
Member

ps48 commented Oct 14, 2024

can you please look at failing snapshots?

// Auto-generate index templates based on the selected integration
let templates: ICollectorIndexTemplate[] = [];
if (curIntegration !== undefined) {
const indexTemplateMappings = await http!.get(
Copy link
Member

Choose a reason for hiding this comment

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

Are we making this call on every selection or only once? we can cache this right.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes this is actually what I was considering also for an improvement later, but this is only triggered per 'create assets' button clicked, simply clicking on different cards won't trigger this call

Signed-off-by: Eric <[email protected]>
@mengweieric mengweieric merged commit 3939809 into opensearch-project:main Oct 14, 2024
10 of 18 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 14, 2024
…arted page (#2200)

* updated release notes (#1997)

Signed-off-by: sumukhswamy <[email protected]>

* updated release notes (#1997)

Signed-off-by: sumukhswamy <[email protected]>

* add template creation to assests creation flow

Signed-off-by: Eric <[email protected]>

* adopt recent UI changes for the same flow

Signed-off-by: Eric <[email protected]>

* fix lint issue

Signed-off-by: Eric <[email protected]>

* add types

Signed-off-by: Eric <[email protected]>

* update snapshots

Signed-off-by: Eric <[email protected]>

* fix default selection between metrics / traces

Signed-off-by: Adam Tackett <[email protected]>

* update snapshots

Signed-off-by: Eric <[email protected]>

---------

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Co-authored-by: Sumukh Swamy <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
(cherry picked from commit 3939809)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
mengweieric pushed a commit that referenced this pull request Oct 15, 2024
…arted page (#2200) (#2203)

* updated release notes (#1997)



* updated release notes (#1997)



* add template creation to assests creation flow



* adopt recent UI changes for the same flow



* fix lint issue



* add types



* update snapshots



* fix default selection between metrics / traces



* update snapshots



---------






(cherry picked from commit 3939809)

Signed-off-by: sumukhswamy <[email protected]>
Signed-off-by: Eric <[email protected]>
Signed-off-by: Adam Tackett <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Sumukh Swamy <[email protected]>
Co-authored-by: Adam Tackett <[email protected]>
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants